Chromium Code Reviews| 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? :-)
|