RESOLVED FIXED 194198
Make setNeedsLayout on the root more explicitly about triggering its side-effects
https://bugs.webkit.org/show_bug.cgi?id=194198
Summary Make setNeedsLayout on the root more explicitly about triggering its side-eff...
Simon Fraser (smfr)
Reported 2019-02-02 17:20:57 PST
Make setNeedsLayout on the root more explicitly about triggering its side-effects
Attachments
Patch (25.52 KB, patch)
2019-02-02 17:32 PST, Simon Fraser (smfr)
no flags
Patch (25.77 KB, patch)
2019-02-02 17:45 PST, Simon Fraser (smfr)
no flags
Archive of layout-test-results from ews106 for mac-highsierra-wk2 (2.51 MB, application/zip)
2019-02-02 19:06 PST, EWS Watchlist
no flags
Patch (25.93 KB, patch)
2019-02-02 20:34 PST, Simon Fraser (smfr)
no flags
Simon Fraser (smfr)
Comment 1 2019-02-02 17:32:04 PST Comment hidden (obsolete)
Simon Fraser (smfr)
Comment 2 2019-02-02 17:45:26 PST Comment hidden (obsolete)
EWS Watchlist
Comment 3 2019-02-02 19:06:55 PST Comment hidden (obsolete)
EWS Watchlist
Comment 4 2019-02-02 19:06:56 PST Comment hidden (obsolete)
Simon Fraser (smfr)
Comment 5 2019-02-02 20:34:30 PST
Antti Koivisto
Comment 6 2019-02-03 10:08:06 PST
Comment on attachment 360995 [details] Patch r=me
WebKit Commit Bot
Comment 7 2019-02-03 17:48:19 PST
Comment on attachment 360995 [details] Patch Clearing flags on attachment: 360995 Committed r240912: <https://trac.webkit.org/changeset/240912>
WebKit Commit Bot
Comment 8 2019-02-03 17:48:21 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9 2019-02-03 17:49:30 PST
Michael Catanzaro
Comment 10 2019-02-04 07:48:48 PST
zalan
Comment 11 2019-02-04 08:07:16 PST
Comment on attachment 360995 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=360995&action=review > Source/WebCore/ChangeLog:8 > + Calling setNeedsLayout() on the FrameView or RenderView is an odd concept; the render tree I think calling setNeedsLayout on the RenderView is an ok concept. It just means that the ICB got resized and now it needs to propagate this new size to its descendants (like stretchy html/body in quirks mode, or just width in general). > Source/WebCore/page/FrameView.cpp:2928 > + RenderView* renderView = this->renderView(); > + if (renderView->usesCompositing()) { > + if (auto* rootLayer = renderView->layer()) > + renderView->layer()->setNeedsCompositingConfigurationUpdate(); I'd prefer early returns here: { auto* renderView = this->renderView(); if (!renderView->usesCompositing()) return; auto* rootLayer = renderView->layer() if (!rootLayer) return; rootLayer->setNeedsCompositingConfigurationUpdate(); } or just fix: if (auto* rootLayer = renderView->layer()) renderView->layer()->setNeedsCompositingConfigurationUpdate(); -> rootLayer->setNeedsCompositingConfigurationUpdate(); > Source/WebCore/page/FrameView.cpp:2938 > + RenderView* renderView = this->renderView(); > + if (renderView->usesCompositing()) { > + if (auto* rootLayer = renderView->layer()) > + renderView->layer()->setNeedsCompositingGeometryUpdate(); > + } same as above > Source/WebCore/page/FrameViewLayoutContext.cpp:326 > renderView->setNeedsLayout(); > + scheduleLayout(); It's odd that the RenderView is the only renderer in the tree that does not schedule layout. I think this should be fixed in setNeedsLayout.
Note You need to log in before you can comment on or make changes to this bug.