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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrameView.cpp

Issue 2910023002: Ensure RemoteViewportIntersection rect persists across frame navigations (Closed)
Patch Set: dcheng comments addressed Created 3 years, 7 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/frame/LocalFrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrameView.cpp b/third_party/WebKit/Source/core/frame/LocalFrameView.cpp
index eb769944bd98255ff66d56033fe655caa5df2d80..b47d195420478685d8d524d77728869f075e9cad 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrameView.cpp
@@ -5319,16 +5319,8 @@ String LocalFrameView::MainThreadScrollingReasonsAsText() const {
return result;
}
-void LocalFrameView::SetViewportIntersectionFromParent(
- const IntRect& viewport_intersection) {
- if (remote_viewport_intersection_ != viewport_intersection) {
- remote_viewport_intersection_ = viewport_intersection;
- ScheduleAnimation();
- }
-}
-
IntRect LocalFrameView::RemoteViewportIntersection() {
- IntRect intersection(remote_viewport_intersection_);
+ IntRect intersection(GetFrame().RemoteViewportIntersection());
intersection.Move(ScrollOffsetInt());
return intersection;
}

Powered by Google App Engine
This is Rietveld 408576698