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

Unified Diff: Source/core/dom/ClientRectList.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
Index: Source/core/dom/ClientRectList.h
diff --git a/Source/core/dom/ClientRectList.h b/Source/core/dom/ClientRectList.h
index 237e6973085125b0dd13409d3de682d3237e256c..8f3159bae3441653037de187776db54573ff86b7 100644
--- a/Source/core/dom/ClientRectList.h
+++ b/Source/core/dom/ClientRectList.h
@@ -32,31 +32,27 @@
#include "core/dom/ClientRect.h"
#include "platform/geometry/FloatQuad.h"
#include "platform/heap/Handle.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
-#include "wtf/Vector.h"
namespace blink {
class ClientRect;
-class CORE_EXPORT ClientRectList final : public RefCountedWillBeGarbageCollected<ClientRectList>, public ScriptWrappable {
- DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ClientRectList);
+class CORE_EXPORT ClientRectList final : public GarbageCollected<ClientRectList>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<ClientRectList> create()
+ static ClientRectList* create()
{
- return adoptRefWillBeNoop(new ClientRectList);
+ return new ClientRectList;
}
- static PassRefPtrWillBeRawPtr<ClientRectList> create(const Vector<FloatQuad>& quads)
+ static ClientRectList* create(const Vector<FloatQuad>& quads)
{
- return adoptRefWillBeNoop(new ClientRectList(quads));
+ return new ClientRectList(quads);
}
template<typename Rects>
- static PassRefPtrWillBeRawPtr<ClientRectList> create(const Rects& rects)
+ static ClientRectList* create(const Rects& rects)
{
- return adoptRefWillBeNoop(new ClientRectList(rects));
+ return new ClientRectList(rects);
}
unsigned length() const;
@@ -78,7 +74,7 @@ private:
explicit ClientRectList(const Vector<FloatQuad>&);
- WillBeHeapVector<RefPtrWillBeMember<ClientRect>> m_list;
+ HeapVector<Member<ClientRect>> m_list;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698