RESOLVED FIXED 119365
[BlackBerry] Page scrolls when width equals device width and initial scale is greater than 0.92
https://bugs.webkit.org/show_bug.cgi?id=119365
Summary [BlackBerry] Page scrolls when width equals device width and initial scale is...
Jacky Jiang
Reported 2013-07-31 17:53:14 PDT
JIRA 445423.
Attachments
Patch (5.91 KB, patch)
2013-07-31 18:22 PDT, Jacky Jiang
no flags
Patch (5.87 KB, patch)
2013-07-31 19:00 PDT, Jacky Jiang
rwlbuis: review+
Jacky Jiang
Comment 1 2013-07-31 18:22:56 PDT
Rob Buis
Comment 2 2013-07-31 18:34:59 PDT
Comment on attachment 207891 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=207891&action=review Looks good in general. > Source/WebKit/blackberry/Api/WebPage.cpp:1704 > + float idealContentsHeight = static_cast<float>(this->transformedActualVisibleSize().height()) / devicePixelRatio; Are you sure this-> is needed here? > Source/WebKit/blackberry/Api/WebPage.cpp:1708 > + return false; You could replace the if with a return, and then you don't need the return false; statement.
Jacky Jiang
Comment 3 2013-07-31 18:41:43 PDT
Comment on attachment 207891 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=207891&action=review >> Source/WebKit/blackberry/Api/WebPage.cpp:1704 >> + float idealContentsHeight = static_cast<float>(this->transformedActualVisibleSize().height()) / devicePixelRatio; > > Are you sure this-> is needed here? Oops, it's not needed. Previously I was writing something like "transformedActualVisibleSize = this->transformedActualVisibleSize()" and I forgot to remove "this" when I changed the code. I will remove it. >> Source/WebKit/blackberry/Api/WebPage.cpp:1708 >> + return false; > > You could replace the if with a return, and then you don't need the return false; statement. Good idea. Will update.
Jacky Jiang
Comment 4 2013-07-31 19:00:31 PDT
Rob Buis
Comment 5 2013-07-31 19:05:03 PDT
Comment on attachment 207894 [details] Patch Excellent! :)
Jacky Jiang
Comment 6 2013-07-31 19:21:02 PDT
Note You need to log in before you can comment on or make changes to this bug.