Index: Source/core/dom/ProcessingInstruction.h |
diff --git a/Source/core/dom/ProcessingInstruction.h b/Source/core/dom/ProcessingInstruction.h |
index 15201daa6dc4103720e4f5dd52ac0f2fc27443f0..60528e0e22aadcd2343f8845845f0a1ec9776e03 100644 |
--- a/Source/core/dom/ProcessingInstruction.h |
+++ b/Source/core/dom/ProcessingInstruction.h |
@@ -86,6 +86,11 @@ private: |
DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INSTRUCTION_NODE); |
+inline bool isXSLStyleSheet(const Node& node) |
+{ |
+ return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingInstruction(node).isXSL(); |
+} |
+ |
} // namespace WebCore |
#endif |