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

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

Issue 2272773002: Use intersection observer to control frame throttling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update LeakExpectations Created 4 years, 1 month 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/SVGLayoutSupport.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
index 3977ea3e4ce9815de5b580aac5f8880c334ce645..bd635ce994cb454b60aea2edfecba8adc637f068 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
@@ -160,7 +160,8 @@ void SVGLayoutSupport::mapLocalToAncestor(const LayoutObject* object,
void SVGLayoutSupport::mapAncestorToLocal(const LayoutObject& object,
const LayoutBoxModelObject* ancestor,
- TransformState& transformState) {
+ TransformState& transformState,
+ MapCoordinatesFlags flags) {
// |object| is either a LayoutSVGModelObject or a LayoutSVGBlock here. In
// the former case, |object| can never be an ancestor while in the latter
// the caller is responsible for doing the ancestor check. Because of this,
@@ -173,7 +174,7 @@ void SVGLayoutSupport::mapAncestorToLocal(const LayoutObject& object,
const LayoutSVGRoot& svgRoot =
computeTransformToSVGRoot(object, localToSVGRoot);
- MapCoordinatesFlags mode = UseTransforms | ApplyContainerFlip;
+ MapCoordinatesFlags mode = flags | UseTransforms | ApplyContainerFlip;
svgRoot.mapAncestorToLocal(ancestor, transformState, mode);
transformState.applyTransform(localToSVGRoot);

Powered by Google App Engine
This is Rietveld 408576698