| Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| index 4bf93cac73f42532baa478d26565475ecdfe23cc..aabe1c5f5f715dabeeb6687319411f2a189aab07 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -387,8 +387,13 @@ void PaintLayer::updateTransformationMatrix() {
|
|
|
| void PaintLayer::updateTransform(const ComputedStyle* oldStyle,
|
| const ComputedStyle& newStyle) {
|
| - if (oldStyle && newStyle.transformDataEquivalent(*oldStyle))
|
| + // It's possible for the old and new style transform data to be equivalent
|
| + // while hasTransform() differs, as it checks a number of conditions aside
|
| + // from just the matrix, including but not limited to animation state.
|
| + if (oldStyle && oldStyle->hasTransform() == newStyle.hasTransform() &&
|
| + newStyle.transformDataEquivalent(*oldStyle)) {
|
| return;
|
| + }
|
|
|
| // hasTransform() on the layoutObject is also true when there is
|
| // transform-style: preserve-3d or perspective set, so check style too.
|
|
|