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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 void deleteTextBoxes(); | 176 void deleteTextBoxes(); |
177 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | 177 bool containsOnlyWhitespace(unsigned from, unsigned len) const; |
178 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; | 178 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; |
179 bool isAllASCII() const { return m_isAllASCII; } | 179 bool isAllASCII() const { return m_isAllASCII; } |
180 | 180 |
181 void secureText(UChar mask); | 181 void secureText(UChar mask); |
182 | 182 |
183 bool isText() const WTF_DELETED_FUNCTION; // This will catch anyone doing an unnecessary check. | 183 bool isText() const WTF_DELETED_FUNCTION; // This will catch anyone doing an unnecessary check. |
184 | 184 |
185 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t OVERRIDE FINAL; | 185 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t OVERRIDE FINAL; |
186 // The parent invalidates for RenderText, so RenderText does nothing. | 186 // The parent invalidates for RenderText, so RenderText does nothing. |
yoichio
2014/10/02 01:49:02
Should we remove this comment?
| |
187 virtual InvalidationReason invalidatePaintIfNeeded(const PaintInvalidationSt ate&, const RenderLayerModelObject&) OVERRIDE FINAL { return InvalidationNone; } | 187 virtual InvalidationReason invalidatePaintIfNeeded(const PaintInvalidationSt ate&, const RenderLayerModelObject& paintInvalidationContainer) OVERRIDE FINAL |
188 { | |
189 invalidateSelectionIfNeeded(paintInvalidationContainer); | |
190 return InvalidationNone; | |
191 } | |
188 | 192 |
189 // We put the bitfield first to minimize padding on 64-bit. | 193 // We put the bitfield first to minimize padding on 64-bit. |
190 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl e lines. | 194 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl e lines. |
191 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit h '\n'). | 195 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit h '\n'). |
192 bool m_hasTab : 1; // Whether or not we have a variable width tab character (e.g., <pre> with '\t'). | 196 bool m_hasTab : 1; // Whether or not we have a variable width tab character (e.g., <pre> with '\t'). |
193 bool m_hasBreakableStart : 1; | 197 bool m_hasBreakableStart : 1; |
194 bool m_hasBreakableEnd : 1; | 198 bool m_hasBreakableEnd : 1; |
195 bool m_hasEndWhiteSpace : 1; | 199 bool m_hasEndWhiteSpace : 1; |
196 bool m_linesDirty : 1; // This bit indicates that the text run has already d irtied specific | 200 bool m_linesDirty : 1; // This bit indicates that the text run has already d irtied specific |
197 // line boxes, and this hint will enable layoutInline Children to avoid | 201 // line boxes, and this hint will enable layoutInline Children to avoid |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
238 inline RenderText* Text::renderer() const | 242 inline RenderText* Text::renderer() const |
239 { | 243 { |
240 return toRenderText(CharacterData::renderer()); | 244 return toRenderText(CharacterData::renderer()); |
241 } | 245 } |
242 | 246 |
243 void applyTextTransform(const RenderStyle*, String&, UChar); | 247 void applyTextTransform(const RenderStyle*, String&, UChar); |
244 | 248 |
245 } // namespace blink | 249 } // namespace blink |
246 | 250 |
247 #endif // RenderText_h | 251 #endif // RenderText_h |
OLD | NEW |