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

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

Issue 2101393002: Make visualViewport.scrollTop/Left readonly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/DOMVisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp b/third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp
index 620fe5f4fdaf3cd9e73b11802c160e0ec15c4b87..2eae2a1878b4e91e7ccdab438068bb4be18efcf3 100644
--- a/third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp
@@ -85,26 +85,6 @@ double DOMVisualViewport::scrollTop()
return 0;
}
-void DOMVisualViewport::setScrollLeft(double x)
-{
- LocalFrame* frame = m_window->frame();
- if (!frame || !frame->isMainFrame())
- return;
-
- if (FrameHost* host = frame->host())
- host->visualViewport().setScrollLeft(x);
-}
-
-void DOMVisualViewport::setScrollTop(double y)
-{
- LocalFrame* frame = m_window->frame();
- if (!frame || !frame->isMainFrame())
- return;
-
- if (FrameHost* host = frame->host())
- host->visualViewport().setScrollTop(y);
-}
-
double DOMVisualViewport::clientWidth()
{
LocalFrame* frame = m_window->frame();
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMVisualViewport.h ('k') | third_party/WebKit/Source/core/frame/VisualViewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698