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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void setInsertionMode(InsertionMode mode) { m_insertionMode = mode; } 183 void setInsertionMode(InsertionMode mode) { m_insertionMode = mode; }
184 184
185 void resetInsertionModeAppropriately(); 185 void resetInsertionModeAppropriately();
186 186
187 void processTemplateStartTag(AtomicHTMLToken*); 187 void processTemplateStartTag(AtomicHTMLToken*);
188 bool processTemplateEndTag(AtomicHTMLToken*); 188 bool processTemplateEndTag(AtomicHTMLToken*);
189 bool processEndOfFileForInTemplateContents(AtomicHTMLToken*); 189 bool processEndOfFileForInTemplateContents(AtomicHTMLToken*);
190 190
191 class FragmentParsingContext { 191 class FragmentParsingContext {
192 WTF_MAKE_NONCOPYABLE(FragmentParsingContext); 192 WTF_MAKE_NONCOPYABLE(FragmentParsingContext);
193 DISALLOW_ALLOCATION(); 193 DISALLOW_NEW();
194 public: 194 public:
195 FragmentParsingContext(); 195 FragmentParsingContext();
196 FragmentParsingContext(DocumentFragment*, Element* contextElement); 196 FragmentParsingContext(DocumentFragment*, Element* contextElement);
197 ~FragmentParsingContext(); 197 ~FragmentParsingContext();
198 198
199 DocumentFragment* fragment() const { return m_fragment; } 199 DocumentFragment* fragment() const { return m_fragment; }
200 Element* contextElement() const { ASSERT(m_fragment); return m_contextEl ementStackItem->element(); } 200 Element* contextElement() const { ASSERT(m_fragment); return m_contextEl ementStackItem->element(); }
201 HTMLStackItem* contextElementStackItem() const { ASSERT(m_fragment); ret urn m_contextElementStackItem.get(); } 201 HTMLStackItem* contextElementStackItem() const { ASSERT(m_fragment); ret urn m_contextElementStackItem.get(); }
202 202
203 DECLARE_TRACE(); 203 DECLARE_TRACE();
(...skipping 30 matching lines...) Expand all
234 234
235 RefPtrWillBeMember<Element> m_scriptToProcess; // <script> tag which needs p rocessing before resuming the parser. 235 RefPtrWillBeMember<Element> m_scriptToProcess; // <script> tag which needs p rocessing before resuming the parser.
236 TextPosition m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing. 236 TextPosition m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing.
237 237
238 HTMLParserOptions m_options; 238 HTMLParserOptions m_options;
239 }; 239 };
240 240
241 } 241 }
242 242
243 #endif 243 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698