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, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 { | 57 { |
58 } | 58 } |
59 | 59 |
60 virtual void destroy(RenderArena*); | 60 virtual void destroy(RenderArena*); |
61 | 61 |
62 InlineTextBox* prevTextBox() const { return m_prevTextBox; } | 62 InlineTextBox* prevTextBox() const { return m_prevTextBox; } |
63 InlineTextBox* nextTextBox() const { return m_nextTextBox; } | 63 InlineTextBox* nextTextBox() const { return m_nextTextBox; } |
64 void setNextTextBox(InlineTextBox* n) { m_nextTextBox = n; } | 64 void setNextTextBox(InlineTextBox* n) { m_nextTextBox = n; } |
65 void setPreviousTextBox(InlineTextBox* p) { m_prevTextBox = p; } | 65 void setPreviousTextBox(InlineTextBox* p) { m_prevTextBox = p; } |
66 | 66 |
67 unsigned start() const { return m_start; } | 67 unsigned start() const { ASSERT(!isDirty()); return m_start; } |
68 unsigned end() const { return m_len ? m_start + m_len - 1 : m_start; } | 68 unsigned end() const { ASSERT(!isDirty()); return m_len ? m_start + m_len -
1 : m_start; } |
69 unsigned len() const { return m_len; } | 69 unsigned len() const { ASSERT(!isDirty()); return m_len; } |
70 | 70 |
71 void setStart(unsigned start) { m_start = start; } | 71 void setStart(unsigned start) { m_start = start; } |
72 void setLen(unsigned len) { m_len = len; } | 72 void setLen(unsigned len) { m_len = len; } |
73 | 73 |
74 void offsetRun(int d) { m_start += d; } | 74 void offsetRun(int d) { ASSERT(!isDirty()); m_start += d; } |
75 | 75 |
76 unsigned short truncation() { return m_truncation; } | 76 unsigned short truncation() { return m_truncation; } |
77 | 77 |
| 78 virtual void markDirty(bool dirty = true) OVERRIDE; |
| 79 |
78 using InlineBox::hasHyphen; | 80 using InlineBox::hasHyphen; |
79 using InlineBox::setHasHyphen; | 81 using InlineBox::setHasHyphen; |
80 using InlineBox::canHaveLeadingExpansion; | 82 using InlineBox::canHaveLeadingExpansion; |
81 using InlineBox::setCanHaveLeadingExpansion; | 83 using InlineBox::setCanHaveLeadingExpansion; |
82 | 84 |
83 static inline bool compareByStart(const InlineTextBox* first, const InlineTe
xtBox* second) { return first->start() < second->start(); } | 85 static inline bool compareByStart(const InlineTextBox* first, const InlineTe
xtBox* second) { return first->start() < second->start(); } |
84 | 86 |
85 virtual LayoutUnit baselinePosition(FontBaseline) const; | 87 virtual LayoutUnit baselinePosition(FontBaseline) const; |
86 virtual LayoutUnit lineHeight() const; | 88 virtual LayoutUnit lineHeight() const; |
87 | 89 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 inline RenderText* InlineTextBox::textRenderer() const | 213 inline RenderText* InlineTextBox::textRenderer() const |
212 { | 214 { |
213 return toRenderText(renderer()); | 215 return toRenderText(renderer()); |
214 } | 216 } |
215 | 217 |
216 void alignSelectionRectToDevicePixels(FloatRect&); | 218 void alignSelectionRectToDevicePixels(FloatRect&); |
217 | 219 |
218 } // namespace WebCore | 220 } // namespace WebCore |
219 | 221 |
220 #endif // InlineTextBox_h | 222 #endif // InlineTextBox_h |
OLD | NEW |