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

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

Issue 2692853016: Change PaintLayer::m_layoutObject to a reference. (Closed)
Patch Set: Added TODO Created 3 years, 10 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/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())
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698