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

Side by Side Diff: third_party/WebKit/Source/core/dom/NodeRareData.h

Issue 1876383003: Introduce infrastructure for tracing ScriptWrappables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate Haraken's wonderful comments Created 4 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) 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void clearRestyleFlags() { m_restyleFlags = 0; } 95 void clearRestyleFlags() { m_restyleFlags = 0; }
96 96
97 enum { 97 enum {
98 ConnectedFrameCountBits = 10, // Must fit Page::maxNumberOfFrames. 98 ConnectedFrameCountBits = 10, // Must fit Page::maxNumberOfFrames.
99 }; 99 };
100 100
101 DECLARE_TRACE(); 101 DECLARE_TRACE();
102 102
103 DECLARE_TRACE_AFTER_DISPATCH(); 103 DECLARE_TRACE_AFTER_DISPATCH();
104 void finalizeGarbageCollectedObject(); 104 void finalizeGarbageCollectedObject();
105 DECLARE_NONVIRTUAL_TRACE_WRAPPERS();
105 106
106 protected: 107 protected:
107 explicit NodeRareData(LayoutObject* layoutObject) 108 explicit NodeRareData(LayoutObject* layoutObject)
108 : NodeRareDataBase(layoutObject) 109 : NodeRareDataBase(layoutObject)
109 , m_connectedFrameCount(0) 110 , m_connectedFrameCount(0)
110 , m_elementFlags(0) 111 , m_elementFlags(0)
111 , m_restyleFlags(0) 112 , m_restyleFlags(0)
112 , m_isElementRareData(false) 113 , m_isElementRareData(false)
113 { } 114 { }
114 115
115 private: 116 private:
116 Member<NodeListsNodeData> m_nodeLists; 117 Member<NodeListsNodeData> m_nodeLists;
117 Member<NodeMutationObserverData> m_mutationObserverData; 118 Member<NodeMutationObserverData> m_mutationObserverData;
118 119
119 unsigned m_connectedFrameCount : ConnectedFrameCountBits; 120 unsigned m_connectedFrameCount : ConnectedFrameCountBits;
120 unsigned m_elementFlags : NumberOfElementFlags; 121 unsigned m_elementFlags : NumberOfElementFlags;
121 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; 122 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags;
122 protected: 123 protected:
123 unsigned m_isElementRareData : 1; 124 unsigned m_isElementRareData : 1;
124 }; 125 };
125 126
126 } // namespace blink 127 } // namespace blink
127 128
128 #endif // NodeRareData_h 129 #endif // NodeRareData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698