| 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 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1837 LayoutUnit logicalWidth = logicalRightSide - logicalLeftSide; | 1837 LayoutUnit logicalWidth = logicalRightSide - logicalLeftSide; |
| 1838 LayoutUnit logicalHeight = | 1838 LayoutUnit logicalHeight = |
| 1839 lastTextBox()->logicalBottomVisualOverflow() - logicalTop; | 1839 lastTextBox()->logicalBottomVisualOverflow() - logicalTop; |
| 1840 | 1840 |
| 1841 LayoutRect rect(logicalLeftSide, logicalTop, logicalWidth, logicalHeight); | 1841 LayoutRect rect(logicalLeftSide, logicalTop, logicalWidth, logicalHeight); |
| 1842 if (!style()->isHorizontalWritingMode()) | 1842 if (!style()->isHorizontalWritingMode()) |
| 1843 rect = rect.transposedRect(); | 1843 rect = rect.transposedRect(); |
| 1844 return rect; | 1844 return rect; |
| 1845 } | 1845 } |
| 1846 | 1846 |
| 1847 LayoutRect LayoutText::localOverflowRectForPaintInvalidation() const { | 1847 LayoutRect LayoutText::localVisualRect() const { |
| 1848 if (style()->visibility() != EVisibility::Visible) | 1848 if (style()->visibility() != EVisibility::Visible) |
| 1849 return LayoutRect(); | 1849 return LayoutRect(); |
| 1850 | 1850 |
| 1851 return unionRect(visualOverflowRect(), localSelectionRect()); | 1851 return unionRect(visualOverflowRect(), localSelectionRect()); |
| 1852 } | 1852 } |
| 1853 | 1853 |
| 1854 LayoutRect LayoutText::localSelectionRect() const { | 1854 LayoutRect LayoutText::localSelectionRect() const { |
| 1855 ASSERT(!needsLayout()); | 1855 ASSERT(!needsLayout()); |
| 1856 | 1856 |
| 1857 if (getSelectionState() == SelectionNone) | 1857 if (getSelectionState() == SelectionNone) |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1973 LayoutRect rect = LayoutRect( | 1973 LayoutRect rect = LayoutRect( |
| 1974 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height())); | 1974 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height())); |
| 1975 LayoutBlock* block = containingBlock(); | 1975 LayoutBlock* block = containingBlock(); |
| 1976 if (block && hasTextBoxes()) | 1976 if (block && hasTextBoxes()) |
| 1977 block->adjustChildDebugRect(rect); | 1977 block->adjustChildDebugRect(rect); |
| 1978 | 1978 |
| 1979 return rect; | 1979 return rect; |
| 1980 } | 1980 } |
| 1981 | 1981 |
| 1982 } // namespace blink | 1982 } // namespace blink |
| OLD | NEW |