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

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

Issue 425503002: Hide RenderBox::isBox() / RenderText::isText() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, TextDirect ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; 179 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const;
180 bool isAllASCII() const { return m_isAllASCII; } 180 bool isAllASCII() const { return m_isAllASCII; }
181 181
182 void secureText(UChar mask); 182 void secureText(UChar mask);
183 183
184 bool isText() const WTF_DELETED_FUNCTION; // Hide to catch useless calls.
pdr. 2014/07/27 20:55:23 A small nit that should have been in my previous r
Inactive 2014/07/28 13:16:29 Done. No worries, I will submit a clean up patch t
185
184 // We put the bitfield first to minimize padding on 64-bit. 186 // We put the bitfield first to minimize padding on 64-bit.
185 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl e lines. 187 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl e lines.
186 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit h '\n'). 188 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit h '\n').
187 bool m_hasTab : 1; // Whether or not we have a variable width tab character (e.g., <pre> with '\t'). 189 bool m_hasTab : 1; // Whether or not we have a variable width tab character (e.g., <pre> with '\t').
188 bool m_hasBreakableStart : 1; 190 bool m_hasBreakableStart : 1;
189 bool m_hasBreakableEnd : 1; 191 bool m_hasBreakableEnd : 1;
190 bool m_hasEndWhiteSpace : 1; 192 bool m_hasEndWhiteSpace : 1;
191 bool m_linesDirty : 1; // This bit indicates that the text run has already d irtied specific 193 bool m_linesDirty : 1; // This bit indicates that the text run has already d irtied specific
192 // line boxes, and this hint will enable layoutInline Children to avoid 194 // line boxes, and this hint will enable layoutInline Children to avoid
193 // just dirtying everything when character data is mo dified (e.g., appended/inserted 195 // just dirtying everything when character data is mo dified (e.g., appended/inserted
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 inline void RenderText::checkConsistency() const 230 inline void RenderText::checkConsistency() const
229 { 231 {
230 } 232 }
231 #endif 233 #endif
232 234
233 void applyTextTransform(const RenderStyle*, String&, UChar); 235 void applyTextTransform(const RenderStyle*, String&, UChar);
234 236
235 } // namespace blink 237 } // namespace blink
236 238
237 #endif // RenderText_h 239 #endif // RenderText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698