| Index: third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp
|
| index 4e86f406f69aa50385975341f38500c4a2d8befe..14211fc303085b4f0df91543f71aa0f768526f08 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp
|
| @@ -19,6 +19,22 @@ TransformPaintPropertyNode* TransformPaintPropertyNode::root() {
|
| return root;
|
| }
|
|
|
| +const ScrollPaintPropertyNode*
|
| +TransformPaintPropertyNode::findEnclosingScrollNode() const {
|
| + if (m_scroll)
|
| + return m_scroll.get();
|
| +
|
| + for (const auto* ancestor = parent(); ancestor;
|
| + ancestor = ancestor->parent()) {
|
| + if (const auto* scrollNode = ancestor->scrollNode())
|
| + return scrollNode;
|
| + }
|
| + // The root transform node references the root scroll node so a scroll node
|
| + // should always exist.
|
| + NOTREACHED();
|
| + return nullptr;
|
| +}
|
| +
|
| String TransformPaintPropertyNode::toString() const {
|
| auto transform = String::format(
|
| "parent=%p transform=%s origin=%s flattensInheritedTransform=%s "
|
|
|