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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #include "core/layout/LayoutText.h" | 25 #include "core/layout/LayoutText.h" |
26 | 26 |
27 #include "core/dom/AXObjectCache.h" | 27 #include "core/dom/AXObjectCache.h" |
28 #include "core/dom/Text.h" | 28 #include "core/dom/Text.h" |
29 #include "core/editing/VisiblePosition.h" | 29 #include "core/editing/VisiblePosition.h" |
30 #include "core/editing/iterators/TextIterator.h" | 30 #include "core/editing/iterators/TextIterator.h" |
31 #include "core/frame/FrameView.h" | 31 #include "core/frame/FrameView.h" |
32 #include "core/frame/Settings.h" | 32 #include "core/frame/Settings.h" |
33 #include "core/layout/LayoutBlock.h" | 33 #include "core/layout/LayoutBlock.h" |
| 34 #include "core/layout/LayoutTableCell.h" |
34 #include "core/layout/LayoutTextCombine.h" | 35 #include "core/layout/LayoutTextCombine.h" |
35 #include "core/layout/LayoutView.h" | 36 #include "core/layout/LayoutView.h" |
36 #include "core/layout/api/LineLayoutBox.h" | 37 #include "core/layout/api/LineLayoutBox.h" |
37 #include "core/layout/line/AbstractInlineTextBox.h" | 38 #include "core/layout/line/AbstractInlineTextBox.h" |
38 #include "core/layout/line/EllipsisBox.h" | 39 #include "core/layout/line/EllipsisBox.h" |
39 #include "core/layout/line/GlyphOverflow.h" | 40 #include "core/layout/line/GlyphOverflow.h" |
40 #include "core/layout/line/InlineTextBox.h" | 41 #include "core/layout/line/InlineTextBox.h" |
41 #include "platform/fonts/CharacterRange.h" | 42 #include "platform/fonts/CharacterRange.h" |
42 #include "platform/geometry/FloatQuad.h" | 43 #include "platform/geometry/FloatQuad.h" |
43 #include "platform/text/BidiResolver.h" | 44 #include "platform/text/BidiResolver.h" |
(...skipping 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1779 | 1780 |
1780 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { | 1781 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { |
1781 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); | 1782 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); |
1782 if (box->truncation() != cNoTruncation) { | 1783 if (box->truncation() != cNoTruncation) { |
1783 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) | 1784 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) |
1784 paintInvalidator.invalidateDisplayItemClient(*ellipsisBox, inval
idationReason); | 1785 paintInvalidator.invalidateDisplayItemClient(*ellipsisBox, inval
idationReason); |
1785 } | 1786 } |
1786 } | 1787 } |
1787 } | 1788 } |
1788 | 1789 |
| 1790 // FIXME: Would be better to dump the bounding box x and y rather than the |
| 1791 // first run's x and y, but that would involve updating many test results. |
| 1792 LayoutRect LayoutText::debugRect() const |
| 1793 { |
| 1794 IntRect linesBox = enclosingIntRect(linesBoundingBox()); |
| 1795 LayoutRect r = LayoutRect(IntRect(firstRunX(), firstRunY(), linesBox.width()
, linesBox.height())); |
| 1796 LayoutBlock* cb = containingBlock(); |
| 1797 if (cb && hasTextBoxes()) |
| 1798 cb->adjustForTableCells(r); |
| 1799 |
| 1800 return r; |
| 1801 } |
| 1802 |
1789 } // namespace blink | 1803 } // namespace blink |
OLD | NEW |