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

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

Issue 2634493007: Introduce LayoutObject::AncestorSkipInfo. (Closed)
Patch Set: Turn AncestorSkipInfo into a proper class with private data members. Only look for filters when tol… 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698