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

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

Issue 2431473003: Intersection Observer support for OOPIF (Closed)
Patch Set: Enabled test, fixed bugs Created 4 years, 1 month 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/FrameView.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index 64b7372f33952e86bdeab428f10cd522dea8979c..cbd84efd1fc270d43870475f39d35652cd811cfa 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -738,6 +738,14 @@ class CORE_EXPORT FrameView final
// Only for SPv2.
std::unique_ptr<JSONObject> compositedLayersAsJSON(LayerTreeFlags);
+ // 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();
+
+ IntRect viewportIntersection();
+
protected:
// Scroll the content via the compositor.
bool scrollContentsFastPath(const IntSize& scrollDelta);
@@ -1089,6 +1097,8 @@ class CORE_EXPORT FrameView final
bool m_suppressAdjustViewSize;
bool m_allowsLayoutInvalidationAfterLayoutClean;
+ IntRect m_remoteViewportIntersection;
+
// For testing.
struct ObjectPaintInvalidation {
String name;

Powered by Google App Engine
This is Rietveld 408576698