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

Unified Diff: Source/core/frame/DOMPoint.h

Issue 214563004: Oilpan: move WebKitPoint to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | « Source/bindings/v8/custom/V8WebKitPointCustom.cpp ('k') | Source/core/frame/DOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMPoint.h
diff --git a/Source/core/frame/DOMPoint.h b/Source/core/frame/DOMPoint.h
index ae8478b25afb5742744486698f9fa830ab113cac..61deceb8ca7eae0129eedc61178f9c5193cddf30 100644
--- a/Source/core/frame/DOMPoint.h
+++ b/Source/core/frame/DOMPoint.h
@@ -27,20 +27,21 @@
#define DOMPoint_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
namespace WebCore {
-class DOMPoint : public RefCounted<DOMPoint>, public ScriptWrappable {
+class DOMPoint FINAL : public RefCountedWillBeGarbageCollectedFinalized<DOMPoint>, public ScriptWrappable {
public:
- static PassRefPtr<DOMPoint> create()
+ static PassRefPtrWillBeRawPtr<DOMPoint> create()
{
- return adoptRef(new DOMPoint());
+ return adoptRefWillBeNoop(new DOMPoint());
}
- static PassRefPtr<DOMPoint> create(float x, float y)
+ static PassRefPtrWillBeRawPtr<DOMPoint> create(float x, float y)
{
- return adoptRef(new DOMPoint(x, y));
+ return adoptRefWillBeNoop(new DOMPoint(x, y));
}
float x() const { return m_x; }
@@ -49,6 +50,8 @@ public:
void setX(float x) { m_x = x; }
void setY(float y) { m_y = y; }
+ void trace(Visitor*) { }
+
private:
DOMPoint(float x = 0, float y = 0)
: m_x(x)
« no previous file with comments | « Source/bindings/v8/custom/V8WebKitPointCustom.cpp ('k') | Source/core/frame/DOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698