2012-01-31 Fady Samuel <fsamuel@chromium.org>
+ [Chromium] ChromeClientImpl::dispatchViewportPropertiesDidChange is repeatedly called in Google News
+ https://bugs.webkit.org/show_bug.cgi?id=77429
+
+ Reviewed by Darin Fisher.
+
+ m_webView->isPageScaleFactorSet() is tested in ChromeClientImpl::layoutUpdated, and it is never true,
+ because WebViewImpl::setPageScaleFactorPreservingScrollOffset is called repeatedly and exits early
+ and thus never calls WebViewImpl::setPageScaleFactor which sets the flag.
+
+ The simplest solution is to simply get rid of the early return in
+ WebViewImpl::setPageScaleFactorPreservingScrollOffset.
+
+ * src/WebViewImpl.cpp:
+ (WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset):
+
+2012-01-31 Fady Samuel <fsamuel@chromium.org>
+
[Chromium] Expose setLayoutFallbackWidth as a WebSetting
https://bugs.webkit.org/show_bug.cgi?id=77431
{
// Pick a scale factor that is within the expected limits
scaleFactor = clampPageScaleFactorToLimits(scaleFactor);
- if (scaleFactor == pageScaleFactor())
- return;
IntPoint scrollOffsetAtNewScale(mainFrame()->scrollOffset().width, mainFrame()->scrollOffset().height);
float deltaScale = scaleFactor / pageScaleFactor();