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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 }; | 75 }; |
76 | 76 |
77 void setEventListenerForXSLT(PassRefPtrWillBeRawPtr<DetachableEventListener>
listener) { m_listenerForXSLT = listener; } | 77 void setEventListenerForXSLT(PassRefPtrWillBeRawPtr<DetachableEventListener>
listener) { m_listenerForXSLT = listener; } |
78 EventListener* eventListenerForXSLT(); | 78 EventListener* eventListenerForXSLT(); |
79 void clearEventListenerForXSLT(); | 79 void clearEventListenerForXSLT(); |
80 | 80 |
81 private: | 81 private: |
82 ProcessingInstruction(Document&, const String& target, const String& data); | 82 ProcessingInstruction(Document&, const String& target, const String& data); |
83 | 83 |
84 String nodeName() const override; | 84 String nodeName() const override; |
85 NodeType nodeType() const override; | 85 NodeType getNodeType() const override; |
86 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) override; | 86 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) override; |
87 | 87 |
88 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 88 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
89 void removedFrom(ContainerNode*) override; | 89 void removedFrom(ContainerNode*) override; |
90 | 90 |
91 bool checkStyleSheet(String& href, String& charset); | 91 bool checkStyleSheet(String& href, String& charset); |
92 void process(const String& href, const String& charset); | 92 void process(const String& href, const String& charset); |
93 | 93 |
94 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String&
charset, const CSSStyleSheetResource*) override; | 94 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String&
charset, const CSSStyleSheetResource*) override; |
95 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String&
sheet) override; | 95 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String&
sheet) override; |
(...skipping 12 matching lines...) Expand all Loading... |
108 RefPtrWillBeMember<StyleSheet> m_sheet; | 108 RefPtrWillBeMember<StyleSheet> m_sheet; |
109 bool m_loading; | 109 bool m_loading; |
110 bool m_alternate; | 110 bool m_alternate; |
111 bool m_createdByParser; | 111 bool m_createdByParser; |
112 bool m_isCSS; | 112 bool m_isCSS; |
113 bool m_isXSL; | 113 bool m_isXSL; |
114 | 114 |
115 RefPtrWillBeMember<DetachableEventListener> m_listenerForXSLT; | 115 RefPtrWillBeMember<DetachableEventListener> m_listenerForXSLT; |
116 }; | 116 }; |
117 | 117 |
118 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS
TRUCTION_NODE); | 118 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, getNodeType() == Node::PROCESSING_
INSTRUCTION_NODE); |
119 | 119 |
120 inline bool isXSLStyleSheet(const Node& node) | 120 inline bool isXSLStyleSheet(const Node& node) |
121 { | 121 { |
122 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI
nstruction(node).isXSL(); | 122 return node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessi
ngInstruction(node).isXSL(); |
123 } | 123 } |
124 | 124 |
125 } // namespace blink | 125 } // namespace blink |
126 | 126 |
127 #endif // ProcessingInstruction_h | 127 #endif // ProcessingInstruction_h |
OLD | NEW |