Changeset 110076 in webkit
- Timestamp:
- Mar 7, 2012 11:23:44 AM (12 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r109926 r110076 3379 3379 void WebPagePrivate::setDefaultLayoutSize(const IntSize& size) 3380 3380 { 3381 if (size == m_defaultLayoutSize)3382 return;3383 3384 3381 IntSize screenSize = Platform::Graphics::Screen::primaryScreen()->size(); 3385 3382 ASSERT(size.width() <= screenSize.width() && size.height() <= screenSize.height()); 3386 3383 m_defaultLayoutSize = size.expandedTo(minimumLayoutSize).shrunkTo(screenSize); 3387 3388 bool needsLayout = setViewMode(viewMode()); 3384 } 3385 3386 void WebPage::setDefaultLayoutSize(int width, int height) 3387 { 3388 IntSize size(width, height); 3389 if (size == d->m_defaultLayoutSize) 3390 return; 3391 3392 d->setDefaultLayoutSize(size); 3393 bool needsLayout = d->setViewMode(d->viewMode()); 3389 3394 if (needsLayout) { 3390 setNeedsLayout(); 3391 if (!isLoading()) 3392 requestLayoutIfNeeded(); 3393 } 3394 } 3395 3396 void WebPage::setDefaultLayoutSize(int width, int height) 3397 { 3398 IntSize size(width, height); 3399 d->setDefaultLayoutSize(size); 3395 d->setNeedsLayout(); 3396 if (!d->isLoading()) 3397 d->requestLayoutIfNeeded(); 3398 } 3400 3399 } 3401 3400 -
trunk/Source/WebKit/blackberry/ChangeLog
r110023 r110076 1 2012-03-07 Jacky Jiang <zhajiang@rim.com> 2 3 [BlackBerry] WebKit rendering problem when show/hide VKB 4 https://bugs.webkit.org/show_bug.cgi?id=80448 5 RIM PR: 141727 6 7 Reviewed by Antonio Gomes. 8 9 When setting viewport size, layout happens inside 10 WebPagePrivate::setDefaultLayoutSize(), in this way, the layout is 11 outside of the code path of "needsLayout" so that the contents are 12 not rendered into the backing store. This is a regression of r108718, 13 switch back to do the layout inside the public API 14 WebPage::setDefaultLayoutSize(). 15 16 We haven't upstreamed the manual tests directory yet, therefore, 17 the new manual test case will be upstreamed later. 18 19 * Api/WebPage.cpp: 20 (BlackBerry::WebKit::WebPagePrivate::setDefaultLayoutSize): 21 (BlackBerry::WebKit::WebPage::setDefaultLayoutSize): 22 1 23 2012-03-06 Lianghui Chen <liachen@rim.com> 2 24
Note: See TracChangeset
for help on using the changeset viewer.