Changeset 79286 in webkit


Ignore:
Timestamp:
Feb 21, 2011 9:51:51 PM (13 years ago)
Author:
thakis@chromium.org
Message:

2011-02-21 Nico Weber <thakis@chromium.org>

Reviewed by Adam Barth.

canAccommodateEllipsis() confuses clang's -Woverloaded-virtual
https://bugs.webkit.org/show_bug.cgi?id=54909

Rename the overload in RootInlineBox to lineCanAccomodateEllipsis() to
unconfuse clang. No intended functionality change.

  • rendering/RenderBlockLineLayout.cpp: (WebCore::RenderBlock::checkLinesForTextOverflow):
  • rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::applyLineClamp):
  • rendering/RootInlineBox.cpp: (WebCore::RootInlineBox::lineCanAccommodateEllipsis):
  • rendering/RootInlineBox.h:
Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r79284 r79286  
     12011-02-21  Nico Weber  <thakis@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        canAccommodateEllipsis() confuses clang's -Woverloaded-virtual
     6        https://bugs.webkit.org/show_bug.cgi?id=54909
     7
     8        Rename the overload in RootInlineBox to lineCanAccomodateEllipsis() to
     9        unconfuse clang. No intended functionality change.
     10
     11        * rendering/RenderBlockLineLayout.cpp:
     12        (WebCore::RenderBlock::checkLinesForTextOverflow):
     13        * rendering/RenderFlexibleBox.cpp:
     14        (WebCore::RenderFlexibleBox::applyLineClamp):
     15        * rendering/RootInlineBox.cpp:
     16        (WebCore::RootInlineBox::lineCanAccommodateEllipsis):
     17        * rendering/RootInlineBox.h:
     18
    1192011-02-21  Adele Peterson  <adele@apple.com>
    220
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r78846 r79286  
    21312131            int width = curr == firstRootBox() ? firstLineEllipsisWidth : ellipsisWidth;
    21322132            int blockEdge = ltr ? blockRightEdge : blockLeftEdge;
    2133             if (curr->canAccommodateEllipsis(ltr, blockEdge, lineBoxEdge, width))
     2133            if (curr->lineCanAccommodateEllipsis(ltr, blockEdge, lineBoxEdge, width))
    21342134                curr->placeEllipsis(ellipsisStr, ltr, blockLeftEdge, blockRightEdge, width);
    21352135        }
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r77062 r79286  
    10051005
    10061006        int blockEdge = leftToRight ? blockRightEdge : blockLeftEdge;
    1007         if (!lastVisibleLine->canAccommodateEllipsis(leftToRight, blockEdge, lastVisibleLine->x() + lastVisibleLine->logicalWidth(), totalWidth))
     1007        if (!lastVisibleLine->lineCanAccommodateEllipsis(leftToRight, blockEdge, lastVisibleLine->x() + lastVisibleLine->logicalWidth(), totalWidth))
    10081008            continue;
    10091009
  • trunk/Source/WebCore/rendering/RootInlineBox.cpp

    r78846 r79286  
    8686}
    8787
    88 bool RootInlineBox::canAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, int ellipsisWidth)
     88bool RootInlineBox::lineCanAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, int ellipsisWidth)
    8989{
    9090    // First sanity-check the unoverflowed width of the whole line to see if there is sufficient room.
  • trunk/Source/WebCore/rendering/RootInlineBox.h

    r78846 r79286  
    7878    void childRemoved(InlineBox* box);
    7979
    80     bool canAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, int ellipsisWidth);
     80    bool lineCanAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, int ellipsisWidth);
    8181    void placeEllipsis(const AtomicString& ellipsisStr, bool ltr, float blockLeftEdge, float blockRightEdge, float ellipsisWidth, InlineBox* markupBox = 0);
    8282    virtual float placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRightEdge, float ellipsisWidth, bool& foundBox);
Note: See TracChangeset for help on using the changeset viewer.