| 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 4e536688394b1b4dc167976972c0f4081097a937..146c07f8474445510f382a94eccf50f31a22c903 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -338,20 +338,22 @@ bool PaintLayer::sticksToViewport() const {
|
| // An option for improving this is to cache the nearest scroll node in
|
| // the local border box properties.
|
| if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
|
| - const auto* viewProperties = layoutObject().view()->paintProperties();
|
| + const auto* viewBorderBoxProperties =
|
| + layoutObject().view()->localBorderBoxProperties();
|
| const ScrollPaintPropertyNode* ancestorTargetScrollNode;
|
| if (layoutObject().style()->position() == EPosition::kFixed) {
|
| - ancestorTargetScrollNode = viewProperties->localBorderBoxProperties()
|
| - ->transform()
|
| - ->findEnclosingScrollNode();
|
| + ancestorTargetScrollNode =
|
| + viewBorderBoxProperties->transform()->findEnclosingScrollNode();
|
| } else {
|
| - ancestorTargetScrollNode = viewProperties->contentsProperties()
|
| + ancestorTargetScrollNode = layoutObject()
|
| + .view()
|
| + ->contentsProperties()
|
| ->transform()
|
| ->findEnclosingScrollNode();
|
| }
|
|
|
| - const auto* properties = layoutObject().paintProperties();
|
| - const auto* transform = properties->localBorderBoxProperties()->transform();
|
| + const auto* transform =
|
| + layoutObject().localBorderBoxProperties()->transform();
|
| return transform->findEnclosingScrollNode() == ancestorTargetScrollNode;
|
| }
|
|
|
|
|