[Webkit-unassigned] [Bug 130101] Ensure that layout milestones complete in all cases

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 12 09:51:24 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=130101


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #226451|review?                     |review+
               Flag|                            |




--- Comment #3 from Darin Adler <darin at apple.com>  2014-03-12 09:51:47 PST ---
(From update of attachment 226451)
View in context: https://bugs.webkit.org/attachment.cgi?id=226451&action=review

Some risk in changing the order of things here, but seems obviously a step int he right direction.

> Source/WebCore/dom/Document.cpp:2490
> +    if (!m_bParsing && view() && !view()->needsLayout())
> +        view()->fireLayoutRelatedMilestonesIfNeeded();

It’s hard to understand the relationships here. I think that future me would understand this better if the function the document called on FrameView was named something more like “document emptiness status may have changed”, and that function would then turn around and do this:

    if (!needsLayout) fireLayoutRelatedMilestonesIfNeeded

within the FrameView class.

> Source/WebCore/page/FrameView.cpp:4129
> +    Page* page = frame().page();
> +    if (page)

I’d put the variable inside the if statement.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list