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

Unified Diff: Source/web/WebViewImpl.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/web/DevToolsEmulator.cpp ('k') | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index b8ed71c2ffbf1b6a0f134acfbb9a14ffe50fc356..05d1fe6ce297ebed0e79d06e49db7813bac70be4 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1742,10 +1742,8 @@ void WebViewImpl::performResize()
// and thus will not be invalidated in |FrameView::performPreLayoutTasks|.
// Therefore we should force explicit media queries invalidation here.
if (m_devToolsEmulator->deviceEmulationEnabled()) {
- if (Document* document = mainFrameImpl()->frame()->document()) {
- document->styleResolverChanged();
+ if (Document* document = mainFrameImpl()->frame()->document())
document->mediaQueryAffectingValueChanged();
- }
}
}
« no previous file with comments | « Source/web/DevToolsEmulator.cpp ('k') | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698