Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 9d43138631a242d86548ed73b50a38e221697750..d3e722ea31e06128f0fbee9e830a98021e502ce4 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -2865,7 +2865,7 @@ void WebViewImpl::refreshPageScaleFactorAfterLayout() |
void WebViewImpl::updatePageDefinedViewportConstraints(const ViewportDescription& description) |
{ |
- if (!settings()->viewportEnabled() || !page() || !m_size.width || !m_size.height) |
+ if (!settings()->viewportEnabled() || !page() || (!m_size.width && !m_size.height)) |
return; |
ViewportDescription adjustedDescription = description; |