REGRESSION (r123171): <svg> element with intrinsic size and max-width gets sized...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2012 17:46:50 +0000 (17:46 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2012 17:46:50 +0000 (17:46 +0000)
commitd59ec71f45a751714d6f109fff241a1e093b6925
tree3dfc820be4cae31c5c748449437487ced9d6814e
parent0fcb49b214117ac8c4cf490a6a880c6a31414a6f
REGRESSION (r123171): <svg> element with intrinsic size and max-width gets sized incorrectly
https://bugs.webkit.org/show_bug.cgi?id=93388

Reviewed by Beth Dakin.

Source/WebCore:

Test: svg/css/max-width-3.html

* rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::computeAspectRatioInformationForRenderBox): Added code to set
m_intrinsicSize in the no-contentRenderer branch of this function so that the calls to
RenderBox::computeReplacedLogical{Height,Width} in the end use the right intrinsic size.
This is similar to what the contentRenderer branch of this function already does.

LayoutTests:

* svg/css/max-width-3-expected.html: Added.
* svg/css/max-width-3.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/css/max-width-3-expected.html [new file with mode: 0644]
LayoutTests/svg/css/max-width-3.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderReplaced.cpp