Bug 32575 - sourceGraphic wrong if positive x,y is >0 and objectBB is selected on Filter
Summary: sourceGraphic wrong if positive x,y is >0 and objectBB is selected on Filter
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 68469 26389
  Show dependency treegraph
 
Reported: 2009-12-15 13:15 PST by Dirk Schulze
Modified: 2014-05-12 05:54 PDT (History)
2 users (show)

See Also:


Attachments
Fix of Filter source position (22.36 KB, patch)
2009-12-16 00:06 PST, Dirk Schulze
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2009-12-15 13:15:51 PST
sourceGraphic is on the wrong position if values of filter: x,y are positive and filterUnits=objectBB. This is caused by the clipping of the sourceImage rect to the filter rect. I have already a patch for it, but need to run LayoutTests first.
Comment 1 Dirk Schulze 2009-12-16 00:06:36 PST
Created attachment 44951 [details]
Fix of Filter source position

On SVG Filters, the rest of the source graphic gets clipped to the filter rest. This helps us to minimize the size of intermediate ImageBuffers. If the position moves to the right or to the bottom, we have to adjust the GraphicContext of this intermediate ImageBuffer.
This patch fixes the adjustment of the context, according to the clipping.
Comment 2 WebKit Review Bot 2009-12-16 00:09:44 PST
style-queue ran check-webkit-style on attachment 44951 [details] without any errors.
Comment 3 WebKit Commit Bot 2009-12-16 10:13:03 PST
Comment on attachment 44951 [details]
Fix of Filter source position

Clearing flags on attachment: 44951

Committed r52202: <http://trac.webkit.org/changeset/52202>
Comment 4 WebKit Commit Bot 2009-12-16 10:13:10 PST
All reviewed patches have been landed.  Closing bug.