Changeset 195148 in webkit
- Timestamp:
- Jan 15, 2016 2:28:03 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r195147 r195148 1 2016-01-15 Joseph Pecoraro <pecoraro@apple.com> 2 3 Media Query (-webkit-video-playable-inline) is failing as an invalid media query expression 4 https://bugs.webkit.org/show_bug.cgi?id=153111 5 6 Reviewed by Dean Jackson. 7 8 * fast/media/video-playable-inline-media-query-expected.txt: Added. 9 * fast/media/video-playable-inline-media-query.html: Added. 10 * platform/ios-simulator/ios/fast/media/video-inline-expected.txt: Removed. 11 * platform/ios-simulator/ios/fast/media/video-inline.html: Removed. 12 1 13 2016-01-15 Joseph Pecoraro <pecoraro@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r195146 r195148 1 2016-01-15 Joseph Pecoraro <pecoraro@apple.com> 2 3 Media Query (-webkit-video-playable-inline) is failing as an invalid media query expression 4 https://bugs.webkit.org/show_bug.cgi?id=153111 5 6 Reviewed by Dean Jackson. 7 8 Test: fast/media/video-playable-inline-media-query.html 9 10 * css/MediaQueryEvaluator.cpp: 11 (WebCore::video_playable_inlineMediaFeatureEval): 12 (WebCore::isRunningOnIPhoneOrIPod): Deleted. 13 Make the media query work regardless of the platform. 14 It should just check the web view's settings. 15 16 * css/MediaQueryExp.cpp: 17 (WebCore::featureWithoutValue): 18 This media query expects no value, include it in the list 19 so it is not treated as invalid. 20 1 21 2016-01-15 Zalan Bujtas <zalan@apple.com> 2 22 -
trunk/Source/WebCore/css/MediaQueryEvaluator.cpp
r193859 r195148 57 57 #endif 58 58 59 #if PLATFORM(IOS)60 #include "Device.h"61 #endif62 63 59 namespace WebCore { 64 60 … … 662 658 #endif // ENABLE(VIEW_MODE_CSS_MEDIA) 663 659 664 // FIXME: Find a better place for this function. Maybe ChromeClient?665 static inline bool isRunningOnIPhoneOrIPod()666 {667 #if PLATFORM(IOS)668 static bool runningOnIPhoneOrIPod = deviceClass() == MGDeviceClassiPhone || deviceClass() == MGDeviceClassiPod;669 return runningOnIPhoneOrIPod;670 #else671 return false;672 #endif673 }674 675 660 static bool video_playable_inlineMediaFeatureEval(CSSValue*, const CSSToLengthConversionData&, Frame* frame, MediaFeaturePrefix) 676 661 { 677 return !isRunningOnIPhoneOrIPod() ||frame->settings().allowsInlineMediaPlayback();662 return frame->settings().allowsInlineMediaPlayback(); 678 663 } 679 664 -
trunk/Source/WebCore/css/MediaQueryExp.cpp
r183404 r195148 156 156 || mediaFeature == MediaFeatureNames::pointerMediaFeature 157 157 || mediaFeature == MediaFeatureNames::device_pixel_ratioMediaFeature 158 || mediaFeature == MediaFeatureNames::resolutionMediaFeature; 158 || mediaFeature == MediaFeatureNames::resolutionMediaFeature 159 || mediaFeature == MediaFeatureNames::video_playable_inlineMediaFeature; 159 160 } 160 161
Note: See TracChangeset
for help on using the changeset viewer.