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

Side by Side Diff: Source/core/testing/LayerRectList.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class LayerRectList final : public GarbageCollected<LayerRectList>, public Scrip tWrappable { 46 class LayerRectList final : public GarbageCollected<LayerRectList>, public Scrip tWrappable {
47 DEFINE_WRAPPERTYPEINFO(); 47 DEFINE_WRAPPERTYPEINFO();
48 public: 48 public:
49 static LayerRectList* create() 49 static LayerRectList* create()
50 { 50 {
51 return new LayerRectList; 51 return new LayerRectList;
52 } 52 }
53 53
54 unsigned length() const; 54 unsigned length() const;
55 LayerRect* item(unsigned index); 55 LayerRect* item(unsigned index);
56 void append(PassRefPtrWillBeRawPtr<Node> layerAssociatedNode, const String& layerName, int layerOffsetX, int layerOffsetY, PassRefPtrWillBeRawPtr<ClientRect > layerRelativeRect); 56 void append(PassRefPtrWillBeRawPtr<Node> layerAssociatedNode, const String& layerName, int layerOffsetX, int layerOffsetY, ClientRect* layerRelativeRect);
57 57
58 DECLARE_TRACE(); 58 DECLARE_TRACE();
59 59
60 private: 60 private:
61 LayerRectList(); 61 LayerRectList();
62 62
63 HeapVector<Member<LayerRect>> m_list; 63 HeapVector<Member<LayerRect>> m_list;
64 }; 64 };
65 65
66 } // namespace blink 66 } // namespace blink
67 67
68 #endif // ClientRectList_h 68 #endif // ClientRectList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698