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

Side by Side Diff: Source/core/html/parser/HTMLTreeBuilder.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/html/parser/HTMLToken.h ('k') | Source/core/html/parser/HTMLTreeBuilder.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 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 HTMLStackItem* contextElementStackItem() const { ASSERT(m_fragment); ret urn m_contextElementStackItem.get(); } 207 HTMLStackItem* contextElementStackItem() const { ASSERT(m_fragment); ret urn m_contextElementStackItem.get(); }
208 208
209 void trace(Visitor*); 209 void trace(Visitor*);
210 210
211 private: 211 private:
212 RawPtrWillBeMember<DocumentFragment> m_fragment; 212 RawPtrWillBeMember<DocumentFragment> m_fragment;
213 RefPtrWillBeMember<HTMLStackItem> m_contextElementStackItem; 213 RefPtrWillBeMember<HTMLStackItem> m_contextElementStackItem;
214 }; 214 };
215 215
216 bool m_framesetOk; 216 bool m_framesetOk;
217 #ifndef NDEBUG 217 #if ENABLE(ASSERT)
218 bool m_isAttached; 218 bool m_isAttached;
219 #endif 219 #endif
220 FragmentParsingContext m_fragmentContext; 220 FragmentParsingContext m_fragmentContext;
221 HTMLConstructionSite m_tree; 221 HTMLConstructionSite m_tree;
222 222
223 // http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html# insertion-mode 223 // http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html# insertion-mode
224 InsertionMode m_insertionMode; 224 InsertionMode m_insertionMode;
225 225
226 // http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html# original-insertion-mode 226 // http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html# original-insertion-mode
227 InsertionMode m_originalInsertionMode; 227 InsertionMode m_originalInsertionMode;
(...skipping 11 matching lines...) Expand all
239 239
240 RefPtrWillBeMember<Element> m_scriptToProcess; // <script> tag which needs p rocessing before resuming the parser. 240 RefPtrWillBeMember<Element> m_scriptToProcess; // <script> tag which needs p rocessing before resuming the parser.
241 TextPosition m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing. 241 TextPosition m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing.
242 242
243 HTMLParserOptions m_options; 243 HTMLParserOptions m_options;
244 }; 244 };
245 245
246 } 246 }
247 247
248 #endif 248 #endif
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLToken.h ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698