[Webkit-unassigned] [Bug 153205] Selector checker should not mutate document and style

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 19 02:54:58 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=153205

--- Comment #7 from Antti Koivisto <koivisto at iki.fi> ---
> A little strange that we end up using the const_cast here. Any way to avoid
> it in future? I guess you are focusing on using const here more to express
> the fact that we won’t be setting flags and such on the Element.

Right, this structure is used by the client (which presumably has non-const access to the DOM) to mutate the Element later. Selector checker never reads style relations, just writes them out. To apply the data someone will need to const_cast at some point, I thought better do it here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160119/93ee4e90/attachment.html>


More information about the webkit-unassigned mailing list