<?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>106041</bug_id>
          
          <creation_ts>2013-01-03 14:23:57 -0800</creation_ts>
          <short_desc>Some SVG filters don&apos;t work with tiled drawing</short_desc>
          <delta_ts>2013-03-12 05:14:20 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>106221</dup_id>
          
          <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="Tim Horton">thorton</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>bdakin</cc>
    
    <cc>krit</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>799679</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-01-03 14:23:57 -0800</bug_when>
    <thetext>I don&apos;t know why, but the following examples:

http://srufaculty.sru.edu/david.dailey/svg/Turbulence1.svg
http://srufaculty.sru.edu/david.dailey/svg/later/displace4.svg
http://srufaculty.sru.edu/david.dailey/svg/later/displace7.svg

fail when opened in Safari 6 with tiled drawing on (Mountain Lion, etc.)

&lt;rdar://problem/12951224&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>800468</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2013-01-04 11:55:11 -0800</bug_when>
    <thetext>I am unsure how WebKit handles tiled drawings if I recover it correctly. But we limit the filter size (the area that get filtered) to WebCore&apos;s viewport IIRC. That might or might not be a problem for tiled drawing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>800621</commentid>
    <comment_count>2</comment_count>
      <attachid>181375</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-01-04 14:39:56 -0800</bug_when>
    <thetext>Created attachment 181375
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>800629</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-01-04 14:46:03 -0800</bug_when>
    <thetext>If you resize the window down so that only 1 tile shows, it starts to work. I think some caching is happening when we attempt to draw the filtered element into other tiles where it&apos;s clipped out, and that empty version is getting cached.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>800637</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-01-04 14:54:01 -0800</bug_when>
    <thetext>Turning off the caching in RenderSVGResourceFilter fixes this. So this is about the filtered content being rendered into each tile, but clipped out in some, and a bad version getting cached.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>800659</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-01-04 15:07:24 -0800</bug_when>
    <thetext>Of course RenderSVGShape::paint() bails at:

    if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTransform, paintInfo))
        return;

when painting tiles that don&apos;t contain the filtered shape.

SVGRenderingContext needs to educated about multiple paint passes of the same rendered into different contexts with different clips.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853354</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-03-12 05:05:45 -0700</bug_when>
    <thetext>Confusingly, this seems to have progressed. Will bisect the progression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853360</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-03-12 05:14:20 -0700</bug_when>
    <thetext>Oh, Florin actually explicitly fixed this. Duping.

*** This bug has been marked as a duplicate of bug 106221 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>181375</attachid>
            <date>2013-01-04 14:39:56 -0800</date>
            <delta_ts>2013-01-04 14:39:56 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>blur-filter.svg</filename>
            <type>image/svg+xml</type>
            <size>601</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv
MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KCjxk
ZWZzPgogICAgPGZpbHRlciBpZD0iYmx1ciIgPgogICAgICA8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2
aWF0aW9uPSIwIiAvPgogICAgPC9maWx0ZXI+CjwvZGVmcz4KCjwhLS0gPGcgZmlsdGVyPSJ1cmwo
I2JsdXIpIj4KICAgIDxyZWN0IHg9IjAiIHk9IjAiIGhlaWdodD0iNjAwIiB3aWR0aD0iMTAwIiBm
aWxsPSJyZWQiIC8+CjwvZz4gLS0+CjxnIGZpbHRlcj0idXJsKCNibHVyKSI+CiAgICA8cmVjdCB4
PSIxNTAiIHk9IjAiIGhlaWdodD0iNTAwIiB3aWR0aD0iMTAwIiBmaWxsPSJyZWQiIC8+CjwvZz4K
PCEtLSA8ZyBmaWx0ZXI9InVybCgjYmx1cikiPgogICAgPHJlY3QgeD0iMzAwIiB5PSIwIiBoZWln
aHQ9IjQwMCIgd2lkdGg9IjEwMCIgZmlsbD0icmVkIiAvPgo8L2c+CjxnIGZpbHRlcj0idXJsKCNi
bHVyKSI+CiAgICA8cmVjdCB4PSI0NTAiIHk9IjAiIGhlaWdodD0iMzAwIiB3aWR0aD0iMTAwIiBm
aWxsPSJyZWQiIC8+CjwvZz4gLS0+Cgo8L3N2Zz4KCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>