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

Unified Diff: Source/core/dom/ClientRect.h

Issue 1104243003: Oilpan: put ClientRect(List) on the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove transition types uses also Created 5 years, 8 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/core/dom/ClientRect.idl » ('j') | Source/web/tests/TouchActionTest.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ClientRect.h
diff --git a/Source/core/dom/ClientRect.h b/Source/core/dom/ClientRect.h
index c52f7d7ba0013f31205ff8d58a208ed58b3926ed..99276e1f0c6461c92137b9e652a7b6643893d4f2 100644
--- a/Source/core/dom/ClientRect.h
+++ b/Source/core/dom/ClientRect.h
@@ -31,27 +31,25 @@
#include "core/CoreExport.h"
#include "platform/geometry/FloatRect.h"
#include "platform/heap/Handle.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
namespace blink {
class IntRect;
-class CORE_EXPORT ClientRect final : public RefCountedWillBeGarbageCollected<ClientRect>, public ScriptWrappable {
+class CORE_EXPORT ClientRect final : public GarbageCollected<ClientRect>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<ClientRect> create()
+ static ClientRect* create()
{
- return adoptRefWillBeNoop(new ClientRect);
+ return new ClientRect;
}
- static PassRefPtrWillBeRawPtr<ClientRect> create(const IntRect& rect)
+ static ClientRect* create(const IntRect& rect)
{
- return adoptRefWillBeNoop(new ClientRect(rect));
+ return new ClientRect(rect);
}
- static PassRefPtrWillBeRawPtr<ClientRect> create(const FloatRect& rect)
+ static ClientRect* create(const FloatRect& rect)
{
- return adoptRefWillBeNoop(new ClientRect(rect));
+ return new ClientRect(rect);
}
float top() const { return m_rect.y(); }
« no previous file with comments | « no previous file | Source/core/dom/ClientRect.idl » ('j') | Source/web/tests/TouchActionTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698