#ifndef DOMEditor_h
#define DOMEditor_h
+#include "platform/heap/Handle.h"
#include "wtf/text/WTFString.h"
-namespace WebCore {
+namespace blink {
class Element;
class ExceptionState;
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*);
class ReplaceChildNodeAction;
class SetNodeValueAction;
- InspectorHistory* m_history;
+ RawPtrWillBeMember<InspectorHistory> m_history;
};
-} // namespace WebCore
+} // namespace blink
#endif // !defined(DOMEditor_h)