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

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: 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') | Source/web/tests/WebViewTest.cpp » ('J')
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..ec9e0dd00866508bcbc443bbac8ac0d43a267a7f 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1195,8 +1195,10 @@ void FrameView::addPartToUpdate(LayoutEmbeddedObject& object)
void FrameView::setDisplayMode(WebDisplayMode mode)
{
m_displayMode = mode;
- if (m_frame->document())
+ if (m_frame->document()) {
Mike West 2015/08/17 15:29:06 Can we do this only if |mode| is different from |m
a.renevier 2015/08/17 17:25:57 Done.
m_frame->document()->mediaQueryAffectingValueChanged();
+ m_frame->document()->styleResolverChanged();
+ }
}
void FrameView::setMediaType(const AtomicString& mediaType)
« no previous file with comments | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | Source/web/tests/WebViewTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698