Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
index 5c587b2da1219ae46817e60a9c7ed7da00919e99..71d2c41dd6db0e480012d4557f73b4bf8c00fcdd 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -1574,14 +1574,14 @@ void FrameView::removeBackgroundAttachmentFixedObject(LayoutObject* object) { |
} |
} |
-void FrameView::addViewportConstrainedObject(LayoutObject* object) { |
+void FrameView::addViewportConstrainedObject(LayoutObject& object) { |
if (!m_viewportConstrainedObjects) { |
m_viewportConstrainedObjects = |
WTF::wrapUnique(new ViewportConstrainedObjectSet); |
} |
- if (!m_viewportConstrainedObjects->contains(object)) { |
- m_viewportConstrainedObjects->insert(object); |
+ if (!m_viewportConstrainedObjects->contains(&object)) { |
+ m_viewportConstrainedObjects->insert(&object); |
if (ScrollingCoordinator* scrollingCoordinator = |
this->scrollingCoordinator()) |
@@ -1589,10 +1589,10 @@ void FrameView::addViewportConstrainedObject(LayoutObject* object) { |
} |
} |
-void FrameView::removeViewportConstrainedObject(LayoutObject* object) { |
+void FrameView::removeViewportConstrainedObject(LayoutObject& object) { |
if (m_viewportConstrainedObjects && |
- m_viewportConstrainedObjects->contains(object)) { |
- m_viewportConstrainedObjects->erase(object); |
+ m_viewportConstrainedObjects->contains(&object)) { |
+ m_viewportConstrainedObjects->erase(&object); |
if (ScrollingCoordinator* scrollingCoordinator = |
this->scrollingCoordinator()) |