RESOLVED FIXED Bug 192480
CSS Painting API code cleanup
https://bugs.webkit.org/show_bug.cgi?id=192480
Summary CSS Painting API code cleanup
Justin Michaud
Reported 2018-12-06 16:01:42 PST
The goal of this is to fix all of Darin's comments on 191443, plus a few other housekeeping things.
Attachments
Patch (13.87 KB, patch)
2018-12-06 16:31 PST, Justin Michaud
no flags
Justin Michaud
Comment 1 2018-12-06 16:31:45 PST
WebKit Commit Bot
Comment 2 2018-12-07 13:57:56 PST
Comment on attachment 356763 [details] Patch Clearing flags on attachment: 356763 Committed r238968: <https://trac.webkit.org/changeset/238968>
WebKit Commit Bot
Comment 3 2018-12-07 13:57:58 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4 2018-12-07 13:58:26 PST
Simon Fraser (smfr)
Comment 5 2018-12-07 15:58:10 PST
Comment on attachment 356763 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=356763&action=review > Source/WebCore/rendering/style/RenderStyle.cpp:1042 > + if (changedCustomPaintWatchedProperty(*this, *m_rareNonInheritedData, other, *other.m_rareNonInheritedData)) > + return true; I don't think this is the right way to do this. You shouldn't trigger repaint for custom paint from here. You should evaluate inputs to custom paints, run the callback if necessary, then issue a repaint if the output changes.
Justin Michaud
Comment 6 2018-12-07 18:28:35 PST
Justin Michaud
Comment 7 2018-12-07 19:06:52 PST
Comment on attachment 356763 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=356763&action=review >> Source/WebCore/rendering/style/RenderStyle.cpp:1042 >> + return true; > > I don't think this is the right way to do this. You shouldn't trigger repaint for custom paint from here. You should evaluate inputs to custom paints, run the callback if necessary, then issue a repaint if the output changes. I have a test case that seems to prove you right. If you mutate an a watched property immediately after importing a worklet, then it does not paint correctly.
Note You need to log in before you can comment on or make changes to this bug.