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

Unified Diff: third_party/WebKit/Source/core/page/ChromeClient.cpp

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/page/ChromeClient.cpp
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.cpp b/third_party/WebKit/Source/core/page/ChromeClient.cpp
index ae5565f2d1f388b9b0ae063946e49cbb16d840a6..5edee8ddfab1b61a466c3eab240d2344a2979a47 100644
--- a/third_party/WebKit/Source/core/page/ChromeClient.cpp
+++ b/third_party/WebKit/Source/core/page/ChromeClient.cpp
@@ -191,15 +191,4 @@ void ChromeClient::print(LocalFrame* frame)
printDelegate(frame);
}
-float ChromeClient::screenToViewport(float length) const
-{
- // Convert the thickness in the screen (dip) to the viewport by applying
- // the invert of the viewport to screen scale.
- // TODO(oshima): Add native implementation instead of using viewportToScreen.
-
- IntRect inScreen(0, 0, 100, 0);
- inScreen = viewportToScreen(inScreen);
- return length * 100.f / inScreen.width();
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698