OLD | NEW |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class ClientRectList; | 43 class ClientRectList; |
44 class LayerRect; | 44 class LayerRect; |
45 class Node; | 45 class Node; |
46 | 46 |
47 class LayerRectList : public RefCountedWillBeGarbageCollected<LayerRectList> { | 47 class LayerRectList : public RefCountedWillBeGarbageCollected<LayerRectList> { |
48 public: | 48 public: |
49 static PassRefPtrWillBeRawPtr<LayerRectList> create() | 49 static PassRefPtrWillBeRawPtr<LayerRectList> create() |
50 { | 50 { |
51 return adoptRefWillBeNoop(new LayerRectList); | 51 return adoptRefWillBeNoop(new LayerRectList); |
52 } | 52 } |
| 53 #if !ENABLE(OILPAN) |
53 ~LayerRectList(); | 54 ~LayerRectList(); |
| 55 #endif |
54 | 56 |
55 unsigned length() const; | 57 unsigned length() const; |
56 LayerRect* item(unsigned index); | 58 LayerRect* item(unsigned index); |
57 void append(PassRefPtr<Node> layerRootNode, const String& layerName, PassRef
Ptr<ClientRect> layerRelativeRect); | 59 void append(PassRefPtr<Node> layerRootNode, const String& layerName, PassRef
Ptr<ClientRect> layerRelativeRect); |
58 | 60 |
59 void trace(Visitor*); | 61 void trace(Visitor*); |
60 | 62 |
61 private: | 63 private: |
62 LayerRectList(); | 64 LayerRectList(); |
63 | 65 |
64 WillBeHeapVector<RefPtrWillBeMember<LayerRect> > m_list; | 66 WillBeHeapVector<RefPtrWillBeMember<LayerRect> > m_list; |
65 }; | 67 }; |
66 | 68 |
67 } // namespace WebCore | 69 } // namespace WebCore |
68 | 70 |
69 #endif // ClientRectList_h | 71 #endif // ClientRectList_h |
OLD | NEW |