| Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| index daad53c7bd927931e14cb6edae7f2f62659eb14a..9e2156318c6be90ae3055559196e06be0d503060 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| @@ -218,13 +218,8 @@ void PaintPropertyTreeBuilder::updatePaintOffsetTranslation(
|
| usesPaintOffsetTranslation = true;
|
| } else if (object.isBoxModelObject() &&
|
| context.current.paintOffset != LayoutPoint()) {
|
| - // TODO(trchen): Eliminate PaintLayer dependency.
|
| - // TODO(chrishtr): When changing the condition here, make sure to update
|
| - // the condition in LayoutBoxModelObject::styleDidChange() above
|
| - // setNeedsPaintPropertyUpdate().
|
| PaintLayer* layer = toLayoutBoxModelObject(object).layer();
|
| - if (layer &&
|
| - layer->paintsWithTransform(GlobalPaintFlattenCompositingLayers))
|
| + if (layer && layer->paintsWithTransform(GlobalPaintNormalPhase))
|
| usesPaintOffsetTranslation = true;
|
| }
|
|
|
|
|