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 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1756 | 1757 |
1757 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { | 1758 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { |
1758 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); | 1759 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); |
1759 if (box->truncation() != cNoTruncation) { | 1760 if (box->truncation() != cNoTruncation) { |
1760 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) | 1761 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) |
1761 paintInvalidator.invalidateDisplayItemClient(*ellipsisBox, inval idationReason); | 1762 paintInvalidator.invalidateDisplayItemClient(*ellipsisBox, inval idationReason); |
1762 } | 1763 } |
1763 } | 1764 } |
1764 } | 1765 } |
1765 | 1766 |
1767 // FIXME: Would be better to dump the bounding box x and y rather than the | |
1768 // first run's x and y, but that would involve updating many test results. | |
1769 LayoutRect LayoutText::debugRect() const | |
1770 { | |
1771 IntRect linesBox = enclosingIntRect(linesBoundingBox()); | |
skobes
2016/09/09 20:27:41
Same question re. rounding to ints.
lunalu1
2016/09/12 14:45:14
Done.
| |
1772 LayoutRect r = LayoutRect(IntRect(firstRunX(), firstRunY(), linesBox.width() , linesBox.height())); | |
1773 LayoutBlock* cb = containingBlock(); | |
1774 if (cb && hasTextBoxes()) | |
1775 cb->adjustChildDebugRect(r); | |
1776 | |
1777 return r; | |
1778 } | |
1779 | |
1766 } // namespace blink | 1780 } // namespace blink |
OLD | NEW |