Changeset 172647 in webkit


Ignore:
Timestamp:
Aug 15, 2014 1:48:35 PM (10 years ago)
Author:
krit@webkit.org
Message:

Turn r/rx/ry to presentation attributes
https://bugs.webkit.org/show_bug.cgi?id=135978

Source/WebCore:

Unreviewed typo.

Patch by Dirk Schulze <krit@webkit.org> on 2014-08-15

  • rendering/svg/RenderSVGEllipse.cpp:

(WebCore::RenderSVGEllipse::calculateRadiiAndCenter):

LayoutTests:

Patch by Dirk Schulze <krit@webkit.org> on 2014-08-15
Reviewed by Dean Jackson.

Rebaseline test.

  • svg/css/parse-length-expected.txt:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r172642 r172647  
     12014-08-15  Dirk Schulze  <krit@webkit.org>
     2
     3        Turn r/rx/ry to presentation attributes
     4        https://bugs.webkit.org/show_bug.cgi?id=135978
     5
     6        Reviewed by Dean Jackson.
     7
     8        Rebaseline test.
     9
     10        * svg/css/parse-length-expected.txt:
     11
    1122014-08-15  Dirk Schulze  <krit@webkit.org>
    213
  • trunk/LayoutTests/svg/css/parse-length-expected.txt

    r172641 r172647  
     1CONSOLE MESSAGE: Error: Invalid value for <rect> attribute rx="  100"
     2CONSOLE MESSAGE: Error: Invalid value for <rect> attribute rx="100   "
     3CONSOLE MESSAGE: Error: Invalid negative value for <rect> attribute rx="-200px"
     4CONSOLE MESSAGE: Error: Invalid value for <rect> attribute ry="  100"
     5CONSOLE MESSAGE: Error: Invalid value for <rect> attribute ry="100   "
     6CONSOLE MESSAGE: Error: Invalid negative value for <rect> attribute ry="-200px"
    17CONSOLE MESSAGE: Error: Invalid value for <rect> attribute width="auto"
    28CONSOLE MESSAGE: Error: Invalid value for <rect> attribute width="  100"
     
    612CONSOLE MESSAGE: Error: Invalid value for <rect> attribute y="  100"
    713CONSOLE MESSAGE: Error: Invalid value for <rect> attribute y="100   "
     14CONSOLE MESSAGE: Error: Invalid value for <rect> attribute rx="auto"
     15CONSOLE MESSAGE: Error: Invalid value for <rect> attribute rx="100   px"
     16CONSOLE MESSAGE: Error: Invalid value for <rect> attribute rx="100px;"
     17CONSOLE MESSAGE: Error: Invalid value for <rect> attribute rx="100px !important"
     18CONSOLE MESSAGE: Error: Invalid value for <rect> attribute rx="{ 100px }"
     19CONSOLE MESSAGE: Error: Invalid value for <rect> attribute ry="auto"
     20CONSOLE MESSAGE: Error: Invalid value for <rect> attribute ry="100   px"
     21CONSOLE MESSAGE: Error: Invalid value for <rect> attribute ry="100px;"
     22CONSOLE MESSAGE: Error: Invalid value for <rect> attribute ry="100px !important"
     23CONSOLE MESSAGE: Error: Invalid value for <rect> attribute ry="{ 100px }"
    824CONSOLE MESSAGE: Error: Invalid value for <rect> attribute width="100   px"
    925CONSOLE MESSAGE: Error: Invalid value for <rect> attribute width="100px;"
     
    4056PASS computedStyle("cy", "20%") is "20%"
    4157PASS computedStyle("cy", "-200px") is "-200px"
     58PASS computedStyle("r", "  100") is "100px"
     59PASS computedStyle("r", "100   ") is "100px"
     60PASS computedStyle("r", "100px") is "100px"
     61PASS computedStyle("r", "1em") is "16px"
     62PASS computedStyle("r", "1ex") is "12.800000190734863px"
     63PASS computedStyle("r", "20%") is "20%"
     64PASS computedStyle("r", "-200px") is "-200px"
     65PASS computedStyle("rx", "  100") is "100px"
     66PASS computedStyle("rx", "100   ") is "100px"
     67PASS computedStyle("rx", "100px") is "100px"
     68PASS computedStyle("rx", "1em") is "16px"
     69PASS computedStyle("rx", "1ex") is "12.800000190734863px"
     70PASS computedStyle("rx", "20%") is "20%"
     71PASS computedStyle("rx", "-200px") is "-200px"
     72PASS computedStyle("ry", "  100") is "100px"
     73PASS computedStyle("ry", "100   ") is "100px"
     74PASS computedStyle("ry", "100px") is "100px"
     75PASS computedStyle("ry", "1em") is "16px"
     76PASS computedStyle("ry", "1ex") is "12.800000190734863px"
     77PASS computedStyle("ry", "20%") is "20%"
     78PASS computedStyle("ry", "-200px") is "-200px"
    4279PASS computedStyle("width", "auto") is "auto"
    4380PASS computedStyle("width", "  100") is "100px"
     
    71108PASS computedStyle("cy", "100px !important") is "0px"
    72109PASS computedStyle("cy", "{ 100px }") is "0px"
     110PASS computedStyle("r", "auto") is "0px"
     111PASS computedStyle("r", "100   px") is "0px"
     112PASS computedStyle("r", "100px;") is "0px"
     113PASS computedStyle("r", "100px !important") is "0px"
     114PASS computedStyle("r", "{ 100px }") is "0px"
     115PASS computedStyle("rx", "auto") is "0px"
     116PASS computedStyle("rx", "100   px") is "0px"
     117PASS computedStyle("rx", "100px;") is "0px"
     118PASS computedStyle("rx", "100px !important") is "0px"
     119PASS computedStyle("rx", "{ 100px }") is "0px"
     120PASS computedStyle("ry", "auto") is "0px"
     121PASS computedStyle("ry", "100   px") is "0px"
     122PASS computedStyle("ry", "100px;") is "0px"
     123PASS computedStyle("ry", "100px !important") is "0px"
     124PASS computedStyle("ry", "{ 100px }") is "0px"
    73125PASS computedStyle("width", "100   px") is "auto"
    74126PASS computedStyle("width", "100px;") is "auto"
  • trunk/Source/WebCore/ChangeLog

    r172642 r172647  
     12014-08-15  Dirk Schulze  <krit@webkit.org>
     2
     3        Turn r/rx/ry to presentation attributes
     4        https://bugs.webkit.org/show_bug.cgi?id=135978
     5
     6        Unreviewed typo.
     7
     8        * rendering/svg/RenderSVGEllipse.cpp:
     9        (WebCore::RenderSVGEllipse::calculateRadiiAndCenter):
     10
    1112014-08-15  Dirk Schulze  <krit@webkit.org>
    212
  • trunk/Source/WebCore/rendering/svg/RenderSVGEllipse.cpp

    r172642 r172647  
    8989
    9090    ASSERT(isSVGEllipseElement(graphicsElement()));
    91     m_radii = FloatSize(lengthContext.valueForLength(style().svgStyle().rx()), lengthContext.valueForLength(style().svgStyle().ry()));
     91    m_radii = FloatSize(
     92        lengthContext.valueForLength(style().svgStyle().rx(), LengthModeWidth),
     93        lengthContext.valueForLength(style().svgStyle().ry(), LengthModeHeight));
    9294}
    9395
Note: See TracChangeset for help on using the changeset viewer.