Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Unified Diff: Source/core/dom/ProcessingInstruction.h

Issue 730003002: Refactoring XSLT (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed ASSERT crashes when xsltEnabled() returns false Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/ProcessingInstruction.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ProcessingInstruction.h
diff --git a/Source/core/dom/ProcessingInstruction.h b/Source/core/dom/ProcessingInstruction.h
index ba5e570f3f4e8aac8d362a2d61ecc15af6a9127e..43f72e16bafd14b0c1bdd08741ccef9da43ae620 100644
--- a/Source/core/dom/ProcessingInstruction.h
+++ b/Source/core/dom/ProcessingInstruction.h
@@ -31,6 +31,7 @@ namespace blink {
class StyleSheet;
class CSSStyleSheet;
+class EventListener;
class ProcessingInstruction final : public CharacterData, private ResourceOwner<StyleSheetResource> {
DEFINE_WRAPPERTYPEINFO();
@@ -53,6 +54,11 @@ public:
void didAttributeChanged();
bool isLoading() const;
+ // For XSLT
+ void setEventListenerForXSLT(PassRefPtr<EventListener> listener) { m_listenerForXSLT = listener; }
+ EventListener* eventListenerForXSLT() { return m_listenerForXSLT.get(); }
+ void clearEventListenerForXSLT() { m_listenerForXSLT.clear(); }
+
private:
ProcessingInstruction(Document&, const String& target, const String& data);
@@ -84,6 +90,8 @@ private:
bool m_createdByParser;
bool m_isCSS;
bool m_isXSL;
+
+ RefPtr<EventListener> m_listenerForXSLT;
};
DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INSTRUCTION_NODE);
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/ProcessingInstruction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698