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

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

Issue 2293713002: Made ElementRareData store ComputedStyle on LayoutObject if possible. (Closed)
Patch Set: Added CORE_EXPORT to NodeRareDataBase Created 4 years, 3 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 for (auto registration : transientRegistry) { 54 for (auto registration : transientRegistry) {
55 visitor->traceWrappers(registration); 55 visitor->traceWrappers(registration);
56 } 56 }
57 } 57 }
58 58
59 private: 59 private:
60 NodeMutationObserverData() { } 60 NodeMutationObserverData() { }
61 }; 61 };
62 62
63 class NodeRareData : public GarbageCollectedFinalized<NodeRareData>, public Node RareDataBase { 63 class CORE_EXPORT NodeRareData : public GarbageCollectedFinalized<NodeRareData>, public NodeRareDataBase {
64 WTF_MAKE_NONCOPYABLE(NodeRareData); 64 WTF_MAKE_NONCOPYABLE(NodeRareData);
65 public: 65 public:
66 static NodeRareData* create(LayoutObject* layoutObject) 66 static NodeRareData* create(LayoutObject* layoutObject)
67 { 67 {
68 return new NodeRareData(layoutObject); 68 return new NodeRareData(layoutObject);
69 } 69 }
70 70
71 void clearNodeLists() { m_nodeLists.clear(); } 71 void clearNodeLists() { m_nodeLists.clear(); }
72 NodeListsNodeData* nodeLists() const { return m_nodeLists.get(); } 72 NodeListsNodeData* nodeLists() const { return m_nodeLists.get(); }
73 NodeListsNodeData& ensureNodeLists() 73 NodeListsNodeData& ensureNodeLists()
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 unsigned m_connectedFrameCount : ConnectedFrameCountBits; 132 unsigned m_connectedFrameCount : ConnectedFrameCountBits;
133 unsigned m_elementFlags : NumberOfElementFlags; 133 unsigned m_elementFlags : NumberOfElementFlags;
134 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; 134 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags;
135 protected: 135 protected:
136 unsigned m_isElementRareData : 1; 136 unsigned m_isElementRareData : 1;
137 }; 137 };
138 138
139 } // namespace blink 139 } // namespace blink
140 140
141 #endif // NodeRareData_h 141 #endif // NodeRareData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698