| 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-2009, 2013 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved. |
| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 InlineTextBox* firstTextBox() const { return m_firstTextBox; } | 154 InlineTextBox* firstTextBox() const { return m_firstTextBox; } |
| 155 InlineTextBox* lastTextBox() const { return m_lastTextBox; } | 155 InlineTextBox* lastTextBox() const { return m_lastTextBox; } |
| 156 | 156 |
| 157 // True if we have inline text box children which implies rendered text (or
whitespace) output. | 157 // True if we have inline text box children which implies rendered text (or
whitespace) output. |
| 158 bool hasTextBoxes() const { return firstTextBox(); } | 158 bool hasTextBoxes() const { return firstTextBox(); } |
| 159 | 159 |
| 160 int caretMinOffset() const override; | 160 int caretMinOffset() const override; |
| 161 int caretMaxOffset() const override; | 161 int caretMaxOffset() const override; |
| 162 unsigned resolvedTextLength() const; | 162 unsigned resolvedTextLength() const; |
| 163 | 163 |
| 164 int previousOffset(int current) const final; | |
| 165 int previousOffsetForBackwardDeletion(int current) const final; | 164 int previousOffsetForBackwardDeletion(int current) const final; |
| 166 int nextOffset(int current) const final; | |
| 167 | 165 |
| 168 bool containsReversedText() const { return m_containsReversedText; } | 166 bool containsReversedText() const { return m_containsReversedText; } |
| 169 | 167 |
| 170 bool isSecure() const { return style()->textSecurity() != TSNONE; } | 168 bool isSecure() const { return style()->textSecurity() != TSNONE; } |
| 171 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset); | 169 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset); |
| 172 | 170 |
| 173 bool isAllCollapsibleWhitespace() const; | 171 bool isAllCollapsibleWhitespace() const; |
| 174 bool isRenderedCharacter(int offsetInNode) const; | 172 bool isRenderedCharacter(int offsetInNode) const; |
| 175 | 173 |
| 176 // TODO(eae): Rename and change to only handle the word measurements use | 174 // TODO(eae): Rename and change to only handle the word measurements use |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 inline LayoutText* Text::layoutObject() const | 293 inline LayoutText* Text::layoutObject() const |
| 296 { | 294 { |
| 297 return toLayoutText(CharacterData::layoutObject()); | 295 return toLayoutText(CharacterData::layoutObject()); |
| 298 } | 296 } |
| 299 | 297 |
| 300 void applyTextTransform(const ComputedStyle*, String&, UChar); | 298 void applyTextTransform(const ComputedStyle*, String&, UChar); |
| 301 | 299 |
| 302 } // namespace blink | 300 } // namespace blink |
| 303 | 301 |
| 304 #endif // LayoutText_h | 302 #endif // LayoutText_h |
| OLD | NEW |