<?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>78165</bug_id>
          
          <creation_ts>2012-02-08 15:33:35 -0800</creation_ts>
          <short_desc>Calling RenderBox::absoluteQuads on RenderSVGRoot returns incorrect values when zoom or viewbox is involved</short_desc>
          <delta_ts>2012-03-19 08:34:11 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>
          <dependson>78037</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Max Vujovic">mvujovic</reporter>
          <assigned_to name="Max Vujovic">mvujovic</assigned_to>
          <cc>krit</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>552551</commentid>
    <comment_count>0</comment_count>
    <who name="Max Vujovic">mvujovic</who>
    <bug_when>2012-02-08 15:33:35 -0800</bug_when>
    <thetext>RenderSVGRoot applies its local transform on itself when calling RenderBox::absoluteQuads. This happens in RenderSVGRoot::mapLocalToContainer.

The call hierarchy is:

RenderBox::absoluteQuads(Vector&lt;FloatQuad&gt;&amp;, bool* wasFixed) const;
RenderObject::localToAbsoluteQuad(const FloatQuad&amp; quad, bool fixed = false, bool* wasFixed = 0) const
RenderObject::localToContainerQuad(const FloatQuad&amp;, RenderBoxModelObject* repaintContainer, bool fixed = false, bool* wasFixed = 0) const;
RenderSVGRoot::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState&amp;, bool* wasFixed = 0) const;

absoluteQuads takes in a quad with the size of the SVG root element in screen space, after page zoom.
mapLocalToContainer then transforms the quad by RenderSVGRoot&apos;s m_localToBorderBoxTransform, which contains the zoom transform and the viewbox transform. See RenderSVGRoot::buildLocalToBorderBoxTransform.

Note that both getBoundingClientRect and the inspector highlight on SVG root elements rely on absoluteQuads to do their job. Links to related bugs are under the &quot;Blocks:&quot; field.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581822</commentid>
    <comment_count>1</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-03-19 08:29:05 -0700</bug_when>
    <thetext>Is this bug fixed as well, now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581824</commentid>
    <comment_count>2</comment_count>
    <who name="Max Vujovic">mvujovic</who>
    <bug_when>2012-03-19 08:33:23 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Is this bug fixed as well, now?

Yes, after bug 78037, this bug should be fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>