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

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

Issue 1285123002: Move Position::isRenderedCharacter() for Text node to LayoutText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-12T16:31:05 Created 5 years, 4 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
« no previous file with comments | « Source/core/dom/Position.cpp ('k') | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 int previousOffset(int current) const final; 128 int previousOffset(int current) const final;
129 int previousOffsetForBackwardDeletion(int current) const final; 129 int previousOffsetForBackwardDeletion(int current) const final;
130 int nextOffset(int current) const final; 130 int nextOffset(int current) const final;
131 131
132 bool containsReversedText() const { return m_containsReversedText; } 132 bool containsReversedText() const { return m_containsReversedText; }
133 133
134 bool isSecure() const { return style()->textSecurity() != TSNONE; } 134 bool isSecure() const { return style()->textSecurity() != TSNONE; }
135 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset); 135 void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset);
136 136
137 bool isAllCollapsibleWhitespace() const; 137 bool isAllCollapsibleWhitespace() const;
138 bool isRenderedCharacter(int offsetInNode) const;
138 139
139 bool canUseSimpleFontCodePath() const { return m_canUseSimpleFontCodePath; } 140 bool canUseSimpleFontCodePath() const { return m_canUseSimpleFontCodePath; }
140 141
141 void removeAndDestroyTextBoxes(); 142 void removeAndDestroyTextBoxes();
142 143
143 PassRefPtr<AbstractInlineTextBox> firstAbstractInlineTextBox(); 144 PassRefPtr<AbstractInlineTextBox> firstAbstractInlineTextBox();
144 145
145 float hyphenWidth(const Font&, TextDirection); 146 float hyphenWidth(const Font&, TextDirection);
146 147
147 protected: 148 protected:
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 inline LayoutText* Text::layoutObject() const 245 inline LayoutText* Text::layoutObject() const
245 { 246 {
246 return toLayoutText(CharacterData::layoutObject()); 247 return toLayoutText(CharacterData::layoutObject());
247 } 248 }
248 249
249 void applyTextTransform(const ComputedStyle*, String&, UChar); 250 void applyTextTransform(const ComputedStyle*, String&, UChar);
250 251
251 } // namespace blink 252 } // namespace blink
252 253
253 #endif // LayoutText_h 254 #endif // LayoutText_h
OLDNEW
« no previous file with comments | « Source/core/dom/Position.cpp ('k') | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698