summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/inspector/DOMEditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/inspector/DOMEditor.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/inspector/DOMEditor.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/chromium/third_party/WebKit/Source/core/inspector/DOMEditor.h b/chromium/third_party/WebKit/Source/core/inspector/DOMEditor.h
index b0be0cf7d19..00528cb09ef 100644
--- a/chromium/third_party/WebKit/Source/core/inspector/DOMEditor.h
+++ b/chromium/third_party/WebKit/Source/core/inspector/DOMEditor.h
@@ -31,6 +31,7 @@
#ifndef DOMEditor_h
#define DOMEditor_h
+#include "platform/heap/Handle.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -43,22 +44,24 @@ class Text;
typedef String ErrorString;
-class DOMEditor {
- WTF_MAKE_NONCOPYABLE(DOMEditor); WTF_MAKE_FAST_ALLOCATED;
+class DOMEditor FINAL : public NoBaseWillBeGarbageCollected<DOMEditor> {
+ WTF_MAKE_NONCOPYABLE(DOMEditor);
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
explicit DOMEditor(InspectorHistory*);
- ~DOMEditor();
- bool insertBefore(Node* parentNode, PassRefPtr<Node>, Node* anchorNode, ExceptionState&);
+ void trace(Visitor*);
+
+ bool insertBefore(Node* parentNode, PassRefPtrWillBeRawPtr<Node>, Node* anchorNode, ExceptionState&);
bool removeChild(Node* parentNode, Node*, ExceptionState&);
bool setAttribute(Element*, const String& name, const String& value, ExceptionState&);
bool removeAttribute(Element*, const String& name, ExceptionState&);
bool setOuterHTML(Node*, const String& html, Node** newNode, ExceptionState&);
bool replaceWholeText(Text*, const String& text, ExceptionState&);
- bool replaceChild(Node* parentNode, PassRefPtr<Node> newNode, Node* oldNode, ExceptionState&);
+ bool replaceChild(Node* parentNode, PassRefPtrWillBeRawPtr<Node> newNode, Node* oldNode, ExceptionState&);
bool setNodeValue(Node* parentNode, const String& value, ExceptionState&);
- bool insertBefore(Node* parentNode, PassRefPtr<Node>, Node* anchorNode, ErrorString*);
+ bool insertBefore(Node* parentNode, PassRefPtrWillBeRawPtr<Node>, Node* anchorNode, ErrorString*);
bool removeChild(Node* parentNode, Node*, ErrorString*);
bool setAttribute(Element*, const String& name, const String& value, ErrorString*);
bool removeAttribute(Element*, const String& name, ErrorString*);
@@ -76,7 +79,7 @@ private:
class ReplaceChildNodeAction;
class SetNodeValueAction;
- InspectorHistory* m_history;
+ RawPtrWillBeMember<InspectorHistory> m_history;
};