Changeset 89313 in webkit
- Timestamp:
- Jun 20, 2011 4:44:19 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r89311 r89313 1 2011-06-20 Tim Horton <timothy_horton@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Incorrect clamping on SVG masks when root element is not located at (0,0) 6 https://bugs.webkit.org/show_bug.cgi?id=63019 7 8 * platform/mac/svg/custom/absolute-root-position-masking-expected.png: Added. 9 * platform/mac/svg/custom/absolute-root-position-masking-expected.txt: Added. 10 * platform/qt/svg/custom/absolute-root-position-masking-expected.png: Added. 11 * platform/qt/svg/custom/absolute-root-position-masking-expected.txt: Added. 12 * svg/custom/absolute-root-position-masking.xhtml: Added. 13 1 14 2011-06-20 Kenneth Russell <kbr@google.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r89312 r89313 1 2011-06-20 Tim Horton <timothy_horton@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Incorrect clamping on SVG masks when root element is not located at (0,0) 6 https://bugs.webkit.org/show_bug.cgi?id=63019 7 8 We should be using frameRect(), not contentBoxRect() for the rect to 9 clamp to when creating an SVG mask image. 10 11 Test: svg/custom/absolute-root-position-masking.xhtml 12 13 * rendering/svg/SVGImageBufferTools.cpp: 14 (WebCore::SVGImageBufferTools::clampedAbsoluteTargetRectForRenderer): 15 1 16 2011-06-20 Adam Barth <abarth@webkit.org> 2 17 -
trunk/Source/WebCore/rendering/svg/SVGImageBufferTools.cpp
r88250 r89313 120 120 const RenderSVGRoot* svgRoot = SVGRenderSupport::findTreeRootObject(renderer); 121 121 FloatRect clampedAbsoluteTargetRect = absoluteTargetRect; 122 clampedAbsoluteTargetRect.intersect(svgRoot-> contentBoxRect());122 clampedAbsoluteTargetRect.intersect(svgRoot->frameRect()); 123 123 return clampedAbsoluteTargetRect; 124 124 }
Note: See TracChangeset
for help on using the changeset viewer.