Chromium Code Reviews| 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, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. |
| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 virtual unsigned length() const OVERRIDE FINAL { return textLength(); } | 171 virtual unsigned length() const OVERRIDE FINAL { return textLength(); } |
| 172 | 172 |
| 173 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL { ASSERT_N OT_REACHED(); } | 173 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL { ASSERT_N OT_REACHED(); } |
| 174 virtual void layout() OVERRIDE FINAL { ASSERT_NOT_REACHED(); } | 174 virtual void layout() OVERRIDE FINAL { ASSERT_NOT_REACHED(); } |
| 175 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation&, const LayoutPoint&, HitTestAction) OVERRIDE FINAL { ASSERT_NOT_REACH ED(); return false; } | 175 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation&, const LayoutPoint&, HitTestAction) OVERRIDE FINAL { ASSERT_NOT_REACH ED(); return false; } |
| 176 | 176 |
| 177 void deleteTextBoxes(); | 177 void deleteTextBoxes(); |
| 178 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | 178 bool containsOnlyWhitespace(unsigned from, unsigned len) const; |
| 179 float widthFromCache(const Font&, int start, int len, float xPos, HashSet<co nst SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; | 179 float widthFromCache(const Font&, int start, int len, float xPos, HashSet<co nst SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; |
| 180 bool isAllASCII() const { return m_isAllASCII; } | 180 bool isAllASCII() const { return m_isAllASCII; } |
| 181 void updateNeedsTranscoding(); | |
| 182 | 181 |
| 183 void secureText(UChar mask); | 182 void secureText(UChar mask); |
| 184 | 183 |
| 185 // We put the bitfield first to minimize padding on 64-bit. | 184 // 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. | 185 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'). | 186 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'). | 187 bool m_hasTab : 1; // Whether or not we have a variable width tab character (e.g., <pre> with '\t'). |
| 189 bool m_hasBreakableStart : 1; | 188 bool m_hasBreakableStart : 1; |
| 190 bool m_hasBreakableEnd : 1; | 189 bool m_hasBreakableEnd : 1; |
| 191 bool m_hasEndWhiteSpace : 1; | 190 bool m_hasEndWhiteSpace : 1; |
| 192 bool m_linesDirty : 1; // This bit indicates that the text run has already d irtied specific | 191 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 | 192 // 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 | 193 // just dirtying everything when character data is mo dified (e.g., appended/inserted |
| 195 // or removed). | 194 // or removed). |
| 196 bool m_containsReversedText : 1; | 195 bool m_containsReversedText : 1; |
| 197 bool m_isAllASCII : 1; | 196 bool m_isAllASCII : 1; |
| 198 bool m_canUseSimpleFontCodePath : 1; | 197 bool m_canUseSimpleFontCodePath : 1; |
| 199 mutable bool m_knownToHaveNoOverflowAndNoFallbackFonts : 1; | 198 mutable bool m_knownToHaveNoOverflowAndNoFallbackFonts : 1; |
| 200 bool m_needsTranscoding : 1; | |
|
abarth-chromium
2013/11/14 07:04:33
Is this change related to this CL? /me is confuse
oystein (OOO til 10th of July)
2013/11/14 19:02:29
Not directly I suppose; this was touched in an ear
| |
| 201 | 199 |
| 202 float m_minWidth; | 200 float m_minWidth; |
| 203 float m_maxWidth; | 201 float m_maxWidth; |
| 204 float m_firstLineMinWidth; | 202 float m_firstLineMinWidth; |
| 205 float m_lastLineLineMinWidth; | 203 float m_lastLineLineMinWidth; |
| 206 | 204 |
| 207 String m_text; | 205 String m_text; |
| 208 | 206 |
| 209 InlineTextBox* m_firstTextBox; | 207 InlineTextBox* m_firstTextBox; |
| 210 InlineTextBox* m_lastTextBox; | 208 InlineTextBox* m_lastTextBox; |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 230 inline void RenderText::checkConsistency() const | 228 inline void RenderText::checkConsistency() const |
| 231 { | 229 { |
| 232 } | 230 } |
| 233 #endif | 231 #endif |
| 234 | 232 |
| 235 void applyTextTransform(const RenderStyle*, String&, UChar); | 233 void applyTextTransform(const RenderStyle*, String&, UChar); |
| 236 | 234 |
| 237 } // namespace WebCore | 235 } // namespace WebCore |
| 238 | 236 |
| 239 #endif // RenderText_h | 237 #endif // RenderText_h |
| OLD | NEW |