Changeset 21940 in webkit


Ignore:
Timestamp:
Jun 1, 2007 2:04:49 PM (17 years ago)
Author:
bdash
Message:

Merge r21897.

Reviewed by Darin.

<rdar://problem/5200795> REGRESSION (r21057): lineBoxRects doesn't match actual text when wrapping occurs

Use box->end() instead of box->len().

  • rendering/RenderText.cpp: (WebCore::RenderText::addLineBoxRects):
Location:
branches/Safari-5522/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Safari-5522/WebCore/ChangeLog

    r21876 r21940  
     12007-05-30  Timothy Hatcher  <timothy@apple.com>
     2
     3        Reviewed by Darin.
     4
     5        <rdar://problem/5200795> REGRESSION (r21057): lineBoxRects doesn't match actual text when wrapping occurs
     6
     7        Use box->end() instead of box->len().
     8
     9        * rendering/RenderText.cpp:
     10        (WebCore::RenderText::addLineBoxRects):
     11
    1122007-05-25  Geoffrey Garen  <ggaren@apple.com>
    213
  • branches/Safari-5522/WebCore/rendering/RenderText.cpp

    r21435 r21940  
    185185            rects.append(IntRect(x + box->xPos(), y + box->yPos(), box->width(), box->height()));
    186186        else {
    187             unsigned realEnd = min(box->len(), end);
     187            unsigned realEnd = min(box->end(), end);
    188188            IntRect r = box->selectionRect(x, y, start, realEnd);
    189189            if (!r.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.