Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
index 0968fd718d9cd1b9db7fe5442cadf9b2fbdf2a17..a09d4d11fde22925c1bb4487c6dbcf990c33917a 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
@@ -2418,6 +2418,13 @@ void LayoutObject::localToAncestorRects(Vector<LayoutRect>& rects, const LayoutB |
} |
} |
+TransformationMatrix LayoutObject::localToAncestorTransform(const LayoutBoxModelObject* ancestor, MapCoordinatesFlags mode, bool* wasFixed) const |
+{ |
+ TransformState transformState(TransformState::ApplyTransformDirection); |
+ mapLocalToAncestor(ancestor, transformState, mode | ApplyContainerFlip | UseTransforms, wasFixed); |
+ return transformState.accumulatedTransform(); |
+} |
+ |
FloatPoint LayoutObject::localToInvalidationBackingPoint(const LayoutPoint& localPoint, PaintLayer** backingLayer) |
{ |
const LayoutBoxModelObject& paintInvalidationContainer = containerForPaintInvalidation(); |