--- a/layout/base/RestyleManager.cpp
+++ b/layout/base/RestyleManager.cpp
@@ -1063,32 +1063,17 @@ static void DoApplyRenderingChangeToTree
}
}
if ((aChange & nsChangeHint_UpdateTransformLayer) &&
aFrame->IsTransformed()) {
// Note: All the transform-like properties should map to the same
// layer activity index, so does the restyle count. Therefore, using
// eCSSProperty_transform should be fine.
ActiveLayerTracker::NotifyRestyle(aFrame, eCSSProperty_transform);
- // If we're not already going to do an invalidating paint, see
- // if we can get away with only updating the transform on a
- // layer for this frame, and not scheduling an invalidating
- // paint.
- if (!needInvalidatingPaint) {
- nsDisplayItem::Layer* layer;
- needInvalidatingPaint |= !aFrame->TryUpdateTransformOnly(&layer);
-
- if (!needInvalidatingPaint) {
- // Since we're not going to paint, we need to resend animation
- // data to the layer.
- MOZ_ASSERT(layer, "this can't happen if there's no layer");
- nsDisplayListBuilder::AddAnimationsAndTransitionsToLayer(
- layer, nullptr, nullptr, aFrame, DisplayItemType::TYPE_TRANSFORM);
- }
- }
+ needInvalidatingPaint = true;
}
if (aChange & nsChangeHint_ChildrenOnlyTransform) {
needInvalidatingPaint = true;
nsIFrame* childFrame = GetFrameForChildrenOnlyTransformHint(aFrame)
->PrincipalChildList()
.FirstChild();
for (; childFrame; childFrame = childFrame->GetNextSibling()) {
// Note: All the transform-like properties should map to the same