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

Unified Diff: Source/core/xml/DocumentXSLT.h

Issue 730003002: Refactoring XSLT (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/core/xml/DocumentXSLT.h
diff --git a/Source/core/xml/DocumentXSLT.h b/Source/core/xml/DocumentXSLT.h
new file mode 100644
index 0000000000000000000000000000000000000000..87b5e517e47041d82f20aef9a3ae2b4efeac2709
--- /dev/null
+++ b/Source/core/xml/DocumentXSLT.h
@@ -0,0 +1,47 @@
+#ifndef DocumentXSLT_h
haraken 2014/11/17 14:18:32 Add a copyright.
tasak 2014/11/19 08:23:17 Done.
+#define DocumentXSLT_h
+
+#include "core/dom/DocumentSupplementable.h"
+#include "platform/heap/Handle.h"
+#include "wtf/RefPtr.h"
+
+namespace blink {
+
+class Document;
+class EventListener;
+class ExecutionContext;
+class ProcessingInstruction;
+
+class DocumentXSLT final : public NoBaseWillBeGarbageCollected<DocumentXSLT>, public DocumentSupplement {
+public:
+ PassRefPtrWillBeRawPtr<Document> transformSourceDocument()
+ {
+ return m_transformSourceDocument;
+ }
+
+ void setTransformSourceDocument(Document* document)
+ {
+ ASSERT(document);
+ m_transformSourceDocument = document;
+ }
+
+ static DocumentXSLT& from(DocumentSupplementable&);
+ static const char* supplementName();
+
+ static PassRefPtr<EventListener> addDOMContentLoadedListenerForXSLT(Document&, ProcessingInstruction*);
+ static void applyXSLTransform(Document&, ProcessingInstruction*);
+ static ProcessingInstruction* findXSLStyleSheet(Document&);
+ static void sheetLoaded(Document&, ProcessingInstruction*);
+ static bool hasTransformSourceDocument(Document&);
haraken 2014/11/17 14:18:32 We don't want to add these static methods to suppl
tasak 2014/11/19 08:23:17 I added the comment: // The following static m
+
+ virtual void trace(Visitor*) override;
+
+private:
+ DocumentXSLT();
+
+ RefPtrWillBeMember<Document> m_transformSourceDocument;
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698