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

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

Issue 2400723002: Early out when setting global root scroller (Closed)
Patch Set: undo errenous patchset Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
index 509cc8627efd3f1f5cdfacd2f5610235bb648734..5bcea2be9e95fcec89ed48dc732d1102b5d26fb2 100644
--- a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
@@ -20,6 +20,9 @@ RootFrameViewport::RootFrameViewport(ScrollableArea& visualViewport,
}
void RootFrameViewport::setLayoutViewport(ScrollableArea& newLayoutViewport) {
+ if (m_layoutViewport.get() == &newLayoutViewport)
+ return;
+
if (m_layoutViewport && m_layoutViewport->scrollAnchor())
m_layoutViewport->scrollAnchor()->setScroller(m_layoutViewport.get());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698