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

Unified Diff: Source/core/xml/XMLSerializer.h

Issue 166903010: Oilpan: Move core/xml/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/xml/XMLSerializer.h
diff --git a/Source/core/xml/XMLSerializer.h b/Source/core/xml/XMLSerializer.h
index 53d8c732bb8fdd6d50f6e06a10f4a2ed0d06350a..eee1385d473b05cf1df2ddf4f58b1ceff42ebea0 100644
--- a/Source/core/xml/XMLSerializer.h
+++ b/Source/core/xml/XMLSerializer.h
@@ -21,6 +21,7 @@
#define XMLSerializer_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -30,12 +31,18 @@ namespace WebCore {
class ExceptionState;
class Node;
-class XMLSerializer : public RefCounted<XMLSerializer>, public ScriptWrappable {
+class XMLSerializer : public RefCountedWillBeGarbageCollectedFinalized<XMLSerializer>, public ScriptWrappable {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<XMLSerializer> create() { return adoptRef(new XMLSerializer); }
+ static PassRefPtrWillBeRawPtr<XMLSerializer> create()
+ {
+ return adoptRefWillBeNoop(new XMLSerializer);
+ }
String serializeToString(Node*, ExceptionState&);
+ void trace(Visitor*) { }
+
private:
XMLSerializer()
{

Powered by Google App Engine
This is Rietveld 408576698