+2012-06-27 Robert Kroeger <rjkroege@chromium.org>
+
+ [chromium] out-of-order assert in WebViewImpl setDeviceScaleFactor
+ https://bugs.webkit.org/show_bug.cgi?id=90006
+
+ The assert in WebViewImpl::setDeviceScaleFactor should test for non-scaling
+ after we have set both m_DeviceScaleInCompositor and page()->deviceScaleFactor()
+ instead of in between.
+
+ Reviewed by James Robinson.
+
+ * src/WebViewImpl.cpp:
+ (WebKit::WebViewImpl::setDeviceScaleFactor):
+
2012-06-26 Sheriff Bot <webkit.review.bot@gmail.com>
Unreviewed. Rolled DEPS.
page()->setDeviceScaleFactor(scaleFactor);
+ if (!m_layerTreeView.isNull() && m_webSettings->applyDefaultDeviceScaleFactorInCompositor()) {
+ m_deviceScaleInCompositor = page()->deviceScaleFactor();
+ m_layerTreeView.setDeviceScaleFactor(m_deviceScaleInCompositor);
+ }
if (m_deviceScaleInCompositor != 1) {
// Don't allow page scaling when compositor scaling is being used,
// as they are currently incompatible. This means the deviceScale
// needs to match the one in the compositor.
ASSERT(scaleFactor == m_deviceScaleInCompositor);
}
- if (!m_layerTreeView.isNull() && m_webSettings->applyDefaultDeviceScaleFactorInCompositor()) {
- m_deviceScaleInCompositor = page()->deviceScaleFactor();
- m_layerTreeView.setDeviceScaleFactor(m_deviceScaleInCompositor);
- }
}
bool WebViewImpl::isFixedLayoutModeEnabled() const