Changeset 154856 in webkit
- Timestamp:
- Aug 29, 2013, 5:07:33 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r154855 r154856 1 2013-08-29 Tim Horton <timothy_horton@apple.com> 2 3 SVG clipping, masking, and gradients-on-text do not respect the device scale factor 4 https://bugs.webkit.org/show_bug.cgi?id=120377 5 <rdar://problem/14777944> 6 7 Reviewed by Simon Fraser. 8 9 Add a test that ensures that when deviceScaleFactor=2, masks, clipping, 10 gradients, and patterns are rendered @2x. 11 12 * svg/custom/masking-clipping-hidpi-expected.svg: Added. 13 * svg/custom/masking-clipping-hidpi.svg: Added. 14 1 15 2013-08-29 Chris Fleizach <cfleizach@apple.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r154855 r154856 1 2013-08-29 Tim Horton <timothy_horton@apple.com> 2 3 SVG clipping, masking, and gradients-on-text do not respect the device scale factor 4 https://bugs.webkit.org/show_bug.cgi?id=120377 5 <rdar://problem/14777944> 6 7 Reviewed by Simon Fraser. 8 9 Tests: svg/custom/masking-clipping-hidpi.svg 10 11 calculateTransformationToOutermostCoordinateSystem should include the page's 12 device scale factor in its transform. 13 14 * rendering/svg/SVGRenderingContext.cpp: 15 (WebCore::SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem): 16 1 17 2013-08-29 Chris Fleizach <cfleizach@apple.com> 2 18 -
trunk/Source/WebCore/rendering/svg/SVGRenderingContext.cpp
r154554 r154856 31 31 #include "Frame.h" 32 32 #include "FrameView.h" 33 #include "Page.h" 33 34 #include "RenderLayer.h" 34 35 #include "RenderSVGImage.h" … … 199 200 absoluteTransform = currentContentTransformation(); 200 201 202 float deviceScaleFactor = 1; 203 if (Page* page = renderer->document().page()) 204 deviceScaleFactor = page->deviceScaleFactor(); 205 201 206 // Walk up the render tree, accumulating SVG transforms. 202 207 while (renderer) { … … 219 224 layer = layer->parent(); 220 225 } 226 227 absoluteTransform.scale(deviceScaleFactor); 221 228 } 222 229
Note:
See TracChangeset
for help on using the changeset viewer.