| Index: Source/core/frame/FrameView.cpp
|
| diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
|
| index 205b4f3b9877d7573ccc2f6783083c628df5f03a..143ed8bf73066591bce2624b5530302f860a1410 100644
|
| --- a/Source/core/frame/FrameView.cpp
|
| +++ b/Source/core/frame/FrameView.cpp
|
| @@ -1218,7 +1218,8 @@ void FrameView::addPartToUpdate(LayoutEmbeddedObject& object)
|
| void FrameView::setDisplayMode(WebDisplayMode mode)
|
| {
|
| m_displayMode = mode;
|
| - m_frame->document()->mediaQueryAffectingValueChanged();
|
| + if (m_frame->document())
|
| + m_frame->document()->mediaQueryAffectingValueChanged();
|
| }
|
|
|
| void FrameView::setMediaType(const AtomicString& mediaType)
|
|
|