RESOLVED FIXED 193165
Factor legacy WK1 code for fixed and scrolling layers into their own helper class
https://bugs.webkit.org/show_bug.cgi?id=193165
Summary Factor legacy WK1 code for fixed and scrolling layers into their own helper c...
Simon Fraser (smfr)
Reported 2019-01-04 17:23:22 PST
Factor legacy WK1 code for fixed and scrolling layers into their own helper class
Attachments
Patch (25.62 KB, patch)
2019-01-04 17:25 PST, Simon Fraser (smfr)
fred.wang: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews103 for mac-sierra (2.67 MB, application/zip)
2019-01-04 18:33 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews114 for mac-sierra (2.12 MB, application/zip)
2019-01-05 02:02 PST, EWS Watchlist
no flags
Simon Fraser (smfr)
Comment 1 2019-01-04 17:25:35 PST
EWS Watchlist
Comment 2 2019-01-04 17:28:31 PST
Attachment 358403 [details] did not pass style-queue: ERROR: Source/WebCore/page/ChromeClient.h:265: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] Total errors found: 1 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
EWS Watchlist
Comment 3 2019-01-04 18:33:06 PST
Comment on attachment 358403 [details] Patch Attachment 358403 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/10635524 New failing tests: http/wpt/css/css-animations/start-animation-001.html
EWS Watchlist
Comment 4 2019-01-04 18:33:08 PST
Created attachment 358415 [details] Archive of layout-test-results from ews103 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 5 2019-01-05 02:02:52 PST
Comment on attachment 358403 [details] Patch Attachment 358403 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/10638292 New failing tests: http/wpt/css/css-animations/start-animation-001.html
EWS Watchlist
Comment 6 2019-01-05 02:02:54 PST
Created attachment 358431 [details] Archive of layout-test-results from ews114 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-sierra Platform: Mac OS X 10.12.6
Frédéric Wang (:fredw)
Comment 7 2019-01-05 04:13:19 PST
Comment on attachment 358403 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358403&action=review > Source/WebCore/page/ChromeClient.h:265 > + virtual void updateViewportConstrainedLayers(HashMap<PlatformLayer*, std::unique_ptr<ViewportConstraints>>&, const HashMap<PlatformLayer*, PlatformLayer*>&) { } It seems this is causing a style error but it was probably already present before this change. > Source/WebCore/rendering/RenderLayerCompositor.cpp:280 > + m_legacyScrollingLayerCoordinator = std::make_unique<LegacyWebKitScrollingLayerCoordinator>(page().chrome().client(), m_renderView.frameView().frame().isMainFrame()); It seems you can just use isMainFrameCompositor(). The old code for registerAllViewportConstrainedLayers/unregisterAllViewportConstrainedLayers also used to do an early return when scrollingCoordinator() is non-null, can you please explain in the ChangeLog why it is safe to remove it? I guess this because it is always null on WK1 (i.e. when m_renderView.frameView().platformWidget() is non-null)? > Source/WebCore/rendering/RenderLayerCompositor.cpp:3994 > + ASSERT(m_renderView.document().pageCacheState() == Document::NotInPageCache); We used to do an early return and now just ASSERT. Can you please explain this in the ChangeLog too? > Source/WebCore/rendering/RenderLayerCompositor.h:118 > + bool m_coordinateViewportConstainedLayers; It looks like that member can be const. > Source/WebCore/workers/service/ServiceWorkerContainer.cpp:70 > +// ASSERT(m_creationThread.ptr() == &Thread::current()); It seems this change was not intentional.
Simon Fraser (smfr)
Comment 8 2019-01-05 10:52:11 PST
Radar WebKit Bug Importer
Comment 9 2019-01-05 10:53:31 PST
Note You need to log in before you can comment on or make changes to this bug.