Changeset 110260 in webkit


Ignore:
Timestamp:
Mar 8, 2012 9:00:41 PM (12 years ago)
Author:
eae@chromium.org
Message:

Change calcRadiiFor to IntSize
https://bugs.webkit.org/show_bug.cgi?id=80655

Reviewed by Simon Fraser.

Borders and RoundedRect are both represented with pixel precision. As
such it doesn't make sense for calcRadiiFor to use subpixel units, it
just adds unnecessary type conversions.

No new tests, no new functionality.

  • rendering/style/RenderStyle.cpp:

(WebCore::calcRadiiFor):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r110259 r110260  
     12012-03-08  Emil A Eklund  <eae@chromium.org>
     2
     3        Change calcRadiiFor to IntSize
     4        https://bugs.webkit.org/show_bug.cgi?id=80655
     5
     6        Reviewed by Simon Fraser.
     7
     8        Borders and RoundedRect are both represented with pixel precision. As
     9        such it doesn't make sense for calcRadiiFor to use subpixel units, it
     10        just adds unnecessary type conversions.
     11
     12        No new tests, no new functionality.
     13
     14        * rendering/style/RenderStyle.cpp:
     15        (WebCore::calcRadiiFor):
     16
    1172012-03-08  Adrienne Walker  <enne@google.com>
    218
  • trunk/Source/WebCore/rendering/style/RenderStyle.cpp

    r109785 r110260  
    846846{
    847847    return RoundedRect::Radii(
    848         LayoutSize(border.topLeft().width().calcValue(size.width()),
    849                    border.topLeft().height().calcValue(size.height())),
    850         LayoutSize(border.topRight().width().calcValue(size.width()),
    851                    border.topRight().height().calcValue(size.height())),
    852         LayoutSize(border.bottomLeft().width().calcValue(size.width()),
    853                    border.bottomLeft().height().calcValue(size.height())),
    854         LayoutSize(border.bottomRight().width().calcValue(size.width()),
    855                    border.bottomRight().height().calcValue(size.height())));
     848        IntSize(border.topLeft().width().calcValue(size.width()),
     849                border.topLeft().height().calcValue(size.height())),
     850        IntSize(border.topRight().width().calcValue(size.width()),
     851                border.topRight().height().calcValue(size.height())),
     852        IntSize(border.bottomLeft().width().calcValue(size.width()),
     853                border.bottomLeft().height().calcValue(size.height())),
     854        IntSize(border.bottomRight().width().calcValue(size.width()),
     855                border.bottomRight().height().calcValue(size.height())));
    856856}
    857857
Note: See TracChangeset for help on using the changeset viewer.