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

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

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
Index: Source/core/layout/svg/LayoutSVGResourceContainer.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
index 9b6ed6bc2c746b149b3f23576b283c5db2e0a137..3a112e9cdb72fa198fc714e59509ee9f3c1911ed 100644
--- a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -195,7 +195,7 @@ void LayoutSVGResourceContainer::invalidateCacheAndMarkForLayout(SubtreeLayoutSc
if (selfNeedsLayout())
return;
- setNeedsLayoutAndFullPaintInvalidation(MarkContainerChain, layoutScope);
+ setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::SvgResourceInvalidated, MarkContainerChain, layoutScope);
if (everHadLayout())
removeAllClientsFromCache();
@@ -226,7 +226,7 @@ void LayoutSVGResourceContainer::registerResource()
StyleDifference diff;
diff.setNeedsFullLayout();
SVGResourcesCache::clientStyleChanged(layoutObject, diff, layoutObject->styleRef());
- layoutObject->setNeedsLayoutAndFullPaintInvalidation();
+ layoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::SvgResourceInvalidated);
}
}
@@ -277,7 +277,7 @@ void LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation(Layo
ASSERT(object->node());
if (needsLayout && !object->documentBeingDestroyed())
- object->setNeedsLayoutAndFullPaintInvalidation();
+ object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::SvgResourceInvalidated);
removeFromCacheAndInvalidateDependencies(object, needsLayout);

Powered by Google App Engine
This is Rietveld 408576698