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

Side by Side Diff: Source/core/rendering/RenderText.h

Issue 71163007: Removed unused function declaration and member variable from RenderText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_decoderownership
Patch Set: Created 7 years, 1 month 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 | « no previous file | no next file » | 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, 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
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;
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698