Chromium Code Reviews| Index: Source/core/xml/XMLTreeViewer.h |
| diff --git a/Source/core/xml/XMLTreeViewer.h b/Source/core/xml/XMLTreeViewer.h |
| index b843475cb08063c2092fa65e07eaac959d50f45f..0ea3013cf819da60f8464edeb7245647bab4758c 100644 |
| --- a/Source/core/xml/XMLTreeViewer.h |
| +++ b/Source/core/xml/XMLTreeViewer.h |
| @@ -29,21 +29,18 @@ |
| #ifndef XMLTreeViewer_h |
| #define XMLTreeViewer_h |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| #include "platform/heap/Handle.h" |
| namespace blink { |
| class Document; |
| -class XMLTreeViewer FINAL { |
| +class XMLTreeViewer FINAL : public GarbageCollectedFinalized<XMLTreeViewer>, public ScriptWrappable { |
|
vivekg
2014/08/26 05:41:48
Can't we generate this class automatically? As can
haraken
2014/08/26 05:57:48
This class shouldn't be necessary at all. We need
|
| STACK_ALLOCATED(); |
| public: |
| - explicit XMLTreeViewer(Document*); |
| - |
| - void transformDocumentToTreeView(); |
| - |
| -private: |
| - RawPtrWillBeMember<Document> m_document; |
| + explicit XMLTreeViewer() { ScriptWrappable::init(this); } |
| + void trace(Visitor*) { } |
| }; |
| } // namespace blink |