12013-01-30 Jacky Jiang <zhajiang@rim.com>
2
3 [BlackBerry] Zooming in during page load of non-scalable webpage results in fixed magnification
4 https://bugs.webkit.org/show_bug.cgi?id=108252
5
6 Reviewed by NOBODY (OOPS!).
7 Internally reviewed by Jakob Petsovits.
8
9 PR: 284828
10 We got float layoutSize(342.284122, 521.448467) and
11 m_maximumScale(2.243750) after computing viewport meta based on the
12 device pixel ratio and laid out the contents at IntSize(342, 521).
13 Therefore, zoomToFitScale(2.245681) would be a bit larger than
14 m_maximumScale based on that contents size and resulted in
15 maximumScale()!=minimumScale(), which made the non-scalable page
16 scalable.
17 The patch basically ignores the rounding error and returns
18 zoomToFitScale instead.
19
20 * Api/WebPage.cpp:
21 (BlackBerry::WebKit::WebPagePrivate::maximumScale):
22