<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>76061</bug_id>
          
          <creation_ts>2012-01-11 07:44:47 -0800</creation_ts>
          <short_desc>[Qt][WK2] css3/filters/should-not-have-compositing-layer.html is failing since added in 104622</short_desc>
          <delta_ts>2012-06-05 09:12:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>88337</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure, Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Balazs Kelemen">kbalazs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>noam</cc>
    
    <cc>ossy</cc>
    
    <cc>steffen.imhof</cc>
    
    <cc>webkit-sed</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>533891</commentid>
    <comment_count>0</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-01-11 07:44:47 -0800</bug_when>
    <thetext>Added in http://trac.webkit.org/changeset/104622.

We composite some content that we should not.

-PASS no compositing layers
+FAIL content has compositing layers
 
+(GraphicsLayer
+(bounds 800.00 600.00)
+(children 1
+(GraphicsLayer
+(bounds 800.00 600.00)
+)
+)
+)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>533894</commentid>
    <comment_count>1</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-01-11 07:51:18 -0800</bug_when>
    <thetext>Skipped in http://trac.webkit.org/changeset/104712</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>638339</commentid>
    <comment_count>2</comment_count>
    <who name="Steffen Imhof">steffen.imhof</who>
    <bug_when>2012-05-31 06:36:06 -0700</bug_when>
    <thetext>I had a look into this and noticed the content of the test page does not really matter. For me it looks as if compositing is always enabled in the Qt/WK2 case:

In QQuickWebViewPrivate::initialize() there is:
  webPageProxy-&gt;pageGroup()-&gt;preferences()-&gt;setForceCompositingMode(true);

and in DrawingAreaImpl&apos;s constructor:

  if (webPage-&gt;corePage()-&gt;settings()-&gt;acceleratedDrawingEnabled() || webPage-&gt;corePage()-&gt;settings()-&gt;forceCompositingMode())
      m_alwaysUseCompositing = true;

  if (m_alwaysUseCompositing)
      enterAcceleratedCompositingMode(0);


Furthermore QQuickWebPage is unconditionally expecting a LayerTreeHostProxy in QQuickWebPagePrivate::paint():

  LayerTreeHostProxy* layerTreeHostProxy = webPageProxy-&gt;drawingArea()-&gt;layerTreeHostProxy();
  if (layerTreeHostProxy-&gt;layerTreeRenderer())

So when I testwise changed the preference to setForceCompositingMode(false), QQuickWebPage got a NULL pointer and MiniBrowser instantly crashed for me.

Now I am not sure, if this is by-design and it is ok to always have compositing enabled. Or if this more general issue still needs fixing (but that would probably be a bit too much for me).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>638380</commentid>
    <comment_count>3</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-05-31 07:11:55 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I had a look into this and noticed the content of the test page does not really matter. For me it looks as if compositing is always enabled in the Qt/WK2 case:
&gt; 
&gt; In QQuickWebViewPrivate::initialize() there is:
&gt;   webPageProxy-&gt;pageGroup()-&gt;preferences()-&gt;setForceCompositingMode(true);
&gt; 
&gt; and in DrawingAreaImpl&apos;s constructor:
&gt; 
&gt;   if (webPage-&gt;corePage()-&gt;settings()-&gt;acceleratedDrawingEnabled() || webPage-&gt;corePage()-&gt;settings()-&gt;forceCompositingMode())
&gt;       m_alwaysUseCompositing = true;
&gt; 
&gt;   if (m_alwaysUseCompositing)
&gt;       enterAcceleratedCompositingMode(0);
&gt; 
&gt; 
&gt; Furthermore QQuickWebPage is unconditionally expecting a LayerTreeHostProxy in QQuickWebPagePrivate::paint():
&gt; 
&gt;   LayerTreeHostProxy* layerTreeHostProxy = webPageProxy-&gt;drawingArea()-&gt;layerTreeHostProxy();
&gt;   if (layerTreeHostProxy-&gt;layerTreeRenderer())
&gt; 
&gt; So when I testwise changed the preference to setForceCompositingMode(false), QQuickWebPage got a NULL pointer and MiniBrowser instantly crashed for me.
&gt; 
&gt; Now I am not sure, if this is by-design and it is ok to always have compositing enabled. Or if this more general issue still needs fixing (but that would probably be a bit too much for me).

Thanks for your time investigating on this. Yes, by design Qt-WK2 always use compositing. I think we should skip this patch and those that are testing for compositing is not turned on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>638384</commentid>
    <comment_count>4</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-05-31 07:13:55 -0700</bug_when>
    <thetext>Oops, I just realized that the one who reported this is me... Noam, do you agree that we should skip all tests that tests for compositing is _not_ turned on (because we always use it)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>638390</commentid>
    <comment_count>5</comment_count>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2012-05-31 07:23:58 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Oops, I just realized that the one who reported this is me... Noam, do you agree that we should skip all tests that tests for compositing is _not_ turned on (because we always use it)?

Yes, sounds right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>641626</commentid>
    <comment_count>6</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-06-05 09:12:45 -0700</bug_when>
    <thetext>I could not find any other test that explicitly test for compositing not turned on, however I filed a meta bug for this.

*** This bug has been marked as a duplicate of bug 88337 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>