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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 virtual void layout() OVERRIDE FINAL { ASSERT_NOT_REACHED(); } | 175 virtual void layout() OVERRIDE FINAL { ASSERT_NOT_REACHED(); } |
176 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation&, const LayoutPoint&, HitTestAction) OVERRIDE FINAL { ASSERT_NOT_REACH
ED(); return false; } | 176 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation&, const LayoutPoint&, HitTestAction) OVERRIDE FINAL { ASSERT_NOT_REACH
ED(); return false; } |
177 | 177 |
178 void deleteTextBoxes(); | 178 void deleteTextBoxes(); |
179 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | 179 bool containsOnlyWhitespace(unsigned from, unsigned len) const; |
180 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect
ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; | 180 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect
ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; |
181 bool isAllASCII() const { return m_isAllASCII; } | 181 bool isAllASCII() const { return m_isAllASCII; } |
182 | 182 |
183 void secureText(UChar mask); | 183 void secureText(UChar mask); |
184 | 184 |
| 185 bool isText() const WTF_DELETED_FUNCTION; // This will catch anyone doing an
unnecessary check. |
| 186 |
185 // We put the bitfield first to minimize padding on 64-bit. | 187 // We put the bitfield first to minimize padding on 64-bit. |
186 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl
e lines. | 188 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl
e lines. |
187 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit
h '\n'). | 189 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit
h '\n'). |
188 bool m_hasTab : 1; // Whether or not we have a variable width tab character
(e.g., <pre> with '\t'). | 190 bool m_hasTab : 1; // Whether or not we have a variable width tab character
(e.g., <pre> with '\t'). |
189 bool m_hasBreakableStart : 1; | 191 bool m_hasBreakableStart : 1; |
190 bool m_hasBreakableEnd : 1; | 192 bool m_hasBreakableEnd : 1; |
191 bool m_hasEndWhiteSpace : 1; | 193 bool m_hasEndWhiteSpace : 1; |
192 bool m_linesDirty : 1; // This bit indicates that the text run has already d
irtied specific | 194 bool m_linesDirty : 1; // This bit indicates that the text run has already d
irtied specific |
193 // line boxes, and this hint will enable layoutInline
Children to avoid | 195 // line boxes, and this hint will enable layoutInline
Children to avoid |
194 // just dirtying everything when character data is mo
dified (e.g., appended/inserted | 196 // just dirtying everything when character data is mo
dified (e.g., appended/inserted |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 inline RenderText* Text::renderer() const | 236 inline RenderText* Text::renderer() const |
235 { | 237 { |
236 return toRenderText(CharacterData::renderer()); | 238 return toRenderText(CharacterData::renderer()); |
237 } | 239 } |
238 | 240 |
239 void applyTextTransform(const RenderStyle*, String&, UChar); | 241 void applyTextTransform(const RenderStyle*, String&, UChar); |
240 | 242 |
241 } // namespace blink | 243 } // namespace blink |
242 | 244 |
243 #endif // RenderText_h | 245 #endif // RenderText_h |
OLD | NEW |