<?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>105558</bug_id>
          
          <creation_ts>2012-12-20 11:47:33 -0800</creation_ts>
          <short_desc>Get rid of acceleratedCompositingForScrollableFramesEnabled altogether</short_desc>
          <delta_ts>2012-12-20 13:49:35 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>71714</dependson>
          <blocked>105573</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Antonio Gomes">tonikitoo</reporter>
          <assigned_to name="Antonio Gomes">tonikitoo</assigned_to>
          <cc>jamesr</cc>
    
    <cc>kenneth</cc>
    
    <cc>vangelis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>795611</commentid>
    <comment_count>0</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-12-20 11:47:33 -0800</bug_when>
    <thetext>Talked to James Robinson about this a couple of some months ago, and just got around this code again and remember.

Pasted below the relevant bits of conversion:

(...)
705190 Sep 21 16:27:44 &lt;jamesr_&gt;   acceleratedCompositingForScrollableFramesEnabled could probably just go away completely
705193 Sep 21 16:28:22 &lt;tonikitoo&gt; jamesr_, can it? in favor of anything else?
705194 Sep 21 16:28:31 &lt;tonikitoo&gt; let me know, and I can help with that 
705195 Sep 21 16:28:56 &lt;jamesr_&gt;   tonikitoo, so when we initially added force compositing mode we automatically promoted iframes too (it helped with gmail at the time)
705196 Sep 21 16:29:01 &lt;jamesr_&gt;   but then gmail rewrote their dom, heh
705197 Sep 21 16:29:22 &lt;jamesr_&gt;   so we added this to get forceCompositingMode back to just entering compositing mode but not promoting anything
705198 Sep 21 16:29:44 &lt;jamesr_&gt;   while still having the other behavior available. i don&apos;t think we want that other behavior at all nowadays, so        we could just get rid of it
705201 Sep 21 16:30:29 &lt;jamesr_&gt;   tonikitoo, so i think we could just drop the setting
705202 Sep 21 16:30:37 &lt;jamesr_&gt;   at least, chromium isn&apos;t using it right now afaik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>795655</commentid>
    <comment_count>1</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-12-20 12:14:56 -0800</bug_when>
    <thetext>Some options:

1) Just reverting bug 71714 would change the behavior for all ports, since it would make &quot;force compositing mode&quot; associated only to the frame scrollability.

2) keep the current behavior: the setting acceleratedCompositingForScrollableFramesEnabled is FALSE for all ports, then we could just make &quot;force compositing mode&quot; to be FALSE, if it is an inner frame, like below:

void RenderLayerCompositor::cacheAcceleratedCompositingFlags()
{
...
         if (forceCompositingMode &amp;&amp; m_renderView-&gt;document()-&gt;ownerElement())
-             forceCompositingMode = settings-&gt;acceleratedCompositingForScrollableFramesEnabled() &amp;&amp; requiresCompositingForScrollableFrame();
+             forceCompositingMode = false;
...

But then, some chromium specific tests would start failing, including:

platform/chromium/compositing/force-compositing-mode/overflow-iframe-layer.html

@James: any thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>795660</commentid>
    <comment_count>2</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-12-20 12:24:09 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Some options:
&gt; 
&gt; 1) Just reverting bug 71714 would change the behavior for all ports, since it would make &quot;force compositing mode&quot; associated only to the frame scrollability.
&gt; 
&gt; 2) keep the current behavior: the setting acceleratedCompositingForScrollableFramesEnabled is FALSE for all ports, then we could just make &quot;force compositing mode&quot; to be FALSE, if it is an inner frame, like below:
&gt; 
&gt; void RenderLayerCompositor::cacheAcceleratedCompositingFlags()
&gt; {
&gt; ...
&gt;          if (forceCompositingMode &amp;&amp; m_renderView-&gt;document()-&gt;ownerElement())
&gt; -             forceCompositingMode = settings-&gt;acceleratedCompositingForScrollableFramesEnabled() &amp;&amp; requiresCompositingForScrollableFrame();
&gt; +             forceCompositingMode = false;
&gt; ...
&gt; 
&gt; But then, some chromium specific tests would start failing, including:
&gt; 
&gt; platform/chromium/compositing/force-compositing-mode/overflow-iframe-layer.html
&gt; 
&gt; @James: any thoughts?

We could actually remove these tests, since they would be no longer applicable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>795692</commentid>
    <comment_count>3</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-12-20 12:52:45 -0800</bug_when>
    <thetext>We&apos;re using it now in chromium.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>795706</commentid>
    <comment_count>4</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-12-20 13:01:50 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; We&apos;re using it now in chromium.

Ok, then a couple of questions:

- Are you using it in conjunction to ForceCompositingMode only, like previously?
- I think it makes sense to turn it into a compositing trigger instead(?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>795764</commentid>
    <comment_count>5</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-12-20 13:49:35 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; We&apos;re using it now in chromium.
&gt; 
&gt; Ok, then a couple of questions:
&gt; 
&gt; - Are you using it in conjunction to ForceCompositingMode only, like previously?
&gt; - I think it makes sense to turn it into a compositing trigger instead(?)

Based on James&apos; input, I am closing this bug for now in favor of bug 105573, but feel free to answer the questions above here or there.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>