Index: third_party/WebKit/Source/core/css/MediaValues.cpp |
diff --git a/third_party/WebKit/Source/core/css/MediaValues.cpp b/third_party/WebKit/Source/core/css/MediaValues.cpp |
index c35e2947008f95623fe44b683c5b502d28847eb7..5d6f585e92ea4bdcc3db2f190887a5f20f90cbe4 100644 |
--- a/third_party/WebKit/Source/core/css/MediaValues.cpp |
+++ b/third_party/WebKit/Source/core/css/MediaValues.cpp |
@@ -32,16 +32,12 @@ MediaValues* MediaValues::createDynamicIfFrameExists(LocalFrame* frame) { |
double MediaValues::calculateViewportWidth(LocalFrame* frame) { |
ASSERT(frame && frame->view() && frame->document()); |
- int viewportWidth = frame->view()->layoutSize(IncludeScrollbars).width(); |
- return adjustDoubleForAbsoluteZoom( |
- viewportWidth, frame->document()->layoutViewItem().styleRef()); |
+ return frame->view()->viewportSizeForMediaQueries().width(); |
} |
double MediaValues::calculateViewportHeight(LocalFrame* frame) { |
ASSERT(frame && frame->view() && frame->document()); |
- int viewportHeight = frame->view()->layoutSize(IncludeScrollbars).height(); |
- return adjustDoubleForAbsoluteZoom( |
- viewportHeight, frame->document()->layoutViewItem().styleRef()); |
+ return frame->view()->viewportSizeForMediaQueries().height(); |
} |
int MediaValues::calculateDeviceWidth(LocalFrame* frame) { |