<?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>147627</bug_id>
          
          <creation_ts>2015-08-04 05:19:07 -0700</creation_ts>
          <short_desc>[CoordinatedGraphics] Fixed position element didn&apos;t make the compositing layer in WTR.</short_desc>
          <delta_ts>2015-09-23 22:56:08 -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>WebKit EFL</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          <blocked>147019</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Hunseop Jeong">hs85.jeong</reporter>
          <assigned_to name="Hunseop Jeong">hs85.jeong</assigned_to>
          <cc>gyuyoung.kim</cc>
    
    <cc>lucas.de.marchi</cc>
    
    <cc>ossy</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1114595</commentid>
    <comment_count>0</comment_count>
    <who name="Hunseop Jeong">hs85.jeong</who>
    <bug_when>2015-08-04 05:19:07 -0700</bug_when>
    <thetext>compositing/fixed-with-fixed-layout.html failed after r186911 because

# 49 line in LayoutTests/compositing/fixed-with-fixed-layout.html 
if (window.internals) {
    internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);

&apos;internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true)&apos; didn&apos;t work properly in WTR.

CoordinatedGrapihcs set the &apos;AcceleratedCompositingForFixedPosition&apos; in WebPage::setUseFixedLayout normally.
But only &apos;frameView-&gt;setUseFixedLayout()&apos; was invoked in WTR if I use the &apos;internals.settings.setAcceleratedCompositingForFixedPositionEnabled&apos; in test.
So we need to set the AcceleratedCompositingForFixedPositionEnabled in Internals::setUseFixedLayout() to work correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114596</commentid>
    <comment_count>1</comment_count>
      <attachid>258171</attachid>
    <who name="Hunseop Jeong">hs85.jeong</who>
    <bug_when>2015-08-04 05:27:38 -0700</bug_when>
    <thetext>Created attachment 258171
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114610</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-08-04 07:56:39 -0700</bug_when>
    <thetext>I have some questions about this change:
- How does this change affect the layout test results? 
- Will we have more passing tests? If yes, we should unskip them.
- Do we reset this setting to the default between each test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114612</commentid>
    <comment_count>3</comment_count>
      <attachid>258171</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-08-04 08:37:06 -0700</bug_when>
    <thetext>Comment on attachment 258171
Patch

I don&apos;t think this makes sense. fixed layout and these two settings should be orthogonal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114650</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2015-08-04 11:07:06 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Comment on attachment 258171 [details]
&gt; Patch
&gt; 
&gt; I don&apos;t think this makes sense. fixed layout and these two settings should
&gt; be orthogonal.

Right.

This:

&gt; CoordinatedGrapihcs set the &apos;AcceleratedCompositingForFixedPosition&apos; in WebPage::setUseFixedLayout normally.

Is totally bizarre and wrong, and needs fixing/deconflating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114941</commentid>
    <comment_count>5</comment_count>
    <who name="Hunseop Jeong">hs85.jeong</who>
    <bug_when>2015-08-04 19:32:11 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Comment on attachment 258171 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; I don&apos;t think this makes sense. fixed layout and these two settings should
&gt; &gt; be orthogonal.
&gt; 
&gt; Right.
&gt; 
&gt; This:
&gt; 
&gt; &gt; CoordinatedGrapihcs set the &apos;AcceleratedCompositingForFixedPosition&apos; in WebPage::setUseFixedLayout normally.
&gt; 
&gt; Is totally bizarre and wrong, and needs fixing/deconflating.

You mean, &apos;setAcceleratedCompositingForFixedPositionEnabled&apos; &amp; &apos;setFixedPositionCreatesStackingContext&apos; isn&apos;t related with fixedLayout?

Now CoordinatedGraphics turn on these options in WebPage::setUseFixedLayout.
On mac, these options was set in RemoteLayerTreeDrawingArea::updatePreferences.
Could I separate these options from the fixedLayout?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114969</commentid>
    <comment_count>6</comment_count>
    <who name="Hunseop Jeong">hs85.jeong</who>
    <bug_when>2015-08-04 22:02:54 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I have some questions about this change:
&gt; - How does this change affect the layout test results? 
This patch can composite the layer for the element that has the fixed position.
CoordinatedGraphics didn&apos;t composite the fixed position element in WTR. 
Is it expected result?
&gt; - Will we have more passing tests? If yes, we should unskip them.
It makes about 30 tests passed, but sadly 200 more tests failed.
If compositing the fixed position element is right, we need to rebaseline the expected results. 
&gt; - Do we reset this setting to the default between each test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1115068</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2015-08-05 11:26:24 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; Comment on attachment 258171 [details]
&gt; &gt; &gt; Patch
&gt; &gt; &gt; 
&gt; &gt; &gt; I don&apos;t think this makes sense. fixed layout and these two settings should
&gt; &gt; &gt; be orthogonal.
&gt; &gt; 
&gt; &gt; Right.
&gt; &gt; 
&gt; &gt; This:
&gt; &gt; 
&gt; &gt; &gt; CoordinatedGrapihcs set the &apos;AcceleratedCompositingForFixedPosition&apos; in WebPage::setUseFixedLayout normally.
&gt; &gt; 
&gt; &gt; Is totally bizarre and wrong, and needs fixing/deconflating.
&gt; 
&gt; You mean, &apos;setAcceleratedCompositingForFixedPositionEnabled&apos; &amp;
&gt; &apos;setFixedPositionCreatesStackingContext&apos; isn&apos;t related with fixedLayout?

