| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 : InlineBox(obj) | 44 : InlineBox(obj) |
| 45 , m_prevTextBox(nullptr) | 45 , m_prevTextBox(nullptr) |
| 46 , m_nextTextBox(nullptr) | 46 , m_nextTextBox(nullptr) |
| 47 , m_start(start) | 47 , m_start(start) |
| 48 , m_len(length) | 48 , m_len(length) |
| 49 , m_truncation(cNoTruncation) | 49 , m_truncation(cNoTruncation) |
| 50 { | 50 { |
| 51 setIsText(true); | 51 setIsText(true); |
| 52 } | 52 } |
| 53 | 53 |
| 54 LayoutText& layoutObject() const { return toLayoutText(InlineBox::layoutObje
ct()); } | |
| 55 LineLayoutText lineLayoutItem() const { return LineLayoutText(InlineBox::lin
eLayoutItem()); } | 54 LineLayoutText lineLayoutItem() const { return LineLayoutText(InlineBox::lin
eLayoutItem()); } |
| 56 | 55 |
| 57 void destroy() final; | 56 void destroy() final; |
| 58 | 57 |
| 59 InlineTextBox* prevTextBox() const { return m_prevTextBox; } | 58 InlineTextBox* prevTextBox() const { return m_prevTextBox; } |
| 60 InlineTextBox* nextTextBox() const { return m_nextTextBox; } | 59 InlineTextBox* nextTextBox() const { return m_nextTextBox; } |
| 61 void setNextTextBox(InlineTextBox* n) { m_nextTextBox = n; } | 60 void setNextTextBox(InlineTextBox* n) { m_nextTextBox = n; } |
| 62 void setPreviousTextBox(InlineTextBox* p) { m_prevTextBox = p; } | 61 void setPreviousTextBox(InlineTextBox* p) { m_prevTextBox = p; } |
| 63 | 62 |
| 64 // FIXME: These accessors should ASSERT(!isDirty()). See https://bugs.webkit
.org/show_bug.cgi?id=97264 | 63 // FIXME: These accessors should ASSERT(!isDirty()). See https://bugs.webkit
.org/show_bug.cgi?id=97264 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 } | 181 } |
| 183 }; | 182 }; |
| 184 | 183 |
| 185 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); | 184 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); |
| 186 | 185 |
| 187 void alignSelectionRectToDevicePixels(LayoutRect&); | 186 void alignSelectionRectToDevicePixels(LayoutRect&); |
| 188 | 187 |
| 189 } // namespace blink | 188 } // namespace blink |
| 190 | 189 |
| 191 #endif // InlineTextBox_h | 190 #endif // InlineTextBox_h |
| OLD | NEW |