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

Unified Diff: Source/web/DevToolsEmulator.cpp

Issue 1285703004: Update css styles after modifying display mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/Page.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698