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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h

Issue 2714473002: Move LayoutSVGResourceContainer registration to SVGTreeScopeResources (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void willBeDestroyed() override; 92 void willBeDestroyed() override;
93 93
94 bool m_isInLayout; 94 bool m_isInLayout;
95 95
96 private: 96 private:
97 friend class SVGResourcesCache; 97 friend class SVGResourcesCache;
98 void addClient(LayoutObject*); 98 void addClient(LayoutObject*);
99 void removeClient(LayoutObject*); 99 void removeClient(LayoutObject*);
100 void detachAllClients(); 100 void detachAllClients();
101 101
102 void registerResource();
103
104 AtomicString m_id; 102 AtomicString m_id;
105 // Track global (markAllClientsForInvalidation) invals to avoid redundant 103 // Track global (markAllClientsForInvalidation) invals to avoid redundant
106 // crawls. 104 // crawls.
107 unsigned m_invalidationMask : 8; 105 unsigned m_invalidationMask : 8;
108 106
109 unsigned m_registered : 1; 107 unsigned m_registered : 1;
110 unsigned m_isInvalidating : 1; 108 unsigned m_isInvalidating : 1;
111 // 22 padding bits available 109 // 22 padding bits available
112 110
113 HashSet<LayoutObject*> m_clients; 111 HashSet<LayoutObject*> m_clients;
(...skipping 14 matching lines...) Expand all
128 isSVGResourceContainer()); 126 isSVGResourceContainer());
129 127
130 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ 128 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \
131 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ 129 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \
132 resource->resourceType() == typeName, \ 130 resource->resourceType() == typeName, \
133 resource.resourceType() == typeName) 131 resource.resourceType() == typeName)
134 132
135 } // namespace blink 133 } // namespace blink
136 134
137 #endif 135 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698