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

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

Issue 730003002: Refactoring XSLT (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed oilpan build 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef DocumentXSLT_h
6 #define DocumentXSLT_h
7
8 #include "core/dom/DocumentSupplementable.h"
9 #include "platform/heap/Handle.h"
10 #include "wtf/RefPtr.h"
11
12 namespace blink {
13
14 class Document;
15 class EventListener;
16 class ExecutionContext;
17 class ProcessingInstruction;
18
19 class DocumentXSLT final : public NoBaseWillBeGarbageCollected<DocumentXSLT>, pu blic DocumentSupplement {
20 WTF_MAKE_NONCOPYABLE(DocumentXSLT);
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DocumentXSLT);
22 public:
23 PassRefPtrWillBeRawPtr<Document> transformSourceDocument()
haraken 2014/11/19 09:01:36 Does this need to be a PassRefPtr? Probably Docume
tasak 2014/11/19 09:23:03 This code is the same as the original code: PassRe
haraken 2014/11/19 09:33:59 ok, but this looks not nice. Given that transformS
tasak 2014/11/19 11:12:35 Done.
24 {
25 return m_transformSourceDocument;
26 }
27
28 void setTransformSourceDocument(Document* document)
29 {
30 ASSERT(document);
31 m_transformSourceDocument = document;
32 }
33
34 static DocumentXSLT& from(DocumentSupplementable&);
35 static const char* supplementName();
36
37 // The following static methods doesn't use any instance of DocumentXSLT.
haraken 2014/11/19 09:01:36 doesn't => don't
tasak 2014/11/19 09:23:03 Done.
38 // Just they are just using DocumetnXSLT namespace.
haraken 2014/11/19 09:01:36 Just they are => they are
tasak 2014/11/19 09:23:03 Done. Also fixed Documetn => Document
39 static PassRefPtr<EventListener> addDOMContentLoadedListenerForXSLT(Document &, ProcessingInstruction*);
40 static void applyXSLTransform(Document&, ProcessingInstruction*);
41 static ProcessingInstruction* findXSLStyleSheet(Document&);
42 static void sheetLoaded(Document&, ProcessingInstruction*);
43 static bool hasTransformSourceDocument(Document&);
44
45 virtual void trace(Visitor*) override;
46
47 private:
48 DocumentXSLT();
49
50 RefPtrWillBeMember<Document> m_transformSourceDocument;
51 };
52
53 } // namespace blink
54
55 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698