Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r221423 - REGRESSION (r220052): ASSERTION FAILED: !frame().isMa…
…inFrame() || !needsStyleRecalcOrLayout() in WebCore::FrameView::updateLayoutAndStyleIfNeededRecursive() https://bugs.webkit.org/show_bug.cgi?id=175270 Reviewed by Simon Fraser and Antti Koivisto. Source/WebCore: * dom/Document.cpp: (WebCore::Document::Document): Initialize m_styleRecalcTimer with a lamdba so it can work with a function that returns a bool and ignore the return value. (WebCore::Document::updateStyleIfNeeded): Added a boolean return value indicating if the function did any work or not. * dom/Document.h: Updated for above change. * page/FrameView.cpp: (WebCore::appendRenderedChildren): Added helper that will later replace the FrameView::renderedChildFrameViews function and is used below. (WebCore::FrameView::updateLayoutAndStyleIfNeededRecursive): Instead of always doing two passes of style and layout update do up to 25 passes, but stop as soon as a pass does no work. This is slightly more efficient in cases where no layout and style update is needed, and works correctly when a additional passes are needed, which is what happens in the test that was failing. We can eventually improve this further, but this resolves the immediate problem we are seeing in the test. LayoutTests: * platform/mac-wk2/TestExpectations: Re-enable the disabled test.
- Loading branch information
1 parent
0e1ce60
commit 5564095
Showing
5 changed files
with
88 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters