| Index: Source/web/DevToolsEmulator.cpp
|
| diff --git a/Source/web/DevToolsEmulator.cpp b/Source/web/DevToolsEmulator.cpp
|
| index 0a43dd81c3189993659d69f4a2ac97dd5e74978e..67a3f3a45b0b5ddb63d9817c16df8a57c96cd722 100644
|
| --- a/Source/web/DevToolsEmulator.cpp
|
| +++ b/Source/web/DevToolsEmulator.cpp
|
| @@ -179,10 +179,8 @@ void DevToolsEmulator::enableDeviceEmulation(const WebDeviceEmulationParams& par
|
|
|
| m_webViewImpl->setCompositorDeviceScaleFactorOverride(params.deviceScaleFactor);
|
| m_webViewImpl->setRootLayerTransform(WebSize(params.offset.x, params.offset.y), params.scale);
|
| - if (Document* document = m_webViewImpl->mainFrameImpl()->frame()->document()) {
|
| - document->styleResolverChanged();
|
| + if (Document* document = m_webViewImpl->mainFrameImpl()->frame()->document())
|
| document->mediaQueryAffectingValueChanged();
|
| - }
|
| }
|
|
|
| void DevToolsEmulator::disableDeviceEmulation()
|
| @@ -198,10 +196,8 @@ void DevToolsEmulator::disableDeviceEmulation()
|
| m_webViewImpl->setCompositorDeviceScaleFactorOverride(0.f);
|
| m_webViewImpl->setRootLayerTransform(WebSize(0.f, 0.f), 1.f);
|
| m_webViewImpl->setPageScaleFactor(1.f);
|
| - if (Document* document = m_webViewImpl->mainFrameImpl()->frame()->document()) {
|
| - document->styleResolverChanged();
|
| + if (Document* document = m_webViewImpl->mainFrameImpl()->frame()->document())
|
| document->mediaQueryAffectingValueChanged();
|
| - }
|
| }
|
|
|
| void DevToolsEmulator::enableMobileEmulation()
|
|
|