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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceContainer.cpp

Issue 1074463004: Oilpan: fix build after r193369. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGResourceContainer.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
index 27d011d378f9d148f1bf176f1c719ea9074f6ce5..56b849e3b79b7ce2a6e1dfb482d33d4831e3aaf7 100644
--- a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -243,6 +243,7 @@ static inline void removeFromCacheAndInvalidateDependencies(LayoutObject* object
if (!object->node() || !object->node()->isSVGElement())
return;
+
SVGElementSet* dependencies = toSVGElement(object->node())->setOfIncomingReferences();
if (!dependencies)
return;
@@ -251,10 +252,9 @@ static inline void removeFromCacheAndInvalidateDependencies(LayoutObject* object
// reference graph adjustments on changes, so we need to break possible cycles here.
// This strong reference is safe, as it is guaranteed that this set will be emptied
// at the end of recursion.
- typedef WillBeHeapHashSet<RawPtrWillBeMember<SVGElement>> SVGElementSet;
DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<SVGElementSet>, invalidatingDependencies, (adoptPtrWillBeNoop(new SVGElementSet)));
- for (auto* element : *dependencies) {
+ for (SVGElement* element : *dependencies) {
if (LayoutObject* layoutObject = element->layoutObject()) {
if (UNLIKELY(!invalidatingDependencies->add(element).isNewEntry)) {
// Reference cycle: we are in process of invalidating this dependant.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698