| Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| index 8f25370944eca8b348490f545b9e2da401d5dbe1..be007f49348d31b43e0a3de4aa2a8316b679864d 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| @@ -1268,13 +1268,17 @@ void ComputedStyle::applyTransform(
|
| float originY = 0;
|
| float originZ = 0;
|
|
|
| - if (applyTransformOrigin) {
|
| + if (applyTransformOrigin ||
|
| + // We need to calculate originX and originY for applying motion path.
|
| + applyMotionPath == ComputedStyle::IncludeMotionPath) {
|
| originX =
|
| floatValueForLength(transformOriginX(), boundingBox.width()) + offsetX;
|
| originY =
|
| floatValueForLength(transformOriginY(), boundingBox.height()) + offsetY;
|
| - originZ = transformOriginZ();
|
| - result.translate3d(originX, originY, originZ);
|
| + if (applyTransformOrigin) {
|
| + originZ = transformOriginZ();
|
| + result.translate3d(originX, originY, originZ);
|
| + }
|
| }
|
|
|
| if (applyIndependentTransformProperties ==
|
|
|