Chromium Code Reviews| Index: Source/core/inspector/DOMEditor.h |
| diff --git a/Source/core/inspector/DOMEditor.h b/Source/core/inspector/DOMEditor.h |
| index b0be0cf7d1934b408b173d91130eef0b4d17138c..e9b683baa0ee1f6ab2558178bdd046520452a4d9 100644 |
| --- a/Source/core/inspector/DOMEditor.h |
| +++ b/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,11 +44,13 @@ class Text; |
| typedef String ErrorString; |
| -class DOMEditor { |
| - WTF_MAKE_NONCOPYABLE(DOMEditor); WTF_MAKE_FAST_ALLOCATED; |
| +class DOMEditor FINAL : public NoBaseWillBeGarbageCollected<DOMEditor> { |
|
pfeldman
2014/05/22 14:47:21
What is the motivation of this change? DOMEditor i
haraken
2014/05/22 20:19:31
- InspectorHistory is moved to the heap.
- So if w
pfeldman
2014/05/22 20:43:25
Why moving history to heap? Because some actions p
haraken
2014/05/22 21:21:57
- We're currently moving the Node hierarchy to the
|
| + WTF_MAKE_NONCOPYABLE(DOMEditor); |
| + WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| public: |
| explicit DOMEditor(InspectorHistory*); |
| - ~DOMEditor(); |
| + |
| + void trace(Visitor*); |
| bool insertBefore(Node* parentNode, PassRefPtr<Node>, Node* anchorNode, ExceptionState&); |
| bool removeChild(Node* parentNode, Node*, ExceptionState&); |
| @@ -76,7 +79,7 @@ private: |
| class ReplaceChildNodeAction; |
| class SetNodeValueAction; |
| - InspectorHistory* m_history; |
| + RawPtrWillBeMember<InspectorHistory> m_history; |
| }; |