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

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

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. 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
« no previous file with comments | « Source/core/rendering/RenderTableSection.cpp ('k') | Source/core/rendering/RenderText.cpp » ('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, 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 22 matching lines...) Expand all
33 33
34 class AbstractInlineTextBox; 34 class AbstractInlineTextBox;
35 class InlineTextBox; 35 class InlineTextBox;
36 36
37 class RenderText : public RenderObject { 37 class RenderText : public RenderObject {
38 public: 38 public:
39 // FIXME: If the node argument is not a Text node or the string argument is 39 // FIXME: If the node argument is not a Text node or the string argument is
40 // not the content of the Text node, updating text-transform property 40 // not the content of the Text node, updating text-transform property
41 // doesn't re-transform the string. 41 // doesn't re-transform the string.
42 RenderText(Node*, PassRefPtr<StringImpl>); 42 RenderText(Node*, PassRefPtr<StringImpl>);
43 #ifndef NDEBUG 43 #if ENABLE(ASSERT)
44 virtual ~RenderText(); 44 virtual ~RenderText();
45 #endif 45 #endif
46 46
47 virtual const char* renderName() const OVERRIDE; 47 virtual const char* renderName() const OVERRIDE;
48 48
49 virtual bool isTextFragment() const; 49 virtual bool isTextFragment() const;
50 virtual bool isWordBreak() const; 50 virtual bool isWordBreak() const;
51 51
52 virtual PassRefPtr<StringImpl> originalText() const; 52 virtual PassRefPtr<StringImpl> originalText() const;
53 53
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 inline UChar RenderText::characterAt(unsigned i) const 218 inline UChar RenderText::characterAt(unsigned i) const
219 { 219 {
220 if (i >= textLength()) 220 if (i >= textLength())
221 return 0; 221 return 0;
222 222
223 return uncheckedCharacterAt(i); 223 return uncheckedCharacterAt(i);
224 } 224 }
225 225
226 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderText, isText()); 226 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderText, isText());
227 227
228 #ifdef NDEBUG 228 #if !ENABLE(ASSERT)
229 inline void RenderText::checkConsistency() const 229 inline void RenderText::checkConsistency() const
230 { 230 {
231 } 231 }
232 #endif 232 #endif
233 233
234 void applyTextTransform(const RenderStyle*, String&, UChar); 234 void applyTextTransform(const RenderStyle*, String&, UChar);
235 235
236 } // namespace WebCore 236 } // namespace WebCore
237 237
238 #endif // RenderText_h 238 #endif // RenderText_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableSection.cpp ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698