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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 1285703004: Update css styles after modifying display mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated patch 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 | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index a286581a1cd1a4039e9294a473e55832fd39dc5c..d663dc5990863b7d14e04f4a2d722ee8ed1eeedf 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1194,9 +1194,15 @@ void FrameView::addPartToUpdate(LayoutEmbeddedObject& object)
void FrameView::setDisplayMode(WebDisplayMode mode)
{
+ if (mode == m_displayMode)
+ return;
+
m_displayMode = mode;
- if (m_frame->document())
+
+ if (m_frame->document()) {
m_frame->document()->mediaQueryAffectingValueChanged();
+ m_frame->document()->styleResolverChanged();
Timothy Loh 2015/08/18 04:12:20 Perhaps this call should be inside mediaQueryAffec
+ }
}
void FrameView::setMediaType(const AtomicString& mediaType)
Timothy Loh 2015/08/18 04:12:20 Can we fix this one too? :-)
« no previous file with comments | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698