Changeset 57631 in webkit
- Timestamp:
- Apr 14, 2010 9:04:50 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r57627 r57631 1 2010-04-14 Luiz Agostini <luiz.agostini@openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Changing view mode names due to specification changes 6 https://bugs.webkit.org/show_bug.cgi?id=37615 7 8 specification: http://dev.w3.org/2006/waf/widgets-vmmf/ 9 10 * fast/media/media-feature-wgt-view-mode.html: 11 1 12 2010-04-14 Justin Schuh <jschuh@chromium.org> 2 13 -
trunk/LayoutTests/fast/media/media-feature-wgt-view-mode.html
r57319 r57631 5 5 background-color: red; 6 6 } 7 @media (-webkit-view-mode: mini ) {7 @media (-webkit-view-mode: minimized) { 8 8 body { 9 9 background-color: blue; … … 18 18 <script> 19 19 if (window.layoutTestController) 20 layoutTestController.setViewModeMediaFeature("mini ");20 layoutTestController.setViewModeMediaFeature("minimized"); 21 21 </script> 22 22 </head> -
trunk/WebCore/ChangeLog
r57630 r57631 1 2010-04-14 Luiz Agostini <luiz.agostini@openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Changing view mode names due to specification changes 6 https://bugs.webkit.org/show_bug.cgi?id=37615 7 8 test: fast/media/media-feature-wgt-view-mode.html 9 10 specification: http://dev.w3.org/2006/waf/widgets-vmmf/ 11 12 * css/MediaQueryEvaluator.cpp: 13 (WebCore::view_modeMediaFeatureEval): 14 * page/ChromeClient.h: 15 (WebCore::ChromeClient::isWindowed): 16 (WebCore::ChromeClient::isMaximized): 17 (WebCore::ChromeClient::isMinimized): 18 1 19 2010-04-14 Adam Barth <abarth@webkit.org> 2 20 -
trunk/WebCore/css/MediaQueryEvaluator.cpp
r57319 r57631 502 502 String mode = static_cast<CSSPrimitiveValue*>(value)->getStringValue(); 503 503 if (ChromeClient* client = frame->page()->chrome()->client()) { 504 if (mode == " mini" && client->isDocked())504 if (mode == "windowed" && client->isWindowed()) 505 505 return true; 506 506 if (mode == "floating" && client->isFloating()) 507 507 return true; 508 if (mode == " application" && client->isApplication())508 if (mode == "fullscreen" && client->isFullscreen()) 509 509 return true; 510 if (mode == "fullscreen" && client->isFullscreen()) 510 if (mode == "maximized" && client->isMaximized()) 511 return true; 512 if (mode == "minimized" && client->isMinimized()) 511 513 return true; 512 514 return false; -
trunk/WebCore/page/ChromeClient.h
r56851 r57631 232 232 233 233 #if ENABLE(WIDGETS_10_SUPPORT) 234 virtual bool is Docked() { return false; }234 virtual bool isWindowed() { return false; } 235 235 virtual bool isFloating() { return false; } 236 virtual bool isApplication() { return false; }237 236 virtual bool isFullscreen() { return false; } 237 virtual bool isMaximized() { return false; } 238 virtual bool isMinimized() { return false; } 238 239 #endif 239 240 -
trunk/WebKit/qt/ChangeLog
r57629 r57631 1 2010-04-14 Luiz Agostini <luiz.agostini@openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Changing view mode names due to specification changes 6 https://bugs.webkit.org/show_bug.cgi?id=37615 7 8 test: fast/media/media-feature-wgt-view-mode.html 9 10 specification: http://dev.w3.org/2006/waf/widgets-vmmf/ 11 12 * WebCoreSupport/ChromeClientQt.cpp: 13 (WebCore::ChromeClientQt::isWindowed): 14 (WebCore::ChromeClientQt::isFullscreen): 15 (WebCore::ChromeClientQt::isMaximized): 16 (WebCore::ChromeClientQt::isMinimized): 17 * WebCoreSupport/ChromeClientQt.h: 18 1 19 2010-04-14 Luiz Agostini <luiz.agostini@openbossa.org> 2 20 -
trunk/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp
r57408 r57631 563 563 564 564 #if ENABLE(WIDGETS_10_SUPPORT) 565 bool ChromeClientQt::is Docked()566 { 567 return m_webPage->d->viewMode == " mini";565 bool ChromeClientQt::isWindowed() 566 { 567 return m_webPage->d->viewMode == "windowed"; 568 568 } 569 569 … … 573 573 } 574 574 575 bool ChromeClientQt::isApplication()576 {577 return m_webPage->d->viewMode == "application";578 }579 580 575 bool ChromeClientQt::isFullscreen() 581 576 { 582 577 return m_webPage->d->viewMode == "fullscreen"; 583 578 } 584 #endif 585 586 } 579 580 bool ChromeClientQt::isMaximized() 581 { 582 return m_webPage->d->viewMode == "maximized"; 583 } 584 585 bool ChromeClientQt::isMinimized() 586 { 587 return m_webPage->d->viewMode == "minimized"; 588 } 589 #endif 590 591 } -
trunk/WebKit/qt/WebCoreSupport/ChromeClientQt.h
r57408 r57631 160 160 161 161 #if ENABLE(WIDGETS_10_SUPPORT) 162 virtual bool is Docked();162 virtual bool isWindowed(); 163 163 virtual bool isFloating(); 164 virtual bool isApplication();165 164 virtual bool isFullscreen(); 165 virtual bool isMaximized(); 166 virtual bool isMinimized(); 166 167 #endif 167 168
Note: See TracChangeset
for help on using the changeset viewer.