| 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 a2325fe77835be20065d047ae322709a7a324c04..fd33cd999404a3403788be43f5c2715485e2e652 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| @@ -222,6 +222,12 @@ void PaintPropertyTreeBuilder::buildTreeNodes(
|
| void PaintPropertyTreeBuilder::updatePaintOffsetTranslation(
|
| const LayoutObject& object,
|
| PaintPropertyTreeBuilderContext& context) {
|
| + // LayoutView's paint offset is updated in the FrameView property update.
|
| + if (object.isLayoutView()) {
|
| + DCHECK(context.current.paintOffset == LayoutPoint());
|
| + return;
|
| + }
|
| +
|
| if (object.isBoxModelObject() &&
|
| context.current.paintOffset != LayoutPoint()) {
|
| // TODO(trchen): Eliminate PaintLayer dependency.
|
| @@ -254,9 +260,6 @@ void PaintPropertyTreeBuilder::updatePaintOffsetTranslation(
|
| }
|
| }
|
|
|
| - if (object.isLayoutView())
|
| - return;
|
| -
|
| if (auto* properties = object.getMutableForPainting().paintProperties())
|
| properties->clearPaintOffsetTranslation();
|
| }
|
|
|