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

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, 8 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: Source/core/page/Screen.cpp
diff --git a/Source/core/page/Screen.cpp b/Source/core/page/Screen.cpp
index 12a6b198ba87088e98c908736cf79bd0c9e1dcaa..d392ae87533f38df51ff90e307586b761eade9b3 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)

Powered by Google App Engine
This is Rietveld 408576698