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

Unified Diff: Source/core/inspector/LayoutEditor.h

Issue 1206803002: Oilpan: fix build after r197716. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/web/InspectorOverlayImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/LayoutEditor.h
diff --git a/Source/core/inspector/LayoutEditor.h b/Source/core/inspector/LayoutEditor.h
index a0ed0a6339271183fa7e1d32236cb198ac287cfd..6980b2fc6bb9fb92a8afaf0517c0cbb560916f0e 100644
--- a/Source/core/inspector/LayoutEditor.h
+++ b/Source/core/inspector/LayoutEditor.h
@@ -5,6 +5,7 @@
#ifndef LayoutEditor_h
#define LayoutEditor_h
+#include "platform/heap/Handle.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/RefPtr.h"
@@ -13,18 +14,23 @@ namespace blink {
class JSONObject;
class Node;
-class LayoutEditor final {
+class LayoutEditor final : public NoBaseWillBeGarbageCollected<LayoutEditor> {
public:
- static PassOwnPtr<LayoutEditor> create(Node* node)
+ static PassOwnPtrWillBeRawPtr<LayoutEditor> create(Node* node)
{
- return adoptPtr(new LayoutEditor(node));
+ return adoptPtrWillBeNoop(new LayoutEditor(node));
}
PassRefPtr<JSONObject> buildJSONInfo() const;
+ DEFINE_INLINE_TRACE()
+ {
+ visitor->trace(m_node);
+ }
+
private:
explicit LayoutEditor(Node*);
- RefPtr<Node> m_node;
+ RefPtrWillBeMember<Node> m_node;
};
} // namespace blink
« no previous file with comments | « no previous file | Source/web/InspectorOverlayImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698