<?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>90169</bug_id>
          
          <creation_ts>2012-06-28 06:28:49 -0700</creation_ts>
          <short_desc>Effective Image size deviates from width and height attributes with sub-pixel layout</short_desc>
          <delta_ts>2012-07-19 02:11:47 -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>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>DUPLICATE</resolution>
          <dup_id>91464</dup_id>
          
          <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>60318</blocked>
    
    <blocked>89458</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominik Röttsches (drott)">d-r</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eae</cc>
    
    <cc>leviw</cc>
    
    <cc>tmpsantos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>659458</commentid>
    <comment_count>0</comment_count>
      <attachid>149937</attachid>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-06-28 06:28:49 -0700</bug_when>
    <thetext>Created attachment 149937
014-wdiff.html failure

When enabling sub-pixel layout, the DRT values for RenderImages are deviating from the specified width and height.
This shows for example in fast/block/basic/014-wdiff.html (diff attached).

I don&apos;t see a reason why the image size should be changed from what&apos;s specified as height (21) to 22 pixels height and then moved one pixel up (-1).

I&apos;m investigating, but if this is a known issue, Levi &amp; Emil - please let me know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>662179</commentid>
    <comment_count>1</comment_count>
      <attachid>150597</attachid>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-07-03 06:34:59 -0700</bug_when>
    <thetext>Created attachment 150597
Simplified test case

This test case still results in

layer at (0,0) size 800x600
  RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
  RenderBlock {HTML} at (0,0) size 800x600
    RenderBody {BODY} at (8,8) size 784x584
      RenderImage {IMG} at (0,-1) size 21x22 [bgcolor=#008000]
      RenderText {#text} at (0,0) size 0x0

The image being vertically moved up, and sized larger than specified. This seems wrong to me. It&apos;s likely casued by the vertical-align: middle declaration, resulting in a shifted positioning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>662313</commentid>
    <comment_count>2</comment_count>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2012-07-03 09:56:46 -0700</bug_when>
    <thetext>I believe the fix for 90354 addressed this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>662854</commentid>
    <comment_count>3</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-07-04 04:18:39 -0700</bug_when>
    <thetext>Unfortunately, bug 90354 doesn&apos;t solve this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>673322</commentid>
    <comment_count>4</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-07-19 02:11:47 -0700</bug_when>
    <thetext>Argh... I was soo close to finding the reason :-) - Good to see it&apos;s fixed.

*** This bug has been marked as a duplicate of bug 91464 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>149937</attachid>
            <date>2012-06-28 06:28:49 -0700</date>
            <delta_ts>2012-06-28 06:28:49 -0700</delta_ts>
            <desc>014-wdiff.html failure</desc>
            <filename>014-wdiff.html</filename>
            <type>text/html</type>
            <size>888</size>
            <attacher name="Dominik Röttsches (drott)">d-r</attacher>
            
              <data encoding="base64">PGhlYWQ+PHN0eWxlPi5kZWwgeyBiYWNrZ3JvdW5kOiAjZmFhOyB9IC5hZGQgeyBiYWNrZ3JvdW5k
OiAjYWZhOyB9PC9zdHlsZT48L2hlYWQ+PHByZT5sYXllciBhdCAoMCwwKSBzaXplIDgwMHg2MDAK
ICBSZW5kZXJWaWV3IGF0ICgwLDApIHNpemUgODAweDYwMApsYXllciBhdCAoMCwwKSBzaXplIDgw
MHg2MDAKICBSZW5kZXJCbG9jayB7SFRNTH0gYXQgKDAsMCkgc2l6ZSA4MDB4NjAwCiAgICBSZW5k
ZXJCb2R5IHtCT0RZfSBhdCAoOCw4KSBzaXplIDc4NHg1ODQKICAgICAgUmVuZGVySW5saW5lIHtB
fSBhdCAoMCwwKSBzaXplIDIxeDE2IFtjb2xvcj0jMDAwMEVFXQogICAgICAgIFJlbmRlckltYWdl
IHtJTUd9IGF0IDxzcGFuIGNsYXNzPWRlbD4oMCwwKTwvc3Bhbj4gPHNwYW4gY2xhc3M9YWRkPigw
LC0xKTwvc3Bhbj4gc2l6ZSA8c3BhbiBjbGFzcz1kZWw+MjF4MjE8L3NwYW4+IDxzcGFuIGNsYXNz
PWFkZD4yMXgyMjwvc3Bhbj4gW2JnY29sb3I9IzAwODAwMF0KICAgICAgUmVuZGVyVGV4dCB7I3Rl
eHR9IGF0ICgyMSwxKSBzaXplIDR4MTYKICAgICAgICB0ZXh0IHJ1biBhdCAoMjEsMSkgd2lkdGgg
NDogIiAiCiAgICAgIFJlbmRlckltYWdlIHtJTUd9IGF0IDxzcGFuIGNsYXNzPWRlbD4oMjUsMCk8
L3NwYW4+IDxzcGFuIGNsYXNzPWFkZD4oMjUsLTEpPC9zcGFuPiBzaXplIDxzcGFuIGNsYXNzPWRl
bD4yMXgyMTwvc3Bhbj4gPHNwYW4gY2xhc3M9YWRkPjIxeDIyPC9zcGFuPiBbYmdjb2xvcj0jMDA4
MDAwXQogICAgICBSZW5kZXJUZXh0IHsjdGV4dH0gYXQgKDQ2LDEpIHNpemUgMjk1eDE2CiAgICAg
ICAgdGV4dCBydW4gYXQgKDQ2LDEpIHdpZHRoIDI5NTogIiBUaGUgdHdvIGdyZWVuIGJsb2NrcyBz
aG91bGQgbGluZSB1cCB2ZXJ0aWNhbGx5LiIKPC9wcmU+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>150597</attachid>
            <date>2012-07-03 06:34:59 -0700</date>
            <delta_ts>2012-07-03 06:34:59 -0700</delta_ts>
            <desc>Simplified test case</desc>
            <filename>014_imgonly.html</filename>
            <type>text/html</type>
            <size>166</size>
            <attacher name="Dominik Röttsches (drott)">d-r</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8c3R5bGU+CmltZwp7CiAgICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOwog
ICAgYm9yZGVyLXN0eWxlOiBub25lOwogICAgYmFja2dyb3VuZC1jb2xvcjpncmVlbjsKfQo8L3N0
eWxlPgo8L2hlYWQ+Cjxib2R5PjxpbWcgd2lkdGg9MjEgaGVpZ2h0PTIxPjwvYm9keT4KCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>