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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 * | 19 * |
20 */ | 20 */ |
21 | 21 |
22 #ifndef ProcessingInstruction_h | 22 #ifndef ProcessingInstruction_h |
23 #define ProcessingInstruction_h | 23 #define ProcessingInstruction_h |
24 | 24 |
25 #include "core/dom/CharacterData.h" | 25 #include "core/dom/CharacterData.h" |
| 26 #include "core/dom/StyleEngineContext.h" |
26 #include "core/fetch/ResourceOwner.h" | 27 #include "core/fetch/ResourceOwner.h" |
27 #include "core/fetch/StyleSheetResource.h" | 28 #include "core/fetch/StyleSheetResource.h" |
28 #include "core/fetch/StyleSheetResourceClient.h" | 29 #include "core/fetch/StyleSheetResourceClient.h" |
29 | 30 |
30 namespace blink { | 31 namespace blink { |
31 | 32 |
32 class StyleSheet; | 33 class StyleSheet; |
33 class CSSStyleSheet; | 34 class CSSStyleSheet; |
34 class EventListener; | 35 class EventListener; |
35 | 36 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 void parseStyleSheet(const String& sheet); | 88 void parseStyleSheet(const String& sheet); |
88 void clearSheet(); | 89 void clearSheet(); |
89 | 90 |
90 String debugName() const override { return "ProcessingInstruction"; } | 91 String debugName() const override { return "ProcessingInstruction"; } |
91 | 92 |
92 String m_target; | 93 String m_target; |
93 String m_localHref; | 94 String m_localHref; |
94 String m_title; | 95 String m_title; |
95 String m_media; | 96 String m_media; |
96 Member<StyleSheet> m_sheet; | 97 Member<StyleSheet> m_sheet; |
| 98 StyleEngineContext m_styleEngineContext; |
97 bool m_loading; | 99 bool m_loading; |
98 bool m_alternate; | 100 bool m_alternate; |
99 bool m_isCSS; | 101 bool m_isCSS; |
100 bool m_isXSL; | 102 bool m_isXSL; |
101 | 103 |
102 Member<DetachableEventListener> m_listenerForXSLT; | 104 Member<DetachableEventListener> m_listenerForXSLT; |
103 }; | 105 }; |
104 | 106 |
105 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, getNodeType() == Node::PROCESSING_
INSTRUCTION_NODE); | 107 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, getNodeType() == Node::PROCESSING_
INSTRUCTION_NODE); |
106 | 108 |
107 inline bool isXSLStyleSheet(const Node& node) | 109 inline bool isXSLStyleSheet(const Node& node) |
108 { | 110 { |
109 return node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessi
ngInstruction(node).isXSL(); | 111 return node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessi
ngInstruction(node).isXSL(); |
110 } | 112 } |
111 | 113 |
112 } // namespace blink | 114 } // namespace blink |
113 | 115 |
114 #endif // ProcessingInstruction_h | 116 #endif // ProcessingInstruction_h |
OLD | NEW |