Quantcast

frame properties now have the const-ness semantics of member variables

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

frame properties now have the const-ness semantics of member variables

L. David Baron
In https://bugzilla.mozilla.org/show_bug.cgi?id=1353187 I just
landed a patch that gives frame properties (which act like extended
member variables) the semantics of member variables, so that if you
have a |const nsIFrame*| you can still Get a property, but you can't
Set or Remove it.

This required a pretty small number of adjustments to existing code.

(I did this so that the primary patch in that bug wouldn't need to
const_cast in order to set a frame state bit when a frame has
properties, but it seemed like a good thing to do anyway.)

-David

--
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout

signature.asc (817 bytes) Download Attachment
Loading...