Bug 99831 - [Qt][WTR] renderToOffscreenBuffer should not be set if the real render loop is active
Summary: [Qt][WTR] renderToOffscreenBuffer should not be set if the real render loop i...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Balazs Kelemen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-19 05:10 PDT by Balazs Kelemen
Modified: 2012-10-19 08:48 PDT (History)
5 users (show)

See Also:


Attachments
Patch (3.35 KB, patch)
2012-10-19 05:35 PDT, Balazs Kelemen
no flags Details | Formatted Diff | Diff
Patch (4.18 KB, patch)
2012-10-19 07:40 PDT, Balazs Kelemen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Balazs Kelemen 2012-10-19 05:10:49 PDT
setRenderWithoutShowing and setRenderToOffscreenBuffer are overlapping and causing trouble, i.e. the early return in QQuickWebViewPrivate::setNeedsDisplay is wrong if the scene graph is active.
Comment 1 Balazs Kelemen 2012-10-19 05:35:05 PDT
Created attachment 169604 [details]
Patch
Comment 2 Jocelyn Turcotte 2012-10-19 06:30:35 PDT
Comment on attachment 169604 [details]
Patch

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

> Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp:88
> -    QQuickWebViewExperimental experimental(m_view);
> -    experimental.setRenderToOffscreenBuffer(true);
> +    if (!windowShapshotEnabled()) {
> +        QQuickWebViewExperimental experimental(m_view);
> +        experimental.setRenderToOffscreenBuffer(true);
> +    }

It would be cleaner to move it in the else of "if (PlatformWebView::windowShapshotEnabled())" in handleStatusChanged.
Comment 3 Balazs Kelemen 2012-10-19 07:40:09 PDT
Created attachment 169618 [details]
Patch
Comment 4 Jocelyn Turcotte 2012-10-19 07:51:10 PDT
Comment on attachment 169618 [details]
Patch

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

> Source/WebKit2/ChangeLog:8
> +        Update the comment about renderToOffscreenBuffer to better describe it's role.

it's -> its

> Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp:445
> +        // This can the case when running tests. See WTR::PlatformWebView::windowShapshotEnabled.

I'm not sure what this line adds, there's a "be" missing, "when running tests" is repeated from above and windowShapshotEnabled is only indirectly related.
Comment 5 Balazs Kelemen 2012-10-19 08:48:03 PDT
(In reply to comment #4)
> (From update of attachment 169618 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=169618&action=review
> 
> > Source/WebKit2/ChangeLog:8
> > +        Update the comment about renderToOffscreenBuffer to better describe it's role.
> 
> it's -> its

I think both are correct, but fixed :)

> 
> > Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp:445
> > +        // This can the case when running tests. See WTR::PlatformWebView::windowShapshotEnabled.
> 
> I'm not sure what this line adds, there's a "be" missing, "when running tests" is repeated from above and windowShapshotEnabled is only indirectly related.

Removed.

Landed in http://trac.webkit.org/changeset/131904