| 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 1a56c52aafc5092a7b2c276ec2e3f5b216500b36..7e05ece156bba41646b0ec1f5c4b76824bd72bc9 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| @@ -1312,12 +1312,10 @@ void ComputedStyle::applyTransform(
|
| if (applyTransformOrigin ||
|
| // We need to calculate originX and originY for applying motion path.
|
| applyMotionPath == IncludeMotionPath) {
|
| - float offsetX = transformOriginX().type() == Percent ? boundingBox.x() : 0;
|
| - originX =
|
| - floatValueForLength(transformOriginX(), boxSize.width()) + offsetX;
|
| - float offsetY = transformOriginY().type() == Percent ? boundingBox.y() : 0;
|
| - originY =
|
| - floatValueForLength(transformOriginY(), boxSize.height()) + offsetY;
|
| + originX = floatValueForLength(transformOriginX(), boxSize.width()) +
|
| + boundingBox.x();
|
| + originY = floatValueForLength(transformOriginY(), boxSize.height()) +
|
| + boundingBox.y();
|
| if (applyTransformOrigin) {
|
| originZ = transformOriginZ();
|
| result.translate3d(originX, originY, originZ);
|
|
|