Changeset 201604 in webkit
- Timestamp:
- Jun 2, 2016, 11:40:02 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/svg/custom/svg-root-padding-individual-expected.html (added)
-
LayoutTests/svg/custom/svg-root-padding-individual.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/svg/RenderSVGRoot.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r201601 r201604 1 2016-06-02 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 SVG content renders in incorrect vertical position when padding-left is not specified 4 https://bugs.webkit.org/show_bug.cgi?id=158234 5 6 Reviewed by Darin Adler. 7 8 Make sure the SVG root element is positioned correctly when either the sum 9 of its (leftPadding + rightPadding) or the sum of its (topPadding + bottomPadding) 10 is equal to zero. 11 12 * svg/custom/svg-root-padding-individual-expected.html: Added. 13 * svg/custom/svg-root-padding-individual.html: Added. 14 1 15 2016-06-02 Adam Bergkvist <adam.bergkvist@ericsson.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r201603 r201604 1 2016-06-02 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 SVG content renders in incorrect vertical position when padding-left is not specified 4 https://bugs.webkit.org/show_bug.cgi?id=158234 5 6 Reviewed by Darin Adler. 7 8 Fix the optimization in RenderSVGRoot::buildLocalToBorderBoxTransform(). 9 Use LayoutSize::isZero() instead of LayoutSize::isEmpty() to decide whether 10 there is borderAndPadding applied or not. 11 12 Test: svg/custom/svg-root-padding-individual.html 13 14 * rendering/svg/RenderSVGRoot.cpp: 15 (WebCore::RenderSVGRoot::buildLocalToBorderBoxTransform): 16 1 17 2016-06-02 Brady Eidson <beidson@apple.com> 2 18 -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
r201040 r201604 332 332 LayoutSize borderAndPadding(borderLeft() + paddingLeft(), borderTop() + paddingTop()); 333 333 m_localToBorderBoxTransform = svgSVGElement().viewBoxToViewTransform(contentWidth() / scale, contentHeight() / scale); 334 if (borderAndPadding.is Empty() && scale == 1 && translate == SVGPoint::zero())334 if (borderAndPadding.isZero() && scale == 1 && translate == SVGPoint::zero()) 335 335 return; 336 336 m_localToBorderBoxTransform = AffineTransform(scale, 0, 0, scale, borderAndPadding.width() + translate.x(), borderAndPadding.height() + translate.y()) * m_localToBorderBoxTransform;
Note:
See TracChangeset
for help on using the changeset viewer.