Changeset 52202 in webkit
- Timestamp:
- Dec 16, 2009 10:12:55 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r52201 r52202 1 2009-12-16 Dirk Schulze <krit@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 sourceGraphic wrong if positive x,y is >0 and objectBB is selected on Filter 6 https://bugs.webkit.org/show_bug.cgi?id=32575 7 8 Check if the GraphicsContex get adjusted, if the source rect is clipped 9 to the filter rect. 10 11 * platform/mac/svg/filters/filter-source-position-expected.checksum: Added. 12 * platform/mac/svg/filters/filter-source-position-expected.png: Added. 13 * platform/mac/svg/filters/filter-source-position-expected.txt: Added. 14 * svg/filters/filter-source-position.svg: Added. 15 1 16 2009-12-16 Enrica Casucci <enrica@apple.com> 2 17 -
trunk/WebCore/ChangeLog
r52201 r52202 1 2009-12-16 Dirk Schulze <krit@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 sourceGraphic wrong if positive x,y is >0 and objectBB is selected on Filter 6 https://bugs.webkit.org/show_bug.cgi?id=32575 7 8 On SVG Filters, the rest of the source graphic gets clipped to the filter 9 rest. This helps us to minimize the size of intermediate ImageBuffers. If 10 the position moves to the right or to the bottom, we have to adjust the 11 GraphicContext of this intermediate ImageBuffer. 12 This patch fixes the adjustment of the context, according to the clipping. 13 14 Test: svg/filters/filter-source-position.svg 15 16 * svg/graphics/SVGResourceFilter.cpp: 17 (WebCore::SVGResourceFilter::prepareFilter): 18 1 19 2009-12-16 Enrica Casucci <enrica@apple.com> 2 20 -
trunk/WebCore/svg/graphics/SVGResourceFilter.cpp
r51310 r52202 136 136 137 137 GraphicsContext* sourceGraphicContext = sourceGraphic->context(); 138 sourceGraphicContext->translate(-clippedSourceRect.x(), -clippedSourceRect.y()); 138 139 sourceGraphicContext->scale(FloatSize(m_scaleX, m_scaleY)); 139 sourceGraphicContext->translate(-targetRect.x(), -targetRect.y());140 140 sourceGraphicContext->clearRect(FloatRect(FloatPoint(), targetRect.size())); 141 141 m_sourceGraphicBuffer.set(sourceGraphic.release());
Note: See TracChangeset
for help on using the changeset viewer.