| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index f7dc5c041d91a896b180cbc31c47a3c389e76f2e..113f4ceb44bbec3408b8eec179fc4a5ae0702329 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -2949,7 +2949,7 @@ void Document::setViewportDescription(const ViewportDescription& viewportDescrip
|
|
|
| void Document::updateViewportDescription()
|
| {
|
| - if (page() && page()->mainFrame() == frame()) {
|
| + if (frame()->isMainFrame()) {
|
| #ifndef NDEBUG
|
| m_didDispatchViewportPropertiesChanged = true;
|
| #endif
|
|
|