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

Unified Diff: third_party/WebKit/Source/core/loader/EmptyClients.h

Issue 1603253003: Add dedicated windowToViewport method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/loader/EmptyClients.h
diff --git a/third_party/WebKit/Source/core/loader/EmptyClients.h b/third_party/WebKit/Source/core/loader/EmptyClients.h
index 5c56852cac0f3ef98ddebd861ba8285ab79f14ba..e55f2b56f0b14cd3974b670c5367963fee8ec702 100644
--- a/third_party/WebKit/Source/core/loader/EmptyClients.h
+++ b/third_party/WebKit/Source/core/loader/EmptyClients.h
@@ -131,6 +131,7 @@ public:
void scheduleAnimation(Widget*) override {}
IntRect viewportToScreen(const IntRect& r) const override { return r; }
+ float windowToViewport(float scalar) const override { return scalar; }
WebScreenInfo screenInfo() const override { return WebScreenInfo(); }
void contentsSizeChanged(LocalFrame*, const IntSize&) const override {}

Powered by Google App Engine
This is Rietveld 408576698