Changeset 83095 in webkit


Ignore:
Timestamp:
Apr 6, 2011 1:47:51 PM (13 years ago)
Author:
hyatt@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=57975

Reviewed by Dan Bernstein.

The "More..." link for line clamping no longer shows up in Safari RSS. Fix the isLink() check
to just look at the style, so that it can find the InlineTextBox and not care that it's a child
of the link element and not the line box for the link element itself (since that line box got
culled).

  • rendering/RenderFlexibleBox.cpp:

(WebCore::RenderFlexibleBox::applyLineClamp):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83091 r83095  
     12011-04-06  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=57975
     6
     7        The "More..." link for line clamping no longer shows up in Safari RSS. Fix the isLink() check
     8        to just look at the style, so that it can find the InlineTextBox and not care that it's a child
     9        of the link element and not the line box for the link element itself (since that line box got
     10        culled).
     11
     12        * rendering/RenderFlexibleBox.cpp:
     13        (WebCore::RenderFlexibleBox::applyLineClamp):
     14
    1152011-04-06  Brady Eidson  <beidson@apple.com>
    216
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r81992 r83095  
    971971        int totalWidth;
    972972        InlineBox* anchorBox = lastLine->lastChild();
    973         if (anchorBox && anchorBox->renderer()->node() && anchorBox->renderer()->node()->isLink())
     973        if (anchorBox && anchorBox->renderer()->style()->isLink())
    974974            totalWidth = anchorBox->logicalWidth() + font.width(TextRun(ellipsisAndSpace, 2));
    975975        else {
Note: See TracChangeset for help on using the changeset viewer.