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

Side by Side Diff: sky/engine/core/rendering/RenderText.h

Issue 673403002: Remove compiler feature detection for = delete (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Don't remove #define for FINAL Created 6 years, 2 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
« no previous file with comments | « sky/engine/core/rendering/RenderMedia.h ('k') | sky/engine/platform/heap/Heap.h » ('j') | 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-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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 virtual void paint(PaintInfo&, const LayoutPoint&) override final { ASSERT_N OT_REACHED(); } 163 virtual void paint(PaintInfo&, const LayoutPoint&) override final { ASSERT_N OT_REACHED(); }
164 virtual void layout() override final { ASSERT_NOT_REACHED(); } 164 virtual void layout() override final { ASSERT_NOT_REACHED(); }
165 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation&, const LayoutPoint&, HitTestAction) override final { ASSERT_NOT_REACH ED(); return false; } 165 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation&, const LayoutPoint&, HitTestAction) override final { ASSERT_NOT_REACH ED(); return false; }
166 166
167 void deleteTextBoxes(); 167 void deleteTextBoxes();
168 bool containsOnlyWhitespace(unsigned from, unsigned len) const; 168 bool containsOnlyWhitespace(unsigned from, unsigned len) const;
169 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; 169 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const;
170 bool isAllASCII() const { return m_isAllASCII; } 170 bool isAllASCII() const { return m_isAllASCII; }
171 171
172 bool isText() const WTF_DELETED_FUNCTION; // This will catch anyone doing an unnecessary check. 172 bool isText() const = delete; // This will catch anyone doing an unnecessary check.
173 173
174 // We put the bitfield first to minimize padding on 64-bit. 174 // We put the bitfield first to minimize padding on 64-bit.
175 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl e lines. 175 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl e lines.
176 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit h '\n'). 176 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit h '\n').
177 bool m_hasTab : 1; // Whether or not we have a variable width tab character (e.g., <pre> with '\t'). 177 bool m_hasTab : 1; // Whether or not we have a variable width tab character (e.g., <pre> with '\t').
178 bool m_hasBreakableStart : 1; 178 bool m_hasBreakableStart : 1;
179 bool m_hasBreakableEnd : 1; 179 bool m_hasBreakableEnd : 1;
180 bool m_hasEndWhiteSpace : 1; 180 bool m_hasEndWhiteSpace : 1;
181 bool m_linesDirty : 1; // This bit indicates that the text run has already d irtied specific 181 bool m_linesDirty : 1; // This bit indicates that the text run has already d irtied specific
182 // line boxes, and this hint will enable layoutInline Children to avoid 182 // line boxes, and this hint will enable layoutInline Children to avoid
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 #endif 221 #endif
222 222
223 inline RenderText* Text::renderer() const 223 inline RenderText* Text::renderer() const
224 { 224 {
225 return toRenderText(CharacterData::renderer()); 225 return toRenderText(CharacterData::renderer());
226 } 226 }
227 227
228 } // namespace blink 228 } // namespace blink
229 229
230 #endif // RenderText_h 230 #endif // RenderText_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderMedia.h ('k') | sky/engine/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698