<?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>51150</bug_id>
          
          <creation_ts>2010-12-15 16:46:08 -0800</creation_ts>
          <short_desc>WebView&apos;s _scaleWebView SPI doesn&apos;t work on pages with compositing layers</short_desc>
          <delta_ts>2010-12-15 18:18:28 -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>Mac</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Beth Dakin">bdakin</reporter>
          <assigned_to name="Beth Dakin">bdakin</assigned_to>
          <cc>bdakin</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>322935</commentid>
    <comment_count>0</comment_count>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2010-12-15 16:46:08 -0800</bug_when>
    <thetext>If you apply a scale factor to a page with compositing layers via the _scaleWebView SPI, the composited layers will scale, and the other layers will not. Also, the painting is clipped at the boundaries of the size of the un-scaled WebView. This does not happen on pages without compositing layers.

&lt;rdar://problem/8604713&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322968</commentid>
    <comment_count>1</comment_count>
      <attachid>76714</attachid>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2010-12-15 17:23:35 -0800</bug_when>
    <thetext>Created attachment 76714
Patch

Simon was worried that docWidth and docHeight might be incorrect at times -- especially if they could ever be negative. I feel confident that they are correct here because of Hyatt&apos;s description in the ChangeLog for r73885: &quot;RenderView now uses docLeft/Top/Height/Width functions, which are just overflow queries that account for writing modes.  These methods are now the preferred way to query for the physical dimensions of a document.&quot; Also, all of the layout tests pass, and I did some testing on LTR and RTL web sites with compositing layers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322982</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2010-12-15 17:45:45 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created an attachment (id=76714) [details]
&gt; Patch
&gt; 
&gt; Simon was worried that docWidth and docHeight might be incorrect at times -- especially if they could ever be negative.

To clarify, it&apos;s top/left I&apos;m worried about. I think the graphics layer origin might have to be adjusted in some situations (like RTL, or vertical text).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322993</commentid>
    <comment_count>3</comment_count>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2010-12-15 18:15:18 -0800</bug_when>
    <thetext>Thanks Darin!

And thanks for clarifying, Simon. Simon and I looked at this more closely, and he was correct that there are still some problems on RTL pages with compositing layers that start with a horizontal scrollbar and content anchored to the right side of the page. I have a test case for that and will file a follow-up bug. 

In the meantime, I committed this patch with revision 74168.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322995</commentid>
    <comment_count>4</comment_count>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2010-12-15 18:18:28 -0800</bug_when>
    <thetext>Filed https://bugs.webkit.org/show_bug.cgi?id=51158 as a follow-up for the RTL issue mentioned above.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>76714</attachid>
            <date>2010-12-15 17:23:35 -0800</date>
            <delta_ts>2010-12-15 17:38:50 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>for-review.txt</filename>
            <type>text/plain</type>
            <size>2558</size>
            <attacher name="Beth Dakin">bdakin</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA3NDE2MykKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMjMgQEAKKzIwMTAtMTItMTUgIEJldGggRGFraW4gIDxiZGFraW5AYXBwbGUuY29t
PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEZpeCBm
b3IgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTUxMTUwIFdlYlZpZXcn
cyAKKyAgICAgICAgX3NjYWxlV2ViVmlldyBTUEkgZG9lc24ndCB3b3JrIG9uIHBhZ2VzIHdpdGgg
Y29tcG9zaXRpbmcgbGF5ZXJzCisgICAgICAgIC1hbmQgY29ycmVzcG9uZGluZy0KKyAgICAgICAg
PHJkYXI6Ly9wcm9ibGVtLzg2MDQ3MTM+CisKKyAgICAgICAgcGFpbnRpbmdHb2VzVG9XaW5kb3co
KSBzaG91bGQgcmV0dXJuIGZhbHNlIGlmIHRoZSBvd25pbmcgbGF5ZXIgaGFzIAorICAgICAgICBh
IHRyYW5zZm9ybS4KKyAgICAgICAgKiByZW5kZXJpbmcvUmVuZGVyTGF5ZXJCYWNraW5nLmNwcDoK
KyAgICAgICAgKFdlYkNvcmU6OlJlbmRlckxheWVyQmFja2luZzo6cGFpbnRpbmdHb2VzVG9XaW5k
b3cpOgorCisgICAgICAgIFVzZSBkb2NXaWR0aCgpIGFuZCBkb2NIZWlnaHQoKSBpbnN0ZWFkIG9m
IHJpZ2h0T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cm9vdFBsYXRmb3JtTGF5
ZXItPnNldFNpemUoRmxvYXRTaXplKG1fcmVuZGVyVmlldy0+ZG9jV2lkdGgoKSwgbV9yZW5kZXJW
aWV3LT5kb2NIZWlnaHQoKSkpOwogfQogCiB2b2lkIFJlbmRlckxheWVyQ29tcG9zaXRvcjo6ZGlk
U3RhcnRBY2NlbGVyYXRlZEFuaW1hdGlvbihDU1NQcm9wZXJ0eUlEIHByb3BlcnR5KQo=
</data>
<flag name="review"
          id="67710"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>