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

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

Issue 1473773002: Clarify naming for fast-path in setLogicalWidthForTextRun (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 int nextOffset(int current) const final; 166 int nextOffset(int current) const final;
167 167
168 bool containsReversedText() const { return m_containsReversedText; } 168 bool containsReversedText() const { return m_containsReversedText; }
169 169
170 bool isSecure() const { return style()->textSecurity() != TSNONE; } 170 bool isSecure() const { return style()->textSecurity() != TSNONE; }
171 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset); 171 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset);
172 172
173 bool isAllCollapsibleWhitespace() const; 173 bool isAllCollapsibleWhitespace() const;
174 bool isRenderedCharacter(int offsetInNode) const; 174 bool isRenderedCharacter(int offsetInNode) const;
175 175
176 // TODO(eae): Rename and change to only handle the word measurements use
177 // case once the simple code path has been removed. crbug.com/404597
176 bool canUseSimpleFontCodePath() const { return m_canUseSimpleFontCodePath; } 178 bool canUseSimpleFontCodePath() const { return m_canUseSimpleFontCodePath; }
177 179
178 void removeAndDestroyTextBoxes(); 180 void removeAndDestroyTextBoxes();
179 181
180 PassRefPtr<AbstractInlineTextBox> firstAbstractInlineTextBox(); 182 PassRefPtr<AbstractInlineTextBox> firstAbstractInlineTextBox();
181 183
182 float hyphenWidth(const Font&, TextDirection); 184 float hyphenWidth(const Font&, TextDirection);
183 185
184 protected: 186 protected:
185 void willBeDestroyed() override; 187 void willBeDestroyed() override;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 inline LayoutText* Text::layoutObject() const 295 inline LayoutText* Text::layoutObject() const
294 { 296 {
295 return toLayoutText(CharacterData::layoutObject()); 297 return toLayoutText(CharacterData::layoutObject());
296 } 298 }
297 299
298 void applyTextTransform(const ComputedStyle*, String&, UChar); 300 void applyTextTransform(const ComputedStyle*, String&, UChar);
299 301
300 } // namespace blink 302 } // namespace blink
301 303
302 #endif // LayoutText_h 304 #endif // LayoutText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698