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

Side by Side Diff: third_party/WebKit/Source/core/xml/DocumentXSLT.h

Issue 2617103002: Use a new Supplement constructor for Supplement<Document> (Part 1) (Closed)
Patch Set: temp Created 3 years, 11 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DocumentXSLT_h 5 #ifndef DocumentXSLT_h
6 #define DocumentXSLT_h 6 #define DocumentXSLT_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/RefPtr.h" 10 #include "wtf/RefPtr.h"
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 Document* transformSourceDocument() { 23 Document* transformSourceDocument() {
24 return m_transformSourceDocument.get(); 24 return m_transformSourceDocument.get();
25 } 25 }
26 26
27 void setTransformSourceDocument(Document* document) { 27 void setTransformSourceDocument(Document* document) {
28 DCHECK(document); 28 DCHECK(document);
29 m_transformSourceDocument = document; 29 m_transformSourceDocument = document;
30 } 30 }
31 31
32 static DocumentXSLT& from(Supplementable<Document>&); 32 static DocumentXSLT& from(Document&);
33 static const char* supplementName(); 33 static const char* supplementName();
34 34
35 // The following static methods don't use any instance of DocumentXSLT. 35 // The following static methods don't use any instance of DocumentXSLT.
36 // They are just using DocumentXSLT namespace. 36 // They are just using DocumentXSLT namespace.
37 static void applyXSLTransform(Document&, ProcessingInstruction*); 37 static void applyXSLTransform(Document&, ProcessingInstruction*);
38 static ProcessingInstruction* findXSLStyleSheet(Document&); 38 static ProcessingInstruction* findXSLStyleSheet(Document&);
39 static bool processingInstructionInsertedIntoDocument(Document&, 39 static bool processingInstructionInsertedIntoDocument(Document&,
40 ProcessingInstruction*); 40 ProcessingInstruction*);
41 static bool processingInstructionRemovedFromDocument(Document&, 41 static bool processingInstructionRemovedFromDocument(Document&,
42 ProcessingInstruction*); 42 ProcessingInstruction*);
43 static bool sheetLoaded(Document&, ProcessingInstruction*); 43 static bool sheetLoaded(Document&, ProcessingInstruction*);
44 static bool hasTransformSourceDocument(Document&); 44 static bool hasTransformSourceDocument(Document&);
45 45
46 DECLARE_VIRTUAL_TRACE(); 46 DECLARE_VIRTUAL_TRACE();
47 47
48 private: 48 private:
49 DocumentXSLT(); 49 explicit DocumentXSLT(Document&);
50 50
51 Member<Document> m_transformSourceDocument; 51 Member<Document> m_transformSourceDocument;
52 }; 52 };
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif 56 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698