<?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>55103</bug_id>
          
          <creation_ts>2011-02-23 16:42:53 -0800</creation_ts>
          <short_desc>Clipping layer doesn&apos;t resize when FrameView changes size</short_desc>
          <delta_ts>2011-02-25 11:00:04 -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>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vangelis Kokkevis">vangelis</reporter>
          <assigned_to name="Vangelis Kokkevis">vangelis</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>356545</commentid>
    <comment_count>0</comment_count>
    <who name="Vangelis Kokkevis">vangelis</who>
    <bug_when>2011-02-23 16:42:53 -0800</bug_when>
    <thetext>The size of the m_clipLayer created by RenderLayerCompositor doesn&apos;t get updated when the layoutWidth of the associated frameView changes.  This can happen if for example the content of the page changes and the scrollbar is removed.

It&apos;s fairly easy to reproduce the problem in Chromium by visiting:

http://www.youtube.com/watch?v=PEZiZ9G-gNs

and switching the video over to full screen mode (note that in this case the video doesn&apos;t expand to cover the entire screen, it just stretches to use the entire window size).  You&apos;ll notice that the video doesn&apos;t render in the area that used to be occupied by the scroll bar.  What happens here is that in non-fullscreen mode the page has a scrollbar whereas in fullscreen mode it doesn&apos;t. Switching between the two modes effectively changes the layoutWidth of the FrameView.  If you change the window size the problem goes away. 

(Safari on mac doesn&apos;t exhibit the issue in this particular case as it handles scrolling differently and the RenderLayerCompositor doesn&apos;t create a clip or scroll layer)

The problem appears to be that when RenderLayerCompositor::rebuildCompositingLayerTree() is called, even though the size of m_rootPlayerformLayer is set correctly, the clip layer size doesn&apos;t get updated.  The most natural place to update the clip layer size appears to be in RenderLayerCompositor::updateRootLayerPosition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>356549</commentid>
    <comment_count>1</comment_count>
      <attachid>83577</attachid>
    <who name="Vangelis Kokkevis">vangelis</who>
    <bug_when>2011-02-23 16:48:31 -0800</bug_when>
    <thetext>Created attachment 83577
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>356557</commentid>
    <comment_count>2</comment_count>
      <attachid>83577</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-02-23 16:55:42 -0800</bug_when>
    <thetext>Comment on attachment 83577
Patch

Is it possible to make a layout test with pixel results that test this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>356708</commentid>
    <comment_count>3</comment_count>
    <who name="Vangelis Kokkevis">vangelis</who>
    <bug_when>2011-02-23 23:42:13 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 83577 [details])
&gt; Is it possible to make a layout test with pixel results that test this?

A layout test would be useful here. Ideally I&apos;d like to find a way to programmatically change the frame&apos;s layout width that doesn&apos;t involve scrollbars.  This would make the test useful for safari mac as well.  Any ideas?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358042</commentid>
    <comment_count>4</comment_count>
    <who name="Vangelis Kokkevis">vangelis</who>
    <bug_when>2011-02-25 11:00:04 -0800</bug_when>
    <thetext>Committed r79699: &lt;http://trac.webkit.org/changeset/79699&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>83577</attachid>
            <date>2011-02-23 16:48:31 -0800</date>
            <delta_ts>2011-02-23 16:55:42 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-55103-20110223164829.patch</filename>
            <type>text/plain</type>
            <size>1534</size>
            <attacher name="Vangelis Kokkevis">vangelis</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDc5NTA0KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDItMjMgIFZhbmdlbGlz
IEtva2tldmlzICA8dmFuZ2VsaXNAY2hyb21pdW0ub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFVwZGF0ZSB0aGUgY2xpcCBsYXllciBzaXplIHdo
ZW5ldmVyIHRoZSByb290IGxheWVyJ3Mgc2l6ZSBhbmQgcG9zaXRpb24KKyAgICAgICAgaXMgdXBk
YXRlZC4gVGhpcyBvbmx5IGFmZmVjdHMgdGhlIGFjY2VsZXJhdGVkIGNvbXBvc2l0aW5nIHBhdGgu
CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD01NTEwMwor
CisgICAgICAgICogcmVuZGVyaW5nL1JlbmRlckxheWVyQ29tcG9zaXRvci5jcHA6CisgICAgICAg
IChXZWJDb3JlOjpSZW5kZXJMYXllckNvbXBvc2l0b3I6OnVwZGF0ZVJvb3RMYXllclBvc2l0aW9u
KToKKwogMjAxMS0wMi0xNyAgRW5yaWNh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NpdG9yOjpk
aWRTdGFydEFjY2VsZXJhdGVkQW5pbWF0aW9uKENTU1Byb3BlcnR5SUQgcHJvcGVydHkpCg==
</data>
<flag name="review"
          id="75417"
          type_id="1"
          status="+"
          setter="simon.fraser"
    />
    <flag name="commit-queue"
          id="75418"
          type_id="3"
          status="-"
          setter="vangelis"
    />
          </attachment>
      

    </bug>

</bugzilla>