OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) |
3 * Copyright (C) 2006 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #include "core/dom/CharacterData.h" | 25 #include "core/dom/CharacterData.h" |
26 #include "core/fetch/ResourceOwner.h" | 26 #include "core/fetch/ResourceOwner.h" |
27 #include "core/fetch/StyleSheetResource.h" | 27 #include "core/fetch/StyleSheetResource.h" |
28 #include "core/fetch/StyleSheetResourceClient.h" | 28 #include "core/fetch/StyleSheetResourceClient.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class StyleSheet; | 32 class StyleSheet; |
33 class CSSStyleSheet; | 33 class CSSStyleSheet; |
| 34 class EventListener; |
34 | 35 |
35 class ProcessingInstruction final : public CharacterData, private ResourceOwner<
StyleSheetResource> { | 36 class ProcessingInstruction final : public CharacterData, private ResourceOwner<
StyleSheetResource> { |
36 DEFINE_WRAPPERTYPEINFO(); | 37 DEFINE_WRAPPERTYPEINFO(); |
37 public: | 38 public: |
38 static PassRefPtrWillBeRawPtr<ProcessingInstruction> create(Document&, const
String& target, const String& data); | 39 static PassRefPtrWillBeRawPtr<ProcessingInstruction> create(Document&, const
String& target, const String& data); |
39 virtual ~ProcessingInstruction(); | 40 virtual ~ProcessingInstruction(); |
40 virtual void trace(Visitor*) override; | 41 virtual void trace(Visitor*) override; |
41 | 42 |
42 const String& target() const { return m_target; } | 43 const String& target() const { return m_target; } |
43 | 44 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 String m_target; | 78 String m_target; |
78 String m_localHref; | 79 String m_localHref; |
79 String m_title; | 80 String m_title; |
80 String m_media; | 81 String m_media; |
81 RefPtrWillBeMember<StyleSheet> m_sheet; | 82 RefPtrWillBeMember<StyleSheet> m_sheet; |
82 bool m_loading; | 83 bool m_loading; |
83 bool m_alternate; | 84 bool m_alternate; |
84 bool m_createdByParser; | 85 bool m_createdByParser; |
85 bool m_isCSS; | 86 bool m_isCSS; |
86 bool m_isXSL; | 87 bool m_isXSL; |
| 88 |
| 89 RefPtr<EventListener> m_listenerForXSLT; |
87 }; | 90 }; |
88 | 91 |
89 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS
TRUCTION_NODE); | 92 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS
TRUCTION_NODE); |
90 | 93 |
91 inline bool isXSLStyleSheet(const Node& node) | 94 inline bool isXSLStyleSheet(const Node& node) |
92 { | 95 { |
93 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI
nstruction(node).isXSL(); | 96 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI
nstruction(node).isXSL(); |
94 } | 97 } |
95 | 98 |
96 } // namespace blink | 99 } // namespace blink |
97 | 100 |
98 #endif // ProcessingInstruction_h | 101 #endif // ProcessingInstruction_h |
OLD | NEW |