Yes, that&apos;s what I mean. These are totally unrelated settings which the CoordinatedGraphics code for whatever reason conflates.

&gt; Now CoordinatedGraphics turn on these options in WebPage::setUseFixedLayout.
&gt; On mac, these options was set in
&gt; RemoteLayerTreeDrawingArea::updatePreferences.

Turning it on in the drawing areas is still a little weird, but a thousand times better than turning it on because another unrelated setting (fixed layout) was turned on.

&gt; Could I separate these options from the fixedLayout?

Could, and should!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128443</commentid>
    <comment_count>8</comment_count>
    <who name="Hunseop Jeong">hs85.jeong</who>
    <bug_when>2015-09-23 22:56:08 -0700</bug_when>
    <thetext>gyuyoung, Do you know the reason that setAcceleratedCompositingForFixedPositionEnabled() and setFixedPositionCreatesStackingContext() was tied with fixedLayout?

In mac, set the setting values of FixedPositionCreatesStackingContext() and AcceleratedCompositingForFixedPositionEnabled() in updatePreferences() of the DrawingArea.

I think CoordinatedGraphics also need to set the FixedPositionCreatesStackingContext and AcceleratedCompositingForFixedPositionEnabled with true for the fixed position element to composite the layer.

If I move the setAcceleratedCompositingForFixedPositionEnabled() and setFixedPositionCreatesStackingContext() from WebPage::setUseFixedLayout() to CoordinatedDrawingArea::updatePreferences(), is it possible to make some problems?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>258171</attachid>
            <date>2015-08-04 05:27:38 -0700</date>
            <delta_ts>2015-08-04 08:37:06 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-147627-20150804212730.patch</filename>
            <type>text/plain</type>
            <size>1744</size>
            <attacher name="Hunseop Jeong">hs85.jeong</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg3NzMxCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMzNiMzQxOGIyOGFkOTE1
NWFmNTEzMzMxNWNlYTNkM2UxMzMyZGQ4ZS4uNzlhOTE0ZGM4MTk5MDc3ZTczZGYzYWFlM2E2Njdl
NTQzMDBkMmE1NiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2IEBACisyMDE1LTA4LTA0ICBIdW5z
ZW9wIEplb25nICA8aHM4NS5qZW9uZ0BzYW1zdW5nLmNvbT4KKworICAgICAgICBbQ29vcmRpbmF0
ZWRHcmFwaGljc10gc2V0QWNjZWxlcmF0ZWRDb21wb3NpdGluZ0ZvckZpeGVkUG9zaXRpb25FbmFi
bGVkIGRpZG4ndCB3b3JrIHByb3Blcmx5IGluIFdUUi4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndl
YmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE0NzYyNworCisgICAgICAgIFJldmlld2VkIGJ5IE5P
Qk9EWSAoT09QUyEpLgorCisgICAgICAgIENvb3JkaW5hdGVkR3JhcGhpY3MgbmVlZCB0byBzZXQg
dGhlIEFjY2VsZXJhdGVkQ29tcG9zaXRpbmdGb3JGaXhlZFBvc2l0aW9uRW5hYmxlZCAmCisgICAg
ICAgIEZpeGVkUG9zaXRpb25Dcm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vY3VtZW50LT5wYWdlKCk7CisKKyAgICAgICAgcGFnZS0+c2V0dGluZ3MoKS5z
ZXRBY2NlbGVyYXRlZENvbXBvc2l0aW5nRm9yRml4ZWRQb3NpdGlvbkVuYWJsZWQodXNlRml4ZWRM
YXlvdXQpOworICAgICAgICBwYWdlLT5zZXR0aW5ncygpLnNldEZpeGVkUG9zaXRpb25DcmVhdGVz
U3RhY2tpbmdDb250ZXh0KHVzZUZpeGVkTGF5b3V0KTsKKyAgICB9CisjZW5kaWYKICAgICBGcmFt
ZVZpZXcqIGZyYW1lVmlldyA9IGRvY3VtZW50LT52aWV3KCk7CiAgICAgZnJhbWVWaWV3LT5zZXRV
c2VGaXhlZExheW91dCh1c2VGaXhlZExheW91dCk7CiB9Cg==
</data>
<flag name="review"
          id="283332"
          type_id="1"
          status="-"
          setter="simon.fraser"
    />
          </attachment>
      

    </bug>

</bugzilla>