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

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

Issue 1254243002: Remove Node.localName and Node.namespaceURI (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix layout test failure Created 5 years, 4 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 | « Source/core/frame/UseCounter.h ('k') | Source/core/inspector/InspectorDOMAgent.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) 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
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:
223 m_tokenLocalName = m_node->localName(); 223 m_tokenLocalName = element()->localName();
224 m_namespaceURI = m_node->namespaceURI(); 224 m_namespaceURI = element()->namespaceURI();
225 m_isDocumentFragmentNode = false; 225 m_isDocumentFragmentNode = false;
226 break; 226 break;
227 } 227 }
228 } 228 }
229 229
230 HTMLStackItem(PassRefPtrWillBeRawPtr<ContainerNode> node, AtomicHTMLToken* t oken, const AtomicString& namespaceURI = HTMLNames::xhtmlNamespaceURI) 230 HTMLStackItem(PassRefPtrWillBeRawPtr<ContainerNode> node, AtomicHTMLToken* t oken, const AtomicString& namespaceURI = HTMLNames::xhtmlNamespaceURI)
231 : m_node(node) 231 : m_node(node)
232 , m_tokenLocalName(token->name()) 232 , m_tokenLocalName(token->name())
233 , m_tokenAttributes(token->attributes()) 233 , m_tokenAttributes(token->attributes())
234 , m_namespaceURI(namespaceURI) 234 , m_namespaceURI(namespaceURI)
235 , m_isDocumentFragmentNode(false) 235 , m_isDocumentFragmentNode(false)
236 { 236 {
237 } 237 }
238 238
239 RefPtrWillBeMember<ContainerNode> m_node; 239 RefPtrWillBeMember<ContainerNode> m_node;
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/frame/UseCounter.h ('k') | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698