| 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 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 if (startPos == endPos) | 1613 if (startPos == endPos) |
| 1614 return IntRect(); | 1614 return IntRect(); |
| 1615 | 1615 |
| 1616 LayoutRect rect; | 1616 LayoutRect rect; |
| 1617 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { | 1617 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { |
| 1618 rect.unite(box->localSelectionRect(startPos, endPos)); | 1618 rect.unite(box->localSelectionRect(startPos, endPos)); |
| 1619 rect.unite(ellipsisRectForBox(box, startPos, endPos)); | 1619 rect.unite(ellipsisRectForBox(box, startPos, endPos)); |
| 1620 } | 1620 } |
| 1621 | 1621 |
| 1622 if (clipToVisibleContent) | 1622 if (clipToVisibleContent) |
| 1623 computeRectForRepaint(repaintContainer, rect); | 1623 adjustRectToRepaintBackingCoords(repaintContainer, rect); |
| 1624 else { | 1624 else { |
| 1625 if (cb->hasColumns()) | 1625 if (cb->hasColumns()) |
| 1626 cb->adjustRectForColumns(rect); | 1626 cb->adjustRectForColumns(rect); |
| 1627 | 1627 |
| 1628 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing
BoundingBox(); | 1628 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing
BoundingBox(); |
| 1629 } | 1629 } |
| 1630 | 1630 |
| 1631 return rect; | 1631 return rect; |
| 1632 } | 1632 } |
| 1633 | 1633 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1868 } | 1868 } |
| 1869 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); | 1869 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); |
| 1870 } | 1870 } |
| 1871 | 1871 |
| 1872 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox() | 1872 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox() |
| 1873 { | 1873 { |
| 1874 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox); | 1874 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox); |
| 1875 } | 1875 } |
| 1876 | 1876 |
| 1877 } // namespace WebCore | 1877 } // namespace WebCore |
| OLD | NEW |