| Index: Source/core/css/MediaQueryEvaluator.cpp
|
| diff --git a/Source/core/css/MediaQueryEvaluator.cpp b/Source/core/css/MediaQueryEvaluator.cpp
|
| index 01800e443c81384c0085ecf375fc1192d7509b1b..bb9c74854276b44bbee8b21ad56e1a6029e84c43 100644
|
| --- a/Source/core/css/MediaQueryEvaluator.cpp
|
| +++ b/Source/core/css/MediaQueryEvaluator.cpp
|
| @@ -362,9 +362,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
|
| @@ -376,9 +374,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
|
|
|