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

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

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md 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
Index: third_party/WebKit/Source/core/frame/DOMVisualViewport.h
diff --git a/third_party/WebKit/Source/core/frame/DOMVisualViewport.h b/third_party/WebKit/Source/core/frame/DOMVisualViewport.h
index 6f27bb9fb73f7e0d53b9a18534cf28a17060926c..f9c6bb1448970620c588a4e69d61cdd374f8bac0 100644
--- a/third_party/WebKit/Source/core/frame/DOMVisualViewport.h
+++ b/third_party/WebKit/Source/core/frame/DOMVisualViewport.h
@@ -35,6 +35,7 @@
#include "core/dom/ExecutionContext.h"
#include "core/events/EventTarget.h"
#include "platform/heap/Handle.h"
+#include "platform/scroll/ScrollTypes.h"
namespace blink {
@@ -57,10 +58,10 @@ class DOMVisualViewport final : public EventTargetWithInlineData {
const AtomicString& interfaceName() const override;
ExecutionContext* getExecutionContext() const override;
- double scrollLeft();
- double scrollTop();
- double pageX();
- double pageY();
+ float scrollLeft();
+ float scrollTop();
+ float pageX();
+ float pageY();
double clientWidth();
double clientHeight();
double scale();

Powered by Google App Engine
This is Rietveld 408576698