Title: [125036] trunk/Source/WebKit/blackberry
- Revision
- 125036
- Author
- [email protected]
- Date
- 2012-08-08 07:41:39 -0700 (Wed, 08 Aug 2012)
Log Message
[BlackBerry] Add relayout after updating fixed reported size
https://bugs.webkit.org/show_bug.cgi?id=93116
PR #160059
Patch by Ed Baker <[email protected]> on 2012-08-08
Reviewed by Antonio Gomes.
Reviewed internally by Antonio Gomes.
On an orientation change and after fixed reported size is
updated perform a layout and update the fixed elements after
scrolling. This will recalculate the height and width of
fixed position elements using percentage values with the
new fixed reported size. Otherwise using the old fixed reported
size in the new orientation overflowing or clipping could occur.
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::setViewportSize):
Modified Paths
Diff
Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (125035 => 125036)
--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-08-08 14:40:54 UTC (rev 125035)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-08-08 14:41:39 UTC (rev 125036)
@@ -3916,6 +3916,8 @@
IntRect actualVisibleRect = enclosingIntRect(rotationMatrix.inverse().mapRect(FloatRect(viewportRect)));
m_mainFrame->view()->setFixedReportedSize(actualVisibleRect.size());
m_mainFrame->view()->repaintFixedElementsAfterScrolling();
+ requestLayoutIfNeeded();
+ m_mainFrame->view()->updateFixedElementsAfterScrolling();
}
// We're going to need to send a resize event to _javascript_ because
Modified: trunk/Source/WebKit/blackberry/ChangeLog (125035 => 125036)
--- trunk/Source/WebKit/blackberry/ChangeLog 2012-08-08 14:40:54 UTC (rev 125035)
+++ trunk/Source/WebKit/blackberry/ChangeLog 2012-08-08 14:41:39 UTC (rev 125036)
@@ -1,3 +1,23 @@
+2012-08-08 Ed Baker <[email protected]>
+
+ [BlackBerry] Add relayout after updating fixed reported size
+ https://bugs.webkit.org/show_bug.cgi?id=93116
+ PR #160059
+
+ Reviewed by Antonio Gomes.
+
+ Reviewed internally by Antonio Gomes.
+
+ On an orientation change and after fixed reported size is
+ updated perform a layout and update the fixed elements after
+ scrolling. This will recalculate the height and width of
+ fixed position elements using percentage values with the
+ new fixed reported size. Otherwise using the old fixed reported
+ size in the new orientation overflowing or clipping could occur.
+
+ * Api/WebPage.cpp:
+ (BlackBerry::WebKit::WebPagePrivate::setViewportSize):
+
2012-08-07 Charles Wei <[email protected]>
[BlackBerry] always set PolicyAction to PolicyIgnore if the chrome returns false for acceptNavigationRequest
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes