<?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>32935</bug_id>
          
          <creation_ts>2009-12-25 10:45:01 -0800</creation_ts>
          <short_desc>SVG Clipping doesn&apos;t respect objectBoundingBox of object</short_desc>
          <delta_ts>2009-12-30 01:12:21 -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>SVG</component>
          <version>525.x (Safari 3.1)</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>
          <dependson>32815</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dirk Schulze">krit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>174876</commentid>
    <comment_count>0</comment_count>
      <attachid>45492</attachid>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2009-12-25 10:45:01 -0800</bug_when>
    <thetext>Created attachment 45492
Clipping doesn&apos;t respect objectBoundingBox

SVG Clipping doesn&apos;t use objectBoundingBox of object, even on activated clipPathUnits=&quot;objectBoundingBox&quot;.
SVGRenderBase::prepareToRenderSVGContent in SVGRenderSupprt.cpp gives repaintRectInLocalCoordinates to SVGResourceClipper instead of objectBoundingBox.
repaintRectInLocalCoordinates includes the stroke of the object. You can see the result of this bug on the example. You should see a green rect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175844</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2009-12-30 01:12:21 -0800</bug_when>
    <thetext>Fixed with r52647.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45492</attachid>
            <date>2009-12-25 10:45:01 -0800</date>
            <delta_ts>2009-12-25 10:45:01 -0800</delta_ts>
            <desc>Clipping doesn&apos;t respect objectBoundingBox</desc>
            <filename>clipping.svg</filename>
            <type>image/svg+xml</type>
            <size>392</size>
            <attacher name="Dirk Schulze">krit</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRw
Oi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJvbmUiIGNs
aXBQYXRoVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij4NCiAgICA8cmVjdCB4PSIwLjMiIHk9IjAu
MyIgd2lkdGg9IjAuNCIgaGVpZ2h0PSIwLjQiIHN0cm9rZS13aWR0aD0iMC4xNSIgZmlsbD0ibm9u
ZSIgc3Ryb2tlPSJyZWQiLz4NCjwvY2xpcFBhdGg+DQo8L2RlZnM+DQo8cmVjdCB4PSI1MCIgeT0i
NTAiIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSJncmVlbiIgc3Ryb2tlPSJyZWQiIHN0
cm9rZS13aWR0aD0iMTAwIiBjbGlwLXBhdGg9InVybCgjb25lKSIvPg0KPC9zdmc+DQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>