Index: third_party/WebKit/Source/core/layout/ScrollAnchor.cpp |
diff --git a/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp b/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp |
index fdd8e69a9b504b23314bf356dc0de41d88653353..84badd5c5795f83e255c1b6f76b63f61b0f38687 100644 |
--- a/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp |
+++ b/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp |
@@ -119,9 +119,9 @@ static bool candidateMayMoveWithScroller(const LayoutObject* candidate, |
return false; |
} |
- bool skippedByContainerLookup = false; |
- candidate->container(scrollerLayoutBox(scroller), &skippedByContainerLookup); |
- return !skippedByContainerLookup; |
+ LayoutObject::AncestorSkipInfo skipInfo(scrollerLayoutBox(scroller)); |
+ candidate->container(&skipInfo); |
+ return !skipInfo.ancestorSkipped(); |
} |
ScrollAnchor::ExamineResult ScrollAnchor::examine( |