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

Unified Diff: Source/core/page/Screen.cpp

Issue 14408004: Fix incorrect evaluation of resolution media queries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/page/Screen.h ('k') | Source/core/page/Settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Screen.cpp
diff --git a/Source/core/page/Screen.cpp b/Source/core/page/Screen.cpp
index 9984ba903816ff5d0fb209acfeee64b298a1ac0f..cac544153eddc17a1d2f704db1c29e3cb212c5f9 100644
--- a/Source/core/page/Screen.cpp
+++ b/Source/core/page/Screen.cpp
@@ -46,35 +46,6 @@ Screen::Screen(Frame* frame)
ScriptWrappable::init(this);
}
-unsigned Screen::horizontalDPI() const
-{
- if (!m_frame)
- return 0;
-
- // Used by the testing system, can be set from internals.
- IntSize override = m_frame->page()->settings()->resolutionOverride();
- if (!override.isEmpty())
- return override.width();
-
- // The DPI is defined as dots per CSS inch and thus not device inch.
- return m_frame->page()->deviceScaleFactor() * 96;
-}
-
-unsigned Screen::verticalDPI() const
-{
- // The DPI is defined as dots per CSS inch and thus not device inch.
- if (!m_frame)
- return 0;
-
- // Used by the testing system, can be set from internals.
- IntSize override = m_frame->page()->settings()->resolutionOverride();
- if (!override.isEmpty())
- return override.height();
-
- // The DPI is defined as dots per CSS inch and thus not device inch.
- return m_frame->page()->deviceScaleFactor() * 96;
-}
-
unsigned Screen::height() const
{
if (!m_frame)
« no previous file with comments | « Source/core/page/Screen.h ('k') | Source/core/page/Settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698