Changeset 118074 in webkit


Ignore:
Timestamp:
May 22, 2012 3:52:34 PM (12 years ago)
Author:
mitz@apple.com
Message:

REGRESSION (r105513): CSS max-width is not applied to SVG element
https://bugs.webkit.org/show_bug.cgi?id=87050

Reviewed by Darin Adler.

Source/WebCore:

Tests: svg/css/max-height.html

svg/css/max-width.html

  • rendering/svg/RenderSVGRoot.cpp:

(WebCore::RenderSVGRoot::computeReplacedLogicalWidth): Changed to also call into the base
class implementation of this function if max-width was specified.
(WebCore::RenderSVGRoot::computeReplacedLogicalHeight): Changed to call into the bas class
implementation of this function if either height or max-height were specified.

LayoutTests:

  • svg/css/max-height-expected.png: Added.
  • svg/css/max-height-expected.txt: Added.
  • svg/css/max-height.html: Added.
  • svg/css/max-width-expected.png: Added.
  • svg/css/max-width-expected.txt: Added.
  • svg/css/max-width.html: Added.
Location:
trunk
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r118070 r118074  
     12012-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
    1152012-05-22  Emil A Eklund  <eae@chromium.org>
    216
  • trunk/Source/WebCore/ChangeLog

    r118071 r118074  
     12012-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
    1172012-05-22  Kentaro Hara  <haraken@chromium.org>
    218
  • trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp

    r116185 r118074  
    168168        return m_containerSize.width();
    169169
    170     if (style()->logicalWidth().isSpecified())
     170    if (style()->logicalWidth().isSpecified() || style()->logicalMaxWidth().isSpecified())
    171171        return RenderReplaced::computeReplacedLogicalWidth(includeMaxWidth);
    172172
     
    188188        return m_containerSize.height();
    189189
    190     if (hasReplacedLogicalHeight())
     190    if (style()->logicalHeight().isSpecified() || style()->logicalMaxHeight().isSpecified())
    191191        return RenderReplaced::computeReplacedLogicalHeight();
    192192
Note: See TracChangeset for help on using the changeset viewer.