Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: third_party/WebKit/Source/core/layout/ScrollAnchor.cpp

Issue 2634493007: Introduce LayoutObject::AncestorSkipInfo. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..ea3ea54877fd0cc0bf98dab992d3364c78aef898 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(

Powered by Google App Engine
This is Rietveld 408576698