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

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

Issue 1839613002: Move LayoutObject::previousOffsetForBackwardDeletion() to editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: replace CHECK with DCHECK Created 4 years, 8 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 previousOffsetForBackwardDeletion(int current) const final;
165
166 bool containsReversedText() const { return m_containsReversedText; } 164 bool containsReversedText() const { return m_containsReversedText; }
167 165
168 bool isSecure() const { return style()->textSecurity() != TSNONE; } 166 bool isSecure() const { return style()->textSecurity() != TSNONE; }
169 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset); 167 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset);
170 168
171 bool isAllCollapsibleWhitespace() const; 169 bool isAllCollapsibleWhitespace() const;
172 bool isRenderedCharacter(int offsetInNode) const; 170 bool isRenderedCharacter(int offsetInNode) const;
173 171
174 // TODO(eae): Rename and change to only handle the word measurements use 172 // TODO(eae): Rename and change to only handle the word measurements use
175 // case once the simple code path has been removed. crbug.com/404597 173 // case once the simple code path has been removed. crbug.com/404597
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 inline LayoutText* Text::layoutObject() const 291 inline LayoutText* Text::layoutObject() const
294 { 292 {
295 return toLayoutText(CharacterData::layoutObject()); 293 return toLayoutText(CharacterData::layoutObject());
296 } 294 }
297 295
298 void applyTextTransform(const ComputedStyle*, String&, UChar); 296 void applyTextTransform(const ComputedStyle*, String&, UChar);
299 297
300 } // namespace blink 298 } // namespace blink
301 299
302 #endif // LayoutText_h 300 #endif // LayoutText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698