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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2919903003: Ensure RemoteViewportIntersection rect persists across frame navigations (Closed)
Patch Set: 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/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index 7a2942313edf6477ffb0228a32be99aa8c74386c..5355212327e5b848539f006dbd8109c2be8b537b 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -253,6 +253,12 @@ class CORE_EXPORT LocalFrame final : public Frame,
// focused element or passed node into explicit methods.
WebPluginContainerBase* GetWebPluginContainerBase(Node* = nullptr) const;
+ // Called on a view for a LocalFrame with a RemoteFrame parent. This makes
+ // viewport intersection available that accounts for remote ancestor frames
+ // and their respective scroll positions, clips, etc.
+ void SetViewportIntersectionFromParent(const IntRect&);
+ IntRect RemoteViewportIntersection() { return remote_viewport_intersection_; }
+
private:
friend class FrameNavigationDisabler;
@@ -301,6 +307,8 @@ class CORE_EXPORT LocalFrame final : public Frame,
InterfaceProvider* const interface_provider_;
InterfaceRegistry* const interface_registry_;
+
+ IntRect remote_viewport_intersection_;
};
inline FrameLoader& LocalFrame::Loader() const {
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698