OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * (C) 2000 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) | 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 return rect; | 1614 return rect; |
1615 | 1615 |
1616 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { | 1616 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { |
1617 rect.unite(box->localSelectionRect(startPos, endPos)); | 1617 rect.unite(box->localSelectionRect(startPos, endPos)); |
1618 rect.unite(LayoutRect(ellipsisRectForBox(box, startPos, endPos))); | 1618 rect.unite(LayoutRect(ellipsisRectForBox(box, startPos, endPos))); |
1619 } | 1619 } |
1620 | 1620 |
1621 mapToVisibleRectInAncestorSpace(paintInvalidationContainer, rect, 0); | 1621 mapToVisibleRectInAncestorSpace(paintInvalidationContainer, rect, 0); |
1622 // FIXME: groupedMapping() leaks the squashing abstraction. | 1622 // FIXME: groupedMapping() leaks the squashing abstraction. |
1623 if (paintInvalidationContainer->layer()->groupedMapping()) | 1623 if (paintInvalidationContainer->layer()->groupedMapping()) |
1624 PaintLayer::mapRectToPaintBackingCoordinates(paintInvalidationContainer,
rect); | 1624 PaintLayer::mapRectInPaintInvalidationContainerToBacking(paintInvalidati
onContainer, rect); |
1625 return rect; | 1625 return rect; |
1626 } | 1626 } |
1627 | 1627 |
1628 int LayoutText::caretMinOffset() const | 1628 int LayoutText::caretMinOffset() const |
1629 { | 1629 { |
1630 InlineTextBox* box = firstTextBox(); | 1630 InlineTextBox* box = firstTextBox(); |
1631 if (!box) | 1631 if (!box) |
1632 return 0; | 1632 return 0; |
1633 int minOffset = box->start(); | 1633 int minOffset = box->start(); |
1634 for (box = box->nextTextBox(); box; box = box->nextTextBox()) | 1634 for (box = box->nextTextBox(); box; box = box->nextTextBox()) |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1716 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { | 1716 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { |
1717 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box, in
validationReason); | 1717 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box, in
validationReason); |
1718 if (box->truncation() != cNoTruncation) { | 1718 if (box->truncation() != cNoTruncation) { |
1719 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) | 1719 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) |
1720 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(
*ellipsisBox, invalidationReason); | 1720 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(
*ellipsisBox, invalidationReason); |
1721 } | 1721 } |
1722 } | 1722 } |
1723 } | 1723 } |
1724 | 1724 |
1725 } // namespace blink | 1725 } // namespace blink |
OLD | NEW |