Changeset 165346 in webkit


Ignore:
Timestamp:
Mar 8, 2014 6:38:58 PM (10 years ago)
Author:
Alan Bujtas
Message:

RenderElement::valueForLength() callers misuse bool parameter.
https://bugs.webkit.org/show_bug.cgi?id=129982

Reviewed by Andreas Kling.

Remove bogus RenderView* parameter.

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::computePercentageLogicalHeight):

  • rendering/RenderElement.cpp:

(WebCore::RenderElement::repaintAfterLayoutIfNeeded):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r165344 r165346  
     12014-03-08  Zalan Bujtas  <zalan@apple.com>
     2
     3        RenderElement::valueForLength() callers misuse bool parameter.
     4        https://bugs.webkit.org/show_bug.cgi?id=129982
     5
     6        Reviewed by Andreas Kling.
     7
     8        Remove bogus RenderView* parameter.
     9
     10        * rendering/RenderBox.cpp:
     11        (WebCore::RenderBox::computePercentageLogicalHeight):
     12        * rendering/RenderElement.cpp:
     13        (WebCore::RenderElement::repaintAfterLayoutIfNeeded):
     14
    1152014-03-08  Jeremy Jones  <jeremyj@apple.com>
    216
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r165113 r165346  
    27762776        }
    27772777    } else if (cbstyle.logicalHeight().isViewportPercentage()) {
    2778         LayoutUnit heightWithScrollbar = valueForLength(cbstyle.logicalHeight(), 0, &view());
     2778        LayoutUnit heightWithScrollbar = valueForLength(cbstyle.logicalHeight(), 0);
    27792779        if (heightWithScrollbar != -1) {
    27802780            LayoutUnit contentBoxHeightWithScrollbar = cb->adjustContentBoxLogicalHeightForBoxSizing(heightWithScrollbar);
  • trunk/Source/WebCore/rendering/RenderElement.cpp

    r165113 r165346  
    12781278        LayoutUnit boxHeight = isBox() ? toRenderBox(this)->height() : LayoutUnit();
    12791279        LayoutUnit minInsetBottomShadowExtent = std::min<LayoutUnit>(-insetShadowExtent.bottom(), std::min<LayoutUnit>(newBounds.height(), oldBounds.height()));
    1280         LayoutUnit borderHeight = std::max<LayoutUnit>(borderBottom, std::max<LayoutUnit>(valueForLength(style().borderBottomLeftRadius().height(), boxHeight), valueForLength(style().borderBottomRightRadius().height(), boxHeight, &view())));
     1280        LayoutUnit borderHeight = std::max<LayoutUnit>(borderBottom, std::max<LayoutUnit>(valueForLength(style().borderBottomLeftRadius().height(), boxHeight),
     1281            valueForLength(style().borderBottomRightRadius().height(), boxHeight)));
    12811282        LayoutUnit decorationsHeight = std::max<LayoutUnit>(-outlineStyle.outlineOffset(), borderHeight + minInsetBottomShadowExtent) + std::max<LayoutUnit>(outlineWidth, shadowBottom);
    12821283        LayoutRect bottomRect(newOutlineBox.x(),
Note: See TracChangeset for help on using the changeset viewer.