OLD | NEW |
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 Loading... |
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 |
OLD | NEW |