Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 18546003: Fix tests to avoid page scale reset when setting page scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed more tests, hopefully that's all (on Linux). Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/WebViewImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebViewImpl.cpp b/Source/WebKit/chromium/src/WebViewImpl.cpp
index b25d28c3ccb25f508abd37c2bd05822b4d763bfd..fb10a8511d8a4c91ef862c5ded3181376a066fbd 100644
--- a/Source/WebKit/chromium/src/WebViewImpl.cpp
+++ b/Source/WebKit/chromium/src/WebViewImpl.cpp
@@ -2871,6 +2871,9 @@ void WebViewImpl::setPageScaleFactor(float scaleFactor, const WebPoint& origin)
scaleFactor = clampPageScaleFactorToLimits(scaleFactor);
newScrollOffset = clampOffsetAtScale(newScrollOffset, scaleFactor);
+ // Since we are about to explicitly set the page scale factor, this should
+ // cancel out any outstanding reset request.
+ m_pageScaleConstraintsSet.setNeedsReset(false);
aelias_OOO_until_Jul13 2013/07/02 22:59:33 This is a somewhat subtle initialization-timing ch
wjmaclean 2013/07/03 14:12:23 OK, but are we sure there's no way this "subtle ti
aelias_OOO_until_Jul13 2013/07/08 00:53:20 I don't currently know of a bug here, but it's pos
page()->setPageScaleFactor(scaleFactor, newScrollOffset);
}

Powered by Google App Engine
This is Rietveld 408576698