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

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

Issue 23187005: [DevTools] Use device metrics emulation implemented in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Another rebase Created 7 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
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | Source/core/platform/ScrollView.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 d5e933110fea500ada18ba82b3d0590578a64a41..a36a8bca8e1fc296e19a6f71aee5e3cfcb601ee3 100644
--- a/Source/core/page/Screen.cpp
+++ b/Source/core/page/Screen.cpp
@@ -48,18 +48,14 @@ unsigned Screen::height() const
{
if (!m_frame)
return 0;
- long height = static_cast<long>(screenRect(m_frame->view()).height());
- InspectorInstrumentation::applyScreenHeightOverride(m_frame, &height);
- return static_cast<unsigned>(height);
+ return static_cast<unsigned>(screenRect(m_frame->view()).height());
}
unsigned Screen::width() const
{
if (!m_frame)
return 0;
- long width = static_cast<long>(screenRect(m_frame->view()).width());
- InspectorInstrumentation::applyScreenWidthOverride(m_frame, &width);
- return static_cast<unsigned>(width);
+ return static_cast<unsigned>(screenRect(m_frame->view()).width());
}
unsigned Screen::colorDepth() const
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | Source/core/platform/ScrollView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698