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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.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/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index e2df524c5b30e79aab837bc13b00b5901bc64831..be793c5d5676d71ebe50825db5cdd3d996897d09 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -240,26 +240,6 @@ double VisualViewport::scrollTop()
return adjustScrollForAbsoluteZoom(visibleRect().y(), mainFrame()->pageZoomFactor());
}
-void VisualViewport::setScrollLeft(double x)
-{
- if (!mainFrame())
- return;
-
- updateStyleAndLayoutIgnorePendingStylesheets();
-
- setLocation(FloatPoint(x * mainFrame()->pageZoomFactor(), location().y()));
-}
-
-void VisualViewport::setScrollTop(double y)
-{
- if (!mainFrame())
- return;
-
- updateStyleAndLayoutIgnorePendingStylesheets();
-
- setLocation(FloatPoint(location().x(), y * mainFrame()->pageZoomFactor()));
-}
-
double VisualViewport::clientWidth()
{
if (!mainFrame())
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.h ('k') | third_party/WebKit/Source/core/frame/VisualViewport.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698