OLD | NEW |
---|---|
(Empty) | |
1 #ifndef DocumentXSLT_h | |
haraken
2014/11/17 14:18:32
Add a copyright.
tasak
2014/11/19 08:23:17
Done.
| |
2 #define DocumentXSLT_h | |
3 | |
4 #include "core/dom/DocumentSupplementable.h" | |
5 #include "platform/heap/Handle.h" | |
6 #include "wtf/RefPtr.h" | |
7 | |
8 namespace blink { | |
9 | |
10 class Document; | |
11 class EventListener; | |
12 class ExecutionContext; | |
13 class ProcessingInstruction; | |
14 | |
15 class DocumentXSLT final : public NoBaseWillBeGarbageCollected<DocumentXSLT>, pu blic DocumentSupplement { | |
16 public: | |
17 PassRefPtrWillBeRawPtr<Document> transformSourceDocument() | |
18 { | |
19 return m_transformSourceDocument; | |
20 } | |
21 | |
22 void setTransformSourceDocument(Document* document) | |
23 { | |
24 ASSERT(document); | |
25 m_transformSourceDocument = document; | |
26 } | |
27 | |
28 static DocumentXSLT& from(DocumentSupplementable&); | |
29 static const char* supplementName(); | |
30 | |
31 static PassRefPtr<EventListener> addDOMContentLoadedListenerForXSLT(Document &, ProcessingInstruction*); | |
32 static void applyXSLTransform(Document&, ProcessingInstruction*); | |
33 static ProcessingInstruction* findXSLStyleSheet(Document&); | |
34 static void sheetLoaded(Document&, ProcessingInstruction*); | |
35 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
| |
36 | |
37 virtual void trace(Visitor*) override; | |
38 | |
39 private: | |
40 DocumentXSLT(); | |
41 | |
42 RefPtrWillBeMember<Document> m_transformSourceDocument; | |
43 }; | |
44 | |
45 } // namespace blink | |
46 | |
47 #endif | |
OLD | NEW |