frame properties now have the const-ness semantics of member variables
"L. David Baron" <[email protected]> Mon, 3 Apr 2017 21:09:37 -0700
| Newsgroups | gmane.comp.mozilla.devel.layout |
|---|---|
| Message-ID | <[email protected]> |
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
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJY4xx/AAoJEO/hYSUPhPwhyNAQAJZyqJ6lKzYAtd1y0EzWQrsC iSGemkpe0VZni3RfXhilfp1/AWvyna0T9bEDZ9FadfwvSICZwwPZHn3ruOBGyyQ4 AfCAgbZCaPryKGuAnM+CT80RN/3hpoJHOuhY7BdzLu5f+hXRvZMiy38NCEPpGPf4 T0/cqtc6poRf8W6RhgrOHRTO4znBjGx/L6tsJAXaWCDs43VO6vpJ0gD924oWKHwL GpRJmVn79D8hE6jl8dXXTGjM8Vpomm9fBvRXWOnjP0msNJOGWTkm5Qnr8hl5fUJv kg5Tr2Zc/LYduaxpFM2cLgnE8aG0zkOjlC3s0CYab/YEj58Rmoq+J/XIe/iHbEqF yjo5PKOozBxW4bDHDk9tZKQYDzHMVniAdj/bheojZkWq90O1kN/uU6lsKapuO3Sa QrABc9YlpXNx3018scV6b3MUkV6fFA+ogs9gDx7vhD6ZsIaJJt5KREmNvKhtP3IC M0pIPfnkqgE5yY/PDve/VLs+UJBUEAzjaD3LO3WB2dnf4wmgZwJuTVNGb9abVkjD q1uqQ3ZuJYFhwHrKaIbnhfPvb3kyhBaQO5P0NxgD9A9MbKBsUy0w1owqh3PQNIRq TtRrqj8L5Vz9QQ5BCqKPUkd+/j3TmYjE7rmRO6pK1qr5JxM+0iBnKNZIpDH5RhnD g9Qapr3Rh3sYonqWsX6A =phHs -----END PGP SIGNATURE-----