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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1895323002: Viewport apply scroll should be on the document element not scrollingElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 5ba449da09f6838f13fb7d2f535a713d92be2708..19433b1896d94564fb1a5fedae29e4757a4973de 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -593,12 +593,7 @@ void Document::updateViewportApplyScroll()
|| ownerElement())
return;
- Element* newScrollingElement = scrollingElement();
-
- // If there is no scrolling element (in QuirksMode and body is scrollable),
- // install the viewport scroll callback on the <HTML> element.
- if (!newScrollingElement)
- newScrollingElement = m_documentElement;
+ Element* newScrollingElement = m_documentElement;
if (newScrollingElement == m_oldScrollingElement)
return;
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698