| OLD | NEW |
| 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" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class Document; | 14 class Document; |
| 15 class ProcessingInstruction; | 15 class ProcessingInstruction; |
| 16 | 16 |
| 17 class DocumentXSLT final : public NoBaseWillBeGarbageCollected<DocumentXSLT>, pu
blic WillBeHeapSupplement<Document> { | 17 class DocumentXSLT final : public NoBaseWillBeGarbageCollected<DocumentXSLT>, pu
blic WillBeHeapSupplement<Document> { |
| 18 WTF_MAKE_NONCOPYABLE(DocumentXSLT); | 18 WTF_MAKE_NONCOPYABLE(DocumentXSLT); |
| 19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DocumentXSLT); | 19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DocumentXSLT); |
| 20 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DocumentXSLT); |
| 20 public: | 21 public: |
| 21 Document* transformSourceDocument() | 22 Document* transformSourceDocument() |
| 22 { | 23 { |
| 23 return m_transformSourceDocument.get(); | 24 return m_transformSourceDocument.get(); |
| 24 } | 25 } |
| 25 | 26 |
| 26 void setTransformSourceDocument(Document* document) | 27 void setTransformSourceDocument(Document* document) |
| 27 { | 28 { |
| 28 ASSERT(document); | 29 ASSERT(document); |
| 29 m_transformSourceDocument = document; | 30 m_transformSourceDocument = document; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 DocumentXSLT(); | 48 DocumentXSLT(); |
| 48 | 49 |
| 49 RefPtrWillBeMember<Document> m_transformSourceDocument; | 50 RefPtrWillBeMember<Document> m_transformSourceDocument; |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace blink | 53 } // namespace blink |
| 53 | 54 |
| 54 #endif | 55 #endif |
| OLD | NEW |