Bug 73641 - WebKit2: Freeze the state of the layer tree until frame load completion if incremental rendering is suppressed
Summary: WebKit2: Freeze the state of the layer tree until frame load completion if in...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andy Estes
URL:
Keywords:
Depends on:
Blocks: 70086
  Show dependency treegraph
 
Reported: 2011-12-02 03:12 PST by Andy Estes
Modified: 2011-12-02 11:21 PST (History)
3 users (show)

See Also:


Attachments
Patch (4.46 KB, patch)
2011-12-02 03:22 PST, Andy Estes
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Estes 2011-12-02 03:12:52 PST
WebKit2: Freeze the state of the layer tree until frame load completion if incremental rendering is suppressed
Comment 1 Andy Estes 2011-12-02 03:22:07 PST
Created attachment 117598 [details]
Patch
Comment 2 Darin Adler 2011-12-02 09:15:26 PST
Comment on attachment 117598 [details]
Patch

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

> Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:537
> -    if (m_frame == m_frame->page()->mainWebFrame())
> +    if (m_frame == m_frame->page()->mainWebFrame() && !webPage->corePage()->settings()->suppressIncrementalRendering())
>          webPage->drawingArea()->setLayerTreeStateIsFrozen(false);

Seems OK, but perhaps a bit of a layering problem that this code needs to check the setting.

Not sure why this code gets to the page as m_frame->page() in one half of the expression and as webPage->corePage() in the other. Aren’t those guaranteed to be the same page?
Comment 3 Andy Estes 2011-12-02 11:16:24 PST
(In reply to comment #2)
> (From update of attachment 117598 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=117598&action=review
> 
> > Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:537
> > -    if (m_frame == m_frame->page()->mainWebFrame())
> > +    if (m_frame == m_frame->page()->mainWebFrame() && !webPage->corePage()->settings()->suppressIncrementalRendering())
> >          webPage->drawingArea()->setLayerTreeStateIsFrozen(false);
> 
> Seems OK, but perhaps a bit of a layering problem that this code needs to check the setting.
> 
> Not sure why this code gets to the page as m_frame->page() in one half of the expression and as webPage->corePage() in the other. Aren’t those guaranteed to be the same page?

One is a WebKit2 WebPage and the other is it's corresponding WebCore::Page. I need the WebCore::Page to get at the Settings object.

Thanks for the review!
Comment 4 Andy Estes 2011-12-02 11:17:13 PST
I swear I know the difference between it's and its :/
Comment 5 Andy Estes 2011-12-02 11:21:27 PST
Committed r101838: <http://trac.webkit.org/changeset/101838>