Bug 120684

Summary: Simplify subtree relayout scheduling a bit.
Product: WebKit Reporter: Andreas Kling <kling>
Component: Layout and RenderingAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kling, koivisto, kondapallykalyan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 121524    
Bug Blocks:    
Attachments:
Description Flags
Patch idea.
koivisto: review+
Patch for landing... none

Description Andreas Kling 2013-09-04 08:36:18 PDT
Simplify subtree relayout scheduling a bit.
Comment 1 Andreas Kling 2013-09-04 08:37:00 PDT
Created attachment 210462 [details]
Patch idea.
Comment 2 Antti Koivisto 2013-09-04 09:08:18 PDT
Comment on attachment 210462 [details]
Patch idea.

View in context: https://bugs.webkit.org/attachment.cgi?id=210462&action=review

> Source/WebCore/page/FrameView.cpp:2445
> +    if (m_layoutRoot == &relayoutRoot)
> +        return;

The argument could use a better name. newLayoutRoot?

> Source/WebCore/page/FrameView.cpp:2466
> +        InspectorInstrumentation::didInvalidateLayout(&frame());

There is some repetition with this. I wonder if splitting this up to two functions would look nicer. The inner one would return bool if it actually did invalidate layout for example.
Comment 3 Andreas Kling 2013-09-04 09:13:40 PDT
Created attachment 210467 [details]
Patch for landing...
Comment 4 WebKit Commit Bot 2013-09-04 09:40:36 PDT
Comment on attachment 210467 [details]
Patch for landing...

Clearing flags on attachment: 210467

Committed r155046: <http://trac.webkit.org/changeset/155046>
Comment 5 WebKit Commit Bot 2013-09-04 09:40:38 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Alexey Proskuryakov 2013-09-04 11:07:48 PDT
This change made many (maybe all?) SVG tests crash with an assertion in debug builds. See <rdar://problem/14908967> for an Apple internal bug.
Comment 7 Andreas Kling 2013-09-04 11:32:41 PDT
(In reply to comment #6)
> This change made many (maybe all?) SVG tests crash with an assertion in debug builds. See <rdar://problem/14908967> for an Apple internal bug.

Fix here: bug 120689
Comment 8 Alexey Proskuryakov 2013-09-17 15:48:53 PDT
More fallback from this change: bug 121524.