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

Side by Side Diff: sky/engine/core/dom/NodeRareData.h

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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) 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 13 matching lines...) Expand all
24 24
25 #include "core/dom/Element.h" 25 #include "core/dom/Element.h"
26 #include "core/dom/MutationObserverRegistration.h" 26 #include "core/dom/MutationObserverRegistration.h"
27 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
28 #include "wtf/HashSet.h" 28 #include "wtf/HashSet.h"
29 #include "wtf/OwnPtr.h" 29 #include "wtf/OwnPtr.h"
30 #include "wtf/PassOwnPtr.h" 30 #include "wtf/PassOwnPtr.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class NodeMutationObserverData final : public DummyBase<NodeMutationObserverData > { 34 class NodeMutationObserverData final {
35 WTF_MAKE_NONCOPYABLE(NodeMutationObserverData); 35 WTF_MAKE_NONCOPYABLE(NodeMutationObserverData);
36 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 36 WTF_MAKE_FAST_ALLOCATED;
37 public: 37 public:
38 Vector<OwnPtr<MutationObserverRegistration> > registry; 38 Vector<OwnPtr<MutationObserverRegistration> > registry;
39 HashSet<RawPtr<MutationObserverRegistration> > transientRegistry; 39 HashSet<RawPtr<MutationObserverRegistration> > transientRegistry;
40 40
41 static PassOwnPtr<NodeMutationObserverData> create() 41 static PassOwnPtr<NodeMutationObserverData> create()
42 { 42 {
43 return adoptPtr(new NodeMutationObserverData); 43 return adoptPtr(new NodeMutationObserverData);
44 } 44 }
45 45
46 void trace(Visitor* visitor) 46 void trace(Visitor* visitor)
47 { 47 {
48 #if ENABLE(OILPAN) 48 #if ENABLE(OILPAN)
49 visitor->trace(registry); 49 visitor->trace(registry);
50 visitor->trace(transientRegistry); 50 visitor->trace(transientRegistry);
51 #endif 51 #endif
52 } 52 }
53 53
54 private: 54 private:
55 NodeMutationObserverData() { } 55 NodeMutationObserverData() { }
56 }; 56 };
57 57
58 class NodeRareData : public DummyBase<NodeRareData>, public NodeRareDataBase { 58 class NodeRareData : public NodeRareDataBase {
59 WTF_MAKE_NONCOPYABLE(NodeRareData); 59 WTF_MAKE_NONCOPYABLE(NodeRareData);
60 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 60 WTF_MAKE_FAST_ALLOCATED;
61 public: 61 public:
62 static NodeRareData* create(RenderObject* renderer) 62 static NodeRareData* create(RenderObject* renderer)
63 { 63 {
64 return new NodeRareData(renderer); 64 return new NodeRareData(renderer);
65 } 65 }
66 66
67 NodeMutationObserverData* mutationObserverData() { return m_mutationObserver Data.get(); } 67 NodeMutationObserverData* mutationObserverData() { return m_mutationObserver Data.get(); }
68 NodeMutationObserverData& ensureMutationObserverData() 68 NodeMutationObserverData& ensureMutationObserverData()
69 { 69 {
70 if (!m_mutationObserverData) 70 if (!m_mutationObserverData)
(...skipping 21 matching lines...) Expand all
92 OwnPtr<NodeMutationObserverData> m_mutationObserverData; 92 OwnPtr<NodeMutationObserverData> m_mutationObserverData;
93 93
94 unsigned m_elementFlags : NumberOfElementFlags; 94 unsigned m_elementFlags : NumberOfElementFlags;
95 protected: 95 protected:
96 unsigned m_isElementRareData : 1; 96 unsigned m_isElementRareData : 1;
97 }; 97 };
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #endif // NodeRareData_h 101 #endif // NodeRareData_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/MutationObserverRegistration.h ('k') | sky/engine/core/dom/RequestAnimationFrameCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698