Index: Source/core/css/MediaQueryEvaluator.cpp |
diff --git a/Source/core/css/MediaQueryEvaluator.cpp b/Source/core/css/MediaQueryEvaluator.cpp |
index d4eaa3f2890dc75004a52102629ddfc3c5e64077..3002abbe9f6d0339eb14034d0593d77f70e211db 100644 |
--- a/Source/core/css/MediaQueryEvaluator.cpp |
+++ b/Source/core/css/MediaQueryEvaluator.cpp |
@@ -359,9 +359,7 @@ static bool deviceHeightMediaFeatureEval(CSSValue* value, RenderStyle* style, Fr |
if (value) { |
FloatRect sg = screenRect(frame->page()->mainFrame()->view()); |
int length; |
- long height = sg.height(); |
- InspectorInstrumentation::applyScreenHeightOverride(frame, &height); |
- return computeLength(value, !frame->document()->inQuirksMode(), style, length) && compareValue(static_cast<int>(height), length, op); |
+ return computeLength(value, !frame->document()->inQuirksMode(), style, length) && compareValue(static_cast<int>(sg.height()), length, op); |
} |
// ({,min-,max-}device-height) |
// assume if we have a device, assume non-zero |
@@ -373,9 +371,7 @@ static bool deviceWidthMediaFeatureEval(CSSValue* value, RenderStyle* style, Fra |
if (value) { |
FloatRect sg = screenRect(frame->page()->mainFrame()->view()); |
int length; |
- long width = sg.width(); |
- InspectorInstrumentation::applyScreenWidthOverride(frame, &width); |
- return computeLength(value, !frame->document()->inQuirksMode(), style, length) && compareValue(static_cast<int>(width), length, op); |
+ return computeLength(value, !frame->document()->inQuirksMode(), style, length) && compareValue(static_cast<int>(sg.width()), length, op); |
} |
// ({,min-,max-}device-width) |
// assume if we have a device, assume non-zero |