RESOLVED FIXED Bug 131353
Unify and factor out page overlay implementations
https://bugs.webkit.org/show_bug.cgi?id=131353
Summary Unify and factor out page overlay implementations
Tim Horton
Reported 2014-04-08 02:24:38 PDT
There's no reason (as far as I can tell) to reimplement straightforward and platform-independent page overlay functionality in various places, and there's no reason for it to be scattered all over DrawingArea and WebPage.
Attachments
WIP (60.47 KB, patch)
2014-04-08 03:04 PDT, Tim Horton
no flags
patch (63.50 KB, patch)
2014-04-08 13:02 PDT, Tim Horton
no flags
found more code to delete (66.50 KB, patch)
2014-04-08 13:51 PDT, Tim Horton
no flags
rebase (66.51 KB, patch)
2014-04-08 13:56 PDT, Tim Horton
no flags
rebasex2 (66.15 KB, patch)
2014-04-08 14:09 PDT, Tim Horton
andersca: review+
fix a tiny bug (1.48 KB, patch)
2014-04-08 16:37 PDT, Tim Horton
andersca: review+
Tim Horton
Comment 1 2014-04-08 03:04:56 PDT
WebKit Commit Bot
Comment 2 2014-04-08 03:05:35 PDT
Attachment 228823 [details] did not pass style-queue: ERROR: Source/WebKit2/WebProcess/WebPage/WebPage.h:45: Alphabetical sorting problem. [build/include_order] [4] ERROR: Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:1222: Should have a space between // and comment [whitespace/comments] [4] Total errors found: 2 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 3 2014-04-08 13:02:13 PDT
Simon Fraser (smfr)
Comment 4 2014-04-08 13:15:01 PDT
Comment on attachment 228875 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=228875&action=review > Source/WebKit2/WebProcess/WebPage/PageOverlayController.cpp:89 > + m_webPage->drawingArea()->scheduleCompositingLayerFlush(); It this necessary? I would have thought that the GraphicsLayer tree modifications were enough to trigger it. > Source/WebKit2/WebProcess/WebPage/PageOverlayController.cpp:114 > + m_webPage->drawingArea()->scheduleCompositingLayerFlush(); Ditto. > Source/WebKit2/WebProcess/WebPage/PageOverlayController.cpp:128 > + m_webPage->drawingArea()->scheduleCompositingLayerFlush(); Ditto
Tim Horton
Comment 5 2014-04-08 13:32:59 PDT
Comment on attachment 228875 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=228875&action=review >> Source/WebKit2/WebProcess/WebPage/PageOverlayController.cpp:89 >> + m_webPage->drawingArea()->scheduleCompositingLayerFlush(); > > It this necessary? I would have thought that the GraphicsLayer tree modifications were enough to trigger it. I think it's not, if I implement notifyFlushRequired here (since all of these GraphicsLayers use this class as their client) and forward it along to the DrawingArea. That's much neater, thanks!
Tim Horton
Comment 6 2014-04-08 13:51:54 PDT
Created attachment 228881 [details] found more code to delete
Tim Horton
Comment 7 2014-04-08 13:56:20 PDT
Tim Horton
Comment 8 2014-04-08 14:09:10 PDT
Created attachment 228886 [details] rebasex2 still building post-rebase. need to test some exposedrect-enabled apps.
Tim Horton
Comment 9 2014-04-08 16:12:50 PDT
Tim Horton
Comment 10 2014-04-08 16:37:55 PDT
Created attachment 228912 [details] fix a tiny bug
Anders Carlsson
Comment 11 2014-04-08 16:38:53 PDT
Comment on attachment 228912 [details] fix a tiny bug View in context: https://bugs.webkit.org/attachment.cgi?id=228912&action=review > Source/WebKit2/WebProcess/WebPage/PageOverlayController.cpp:105 > + if (m_pageOverlays.size()) This should be if (!m_pageOverlays.isEmpty())
Tim Horton
Comment 12 2014-04-08 16:41:40 PDT
Csaba Osztrogonác
Comment 13 2014-04-08 23:32:56 PDT
New bug report to fix the Coordinated Graphics build and functionality - https://bugs.webkit.org/show_bug.cgi?id=131425
Csaba Osztrogonác
Comment 14 2014-04-08 23:37:45 PDT
(In reply to comment #13) > New bug report to fix the Coordinated Graphics build and functionality - > https://bugs.webkit.org/show_bug.cgi?id=131425 It seems GTK (DrawingAreaImpl.cpp) needs similar fix too.
Note You need to log in before you can comment on or make changes to this bug.