Changeset 139110 in webkit
- Timestamp:
- Jan 8, 2013 2:03:24 PM (11 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r138979 r139110 1480 1480 1481 1481 #if ENABLE(FULLSCREEN_API) 1482 // If we are in fullscreen video mode, and we change the FrameView::viewportRect, 1483 // we need to adjust the media container to the new size. 1484 if (m_fullscreenVideoNode) { 1485 Document* document = m_fullscreenVideoNode->document(); 1486 ASSERT(document); 1487 ASSERT(document->fullScreenRenderer()); 1488 1489 int width = m_mainFrame->view()->visibleContentRect().size().width(); 1490 document->fullScreenRenderer()->style()->setWidth(Length(width, Fixed)); 1491 } 1482 adjustFullScreenElementDimensionsIfNeeded(); 1492 1483 #endif 1493 1484 } … … 1991 1982 m_backingStore->d->scrollChanged(pos); 1992 1983 m_client->scrollChanged(); 1984 1985 #if ENABLE(FULLSCREEN_API) 1986 adjustFullScreenElementDimensionsIfNeeded(); 1987 #endif 1993 1988 } 1994 1989 -
trunk/Source/WebKit/blackberry/Api/WebPage_p.h
r137743 r139110 220 220 void enterFullScreenForElement(WebCore::Element*); 221 221 void exitFullScreenForElement(WebCore::Element*); 222 void adjustFullScreenElementDimensionsIfNeeded(); 222 223 #endif 223 224 void contentsSizeChanged(const WebCore::IntSize&); -
trunk/Source/WebKit/blackberry/ChangeLog
r139078 r139110 1 2013-01-08 Jacky Jiang <zhajiang@rim.com> 2 3 [Blackberry][FullScreen] Create a helper method to adjust the fullscreen renderer dimensions 4 https://bugs.webkit.org/show_bug.cgi?id=91748 5 6 Reviewed by Antonio Gomes. 7 8 PR: 195524 9 The was originally from Antonio Gomes on PR195524. Bug 105488 has 10 partially upstreamed that patch. This patch upstreams the rest of it. 11 12 * Api/WebPage.cpp: 13 (BlackBerry::WebKit::WebPagePrivate::updateViewportSize): 14 (BlackBerry::WebKit::WebPagePrivate::notifyTransformedScrollChanged): 15 * Api/WebPage_p.h: 16 (WebPagePrivate): 17 * WebCoreSupport/ChromeClientBlackBerry.cpp: 18 (WebCore::ChromeClientBlackBerry::fullScreenRendererChanged): 19 1 20 2013-01-08 Mark Lam <mark.lam@apple.com> 2 21 -
trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp
r139078 r139110 766 766 } 767 767 768 void ChromeClientBlackBerry::fullScreenRendererChanged(RenderBox* fullScreenRenderer) 769 { 770 // Once we go fullscreen using the new FULLSCREEN_API code path, we have to take into account 771 // our port specific page scaling. 772 if (fullScreenRenderer) { 773 int width = m_webPagePrivate->m_mainFrame->view()->visibleContentRect().size().width(); 774 fullScreenRenderer->style()->setWidth(Length(width, Fixed)); 775 } 768 void ChromeClientBlackBerry::fullScreenRendererChanged(RenderBox*) 769 { 770 m_webPagePrivate->adjustFullScreenElementDimensionsIfNeeded(); 776 771 } 777 772 #endif
Note: See TracChangeset
for help on using the changeset viewer.