Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(671)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutText.h

Issue 1824143003: [All-In-One] Introduce BackspaceStateMachine (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 164 int previousOffset(int current) const final;
165 int previousOffsetForBackwardDeletion(int current) const final;
166 int nextOffset(int current) const final; 165 int nextOffset(int current) const final;
167 166
168 bool containsReversedText() const { return m_containsReversedText; } 167 bool containsReversedText() const { return m_containsReversedText; }
169 168
170 bool isSecure() const { return style()->textSecurity() != TSNONE; } 169 bool isSecure() const { return style()->textSecurity() != TSNONE; }
171 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset); 170 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset);
172 171
173 bool isAllCollapsibleWhitespace() const; 172 bool isAllCollapsibleWhitespace() const;
174 bool isRenderedCharacter(int offsetInNode) const; 173 bool isRenderedCharacter(int offsetInNode) const;
175 174
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 inline LayoutText* Text::layoutObject() const 294 inline LayoutText* Text::layoutObject() const
296 { 295 {
297 return toLayoutText(CharacterData::layoutObject()); 296 return toLayoutText(CharacterData::layoutObject());
298 } 297 }
299 298
300 void applyTextTransform(const ComputedStyle*, String&, UChar); 299 void applyTextTransform(const ComputedStyle*, String&, UChar);
301 300
302 } // namespace blink 301 } // namespace blink
303 302
304 #endif // LayoutText_h 303 #endif // LayoutText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698