Changeset 118074 in webkit
- Timestamp:
- May 22, 2012, 3:52:34 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r118070 r118074 1 2012-05-22 Dan Bernstein <mitz@apple.com> 2 3 REGRESSION (r105513): CSS max-width is not applied to SVG element 4 https://bugs.webkit.org/show_bug.cgi?id=87050 5 6 Reviewed by Darin Adler. 7 8 * svg/css/max-height-expected.png: Added. 9 * svg/css/max-height-expected.txt: Added. 10 * svg/css/max-height.html: Added. 11 * svg/css/max-width-expected.png: Added. 12 * svg/css/max-width-expected.txt: Added. 13 * svg/css/max-width.html: Added. 14 1 15 2012-05-22 Emil A Eklund <eae@chromium.org> 2 16 -
trunk/Source/WebCore/ChangeLog
r118071 r118074 1 2012-05-22 Dan Bernstein <mitz@apple.com> 2 3 REGRESSION (r105513): CSS max-width is not applied to SVG element 4 https://bugs.webkit.org/show_bug.cgi?id=87050 5 6 Reviewed by Darin Adler. 7 8 Tests: svg/css/max-height.html 9 svg/css/max-width.html 10 11 * rendering/svg/RenderSVGRoot.cpp: 12 (WebCore::RenderSVGRoot::computeReplacedLogicalWidth): Changed to also call into the base 13 class implementation of this function if max-width was specified. 14 (WebCore::RenderSVGRoot::computeReplacedLogicalHeight): Changed to call into the bas class 15 implementation of this function if either height or max-height were specified. 16 1 17 2012-05-22 Kentaro Hara <haraken@chromium.org> 2 18 -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
r116185 r118074 168 168 return m_containerSize.width(); 169 169 170 if (style()->logicalWidth().isSpecified() )170 if (style()->logicalWidth().isSpecified() || style()->logicalMaxWidth().isSpecified()) 171 171 return RenderReplaced::computeReplacedLogicalWidth(includeMaxWidth); 172 172 … … 188 188 return m_containerSize.height(); 189 189 190 if ( hasReplacedLogicalHeight())190 if (style()->logicalHeight().isSpecified() || style()->logicalMaxHeight().isSpecified()) 191 191 return RenderReplaced::computeReplacedLogicalHeight(); 192 192
Note:
See TracChangeset
for help on using the changeset viewer.