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

Side by Side Diff: Source/core/html/parser/HTMLStackItem.h

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 * Copyright (C) 2012 Company 100, Inc. All rights reserved. 2 * Copyright (C) 2012 Company 100, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 || tagName == HTMLNames::templateTag 202 || tagName == HTMLNames::templateTag
203 || tagName == HTMLNames::textareaTag 203 || tagName == HTMLNames::textareaTag
204 || tagName == HTMLNames::thTag 204 || tagName == HTMLNames::thTag
205 || tagName == HTMLNames::titleTag 205 || tagName == HTMLNames::titleTag
206 || tagName == HTMLNames::trTag 206 || tagName == HTMLNames::trTag
207 || tagName == HTMLNames::ulTag 207 || tagName == HTMLNames::ulTag
208 || tagName == HTMLNames::wbrTag 208 || tagName == HTMLNames::wbrTag
209 || tagName == HTMLNames::xmpTag; 209 || tagName == HTMLNames::xmpTag;
210 } 210 }
211 211
212 void trace(Visitor* visitor) { visitor->trace(m_node); } 212 DEFINE_INLINE_TRACE() { visitor->trace(m_node); }
213 213
214 private: 214 private:
215 HTMLStackItem(PassRefPtrWillBeRawPtr<ContainerNode> node, ItemType type) 215 HTMLStackItem(PassRefPtrWillBeRawPtr<ContainerNode> node, ItemType type)
216 : m_node(node) 216 : m_node(node)
217 { 217 {
218 switch (type) { 218 switch (type) {
219 case ItemForDocumentFragmentNode: 219 case ItemForDocumentFragmentNode:
220 m_isDocumentFragmentNode = true; 220 m_isDocumentFragmentNode = true;
221 break; 221 break;
222 case ItemForContextElement: 222 case ItemForContextElement:
(...skipping 17 matching lines...) Expand all
240 240
241 AtomicString m_tokenLocalName; 241 AtomicString m_tokenLocalName;
242 Vector<Attribute> m_tokenAttributes; 242 Vector<Attribute> m_tokenAttributes;
243 AtomicString m_namespaceURI; 243 AtomicString m_namespaceURI;
244 bool m_isDocumentFragmentNode; 244 bool m_isDocumentFragmentNode;
245 }; 245 };
246 246
247 } // namespace blink 247 } // namespace blink
248 248
249 #endif // HTMLStackItem_h 249 #endif // HTMLStackItem_h
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLScriptRunnerHost.h ('k') | Source/core/html/parser/HTMLTreeBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698