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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp

Issue 1996543002: Avoid using forced layout to trigger paint invalidation for SVG containers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TE updates Created 4 years, 6 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: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
index 8653fca29ee23cd93a1483631f2a27e215eebe4c..9f4b1c1d7bcd26faef4a027d2a195ad6b06bc977 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
@@ -153,12 +153,12 @@ void LayoutSVGResourceMarker::calcViewport()
m_viewport = FloatRect(0, 0, w, h);
}
-bool LayoutSVGResourceMarker::calculateLocalTransform()
+LayoutSVGContainer::TransformChange LayoutSVGResourceMarker::calculateLocalTransform()
{
// TODO(fs): Temporarily, needing a layout implies that the local transform
// has changed. This should be updated to be more precise and factor in the
// actual (relevant) changes to the computed user-space transform.
- return selfNeedsLayout();
+ return selfNeedsLayout() ? TransformChange::Full : TransformChange::None;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698