Changeset 165790 in webkit
- Timestamp:
- Mar 17, 2014, 7:30:59 PM (11 years ago)
- Location:
- branches/safari-537.75-branch/Source
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-537.75-branch/Source/WebCore/ChangeLog
r165783 r165790 1 2014-03-17 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r165753. 4 5 2014-03-16 Brent Fulgham <bfulgham@apple.com> 6 7 Provide preference to enable additional AVFoundation options 8 https://bugs.webkit.org/show_bug.cgi?id=130275 9 10 Reviewed by Eric Carlson. 11 12 * html/HTMLMediaElement.cpp: 13 (WebCore::HTMLMediaElement::doesHaveAttribute): Added. 14 * html/HTMLMediaElement.h: 15 * page/Settings.in: Add new attribute. 16 * platform/graphics/MediaPlayer.cpp: 17 (WebCore::MediaPlayer::doesHaveAttribute): Added stub to call private player object's 18 implementation of doesHaveAttribute. 19 * platform/graphics/MediaPlayer.h: 20 (WebCore::MediaPlayerClient::doesHaveAttribute): 21 * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: 22 (WebCore::MediaPlayerPrivateAVFoundationCF::AVFWrapper::createAssetForURL): Check the <media> object, 23 and notify AVFoundationCF to use URI option if relevant. 24 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 25 (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Check the <media> object, 26 and notify AVFoundation to use URI option if relevant. 27 1 28 2014-03-17 Joseph Pecoraro <pecoraro@apple.com> 2 29 -
branches/safari-537.75-branch/Source/WebCore/html/HTMLAttributeNames.in
r149173 r165790 308 308 sortdirection 309 309 span 310 x-itunes-inherit-uri-query-component 310 311 x-webkit-speech 311 312 x-webkit-grammar -
branches/safari-537.75-branch/Source/WebCore/html/HTMLMediaElement.cpp
r163833 r165790 5136 5136 } 5137 5137 5138 } 5139 #endif 5138 bool HTMLMediaElement::doesHaveAttribute(const AtomicString& attribute) const 5139 { 5140 QualifiedName attributeName(nullAtom, attribute, nullAtom); 5141 if (!fastHasAttribute(attributeName)) 5142 return false; 5143 5144 if (Settings* settings = document()->settings()) { 5145 if (attributeName == HTMLNames::x_itunes_inherit_uri_query_componentAttr) 5146 return settings->enableInheritURIQueryComponent(); 5147 } 5148 5149 return true; 5150 } 5151 5152 bool MediaPlayer::doesHaveAttribute(const AtomicString& attribute) const 5153 { 5154 if (!m_mediaPlayerClient) 5155 return false; 5156 5157 return m_mediaPlayerClient->doesHaveAttribute(attribute); 5158 } 5159 5160 } 5161 5162 #endif -
branches/safari-537.75-branch/Source/WebCore/html/HTMLMediaElement.h
r157973 r165790 119 119 virtual bool supportsScanning() const; 120 120 121 virtual bool doesHaveAttribute(const AtomicString&) const override; 122 121 123 PlatformMedia platformMedia() const; 122 124 #if USE(ACCELERATED_COMPOSITING) -
branches/safari-537.75-branch/Source/WebCore/page/Settings.in
r160423 r165790 208 208 selectionIncludesAltImageText initial=true 209 209 useLegacyBackgroundSizeShorthandBehavior initial=false 210 211 enableInheritURIQueryComponent initial=false -
branches/safari-537.75-branch/Source/WebCore/platform/graphics/MediaPlayer.h
r158023 r165790 219 219 virtual IntRect mediaPlayerWindowClipRect() { return IntRect(); } 220 220 virtual CachedResourceLoader* mediaPlayerCachedResourceLoader() { return 0; } 221 virtual bool doesHaveAttribute(const AtomicString&) const { return false; } 221 222 222 223 #if ENABLE(VIDEO_TRACK) … … 264 265 bool supportsScanning() const; 265 266 bool requiresImmediateCompositing() const; 267 bool doesHaveAttribute(const AtomicString&) const; 266 268 PlatformMedia platformMedia() const; 267 269 #if USE(ACCELERATED_COMPOSITING) -
branches/safari-537.75-branch/Source/WebCore/platform/graphics/avfoundation/cf/AVFoundationCFSoftLinking.h
r164680 r165790 385 385 #define AVCFPlayerItemLegibleOutputTextStylingResolutionSourceAndRulesOnly getAVCFPlayerItemLegibleOutputTextStylingResolutionSourceAndRulesOnly() 386 386 387 SOFT_LINK_VARIABLE_DLL_IMPORT(AVFoundationCF, AVCFURLAssetInheritURIQueryComponentFromReferencingURIKey, const CFStringRef); 388 #define AVCFURLAssetInheritURIQueryComponentFromReferencingURIKey getAVCFURLAssetInheritURIQueryComponentFromReferencingURIKey() 389 387 390 #endif -
branches/safari-537.75-branch/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp
r164680 r165790 1 1 /* 2 * Copyright (C) 2011 , 2012, 2013Apple Inc. All rights reserved.2 * Copyright (C) 2011-2014 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 93 93 RetainPtr<CGImageRef> createImageForTimeInRect(float, const IntRect&); 94 94 95 void createAssetForURL(const String& url );95 void createAssetForURL(const String& url, bool inheritURI); 96 96 void setAsset(AVCFURLAssetRef); 97 97 … … 399 399 setDelayCallbacks(true); 400 400 401 bool inheritURI = player()->doesHaveAttribute("x-itunes-inherit-uri-query-component"); 402 401 403 m_avfWrapper = new AVFWrapper(this); 402 m_avfWrapper->createAssetForURL(url );404 m_avfWrapper->createAssetForURL(url, inheritURI); 403 405 setDelayCallbacks(false); 404 406 } … … 1312 1314 } 1313 1315 1314 void AVFWrapper::createAssetForURL(const String& url )1316 void AVFWrapper::createAssetForURL(const String& url, bool inheritURI) 1315 1317 { 1316 1318 ASSERT(!avAsset()); … … 1318 1320 RetainPtr<CFURLRef> urlRef = KURL(ParsedURLString, url).createCFURL(); 1319 1321 1320 AVCFURLAssetRef assetRef = AVCFURLAssetCreateWithURLAndOptions(kCFAllocatorDefault, urlRef.get(), 0, m_notificationQueue); 1322 RetainPtr<CFMutableDictionaryRef> optionsRef = adoptCF(CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks)); 1323 1324 if (inheritURI) 1325 CFDictionarySetValue(optionsRef.get(), AVCFURLAssetInheritURIQueryComponentFromReferencingURIKey, kCFBooleanTrue); 1326 1327 AVCFURLAssetRef assetRef = AVCFURLAssetCreateWithURLAndOptions(kCFAllocatorDefault, urlRef.get(), optionsRef.get(), m_notificationQueue); 1321 1328 m_avAsset = adoptCF(assetRef); 1322 1329 } -
branches/safari-537.75-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r157977 r165790 53 53 #import <wtf/Uint8Array.h> 54 54 #import <wtf/text/CString.h> 55 #import <wtf/text/StringBuilder.h> 55 56 56 57 #import <AVFoundation/AVFoundation.h> … … 95 96 SOFT_LINK_POINTER(AVFoundation, AVMediaTypeAudio, NSString *) 96 97 SOFT_LINK_POINTER(AVFoundation, AVPlayerItemDidPlayToEndTimeNotification, NSString *) 98 SOFT_LINK_POINTER(AVFoundation, AVURLAssetInheritURIQueryComponentFromReferencingURIKey, NSString *) 97 99 SOFT_LINK_POINTER(AVFoundation, AVAssetImageGeneratorApertureModeCleanAperture, NSString *) 98 100 SOFT_LINK_POINTER(AVFoundation, AVURLAssetReferenceRestrictionsKey, NSString *) … … 113 115 #define AVMediaTypeAudio getAVMediaTypeAudio() 114 116 #define AVPlayerItemDidPlayToEndTimeNotification getAVPlayerItemDidPlayToEndTimeNotification() 117 #define AVURLAssetInheritURIQueryComponentFromReferencingURIKey getAVURLAssetInheritURIQueryComponentFromReferencingURIKey() 115 118 #define AVAssetImageGeneratorApertureModeCleanAperture getAVAssetImageGeneratorApertureModeCleanAperture() 116 119 #define AVURLAssetReferenceRestrictionsKey getAVURLAssetReferenceRestrictionsKey() … … 418 421 if ([headerFields.get() count]) 419 422 [options.get() setObject:headerFields.get() forKey:@"AVURLAssetHTTPHeaderFieldsKey"]; 423 424 if (player()->doesHaveAttribute("x-itunes-inherit-uri-query-component")) 425 [options.get() setObject: [NSNumber numberWithBool: TRUE] forKey: AVURLAssetInheritURIQueryComponentFromReferencingURIKey]; 426 420 427 #endif 421 428 -
branches/safari-537.75-branch/Source/WebKit/mac/ChangeLog
r164003 r165790 1 2014-03-17 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r165753. 4 5 2014-03-16 Brent Fulgham <bfulgham@apple.com> 6 7 Provide preference to enable additional AVFoundation options 8 https://bugs.webkit.org/show_bug.cgi?id=130275 9 10 Reviewed by Eric Carlson. 11 12 * WebView/WebPreferenceKeysPrivate.h: Added new preference. 13 * WebView/WebPreferences.mm: 14 (+[WebPreferences initialize]): Initialize preference to false. 15 (-[WebPreferences isInheritURIQueryComponentEnabled]): Added. 16 (-[WebPreferences setEnableInheritURIQueryComponent:]): Added. 17 * WebView/WebPreferencesPrivate.h: 18 * WebView/WebView.mm: 19 (-[WebView _preferencesChanged:]): Handle new preference. 20 1 21 2014-02-12 Matthew Hanson <matthew_hanson@apple.com> 2 22 -
branches/safari-537.75-branch/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h
r160423 r165790 161 161 #define WebKitObjectCacheSizePreferenceKey @"WebKitObjectCacheSizePreferenceKey" 162 162 #define WebKitDebugFullPageZoomPreferenceKey @"WebKitDebugFullPageZoomPreferenceKey" 163 164 #define WebKitEnableInheritURIQueryComponentPreferenceKey @"WebKitEnableInheritURIQueryComponent" -
branches/safari-537.75-branch/Source/WebKit/mac/WebView/WebPreferences.mm
r160423 r165790 1 1 /* 2 * Copyright (C) 2005, 2006, 2007, 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2005, 2006, 2007, 2011, 2012, 2014 Apple Inc. All rights reserved. 3 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 4 4 * … … 422 422 423 423 [NSNumber numberWithBool:NO], WebKitUseLegacyTextAlignPositionedElementBehaviorPreferenceKey, 424 424 [NSNumber numberWithBool:NO], WebKitEnableInheritURIQueryComponentPreferenceKey, 425 425 nil]; 426 426 … … 1600 1600 } 1601 1601 1602 - (BOOL)isInheritURIQueryComponentEnabled 1603 { 1604 return [self _boolValueForKey: WebKitEnableInheritURIQueryComponentPreferenceKey]; 1605 } 1606 1607 - (void)setEnableInheritURIQueryComponent:(BOOL)flag 1608 { 1609 [self _setBoolValue:flag forKey: WebKitEnableInheritURIQueryComponentPreferenceKey]; 1610 } 1611 1602 1612 - (BOOL)mediaPlaybackRequiresUserGesture 1603 1613 { -
branches/safari-537.75-branch/Source/WebKit/mac/WebView/WebPreferencesPrivate.h
r160423 r165790 241 241 - (void)setSeamlessIFramesEnabled:(BOOL)enabled; 242 242 243 - (BOOL)isInheritURIQueryComponentEnabled; 244 - (void)setEnableInheritURIQueryComponent:(BOOL)flag; 245 243 246 // Other private methods 244 247 - (void)_postPreferencesChangedNotification; -
branches/safari-537.75-branch/Source/WebKit/mac/WebView/WebView.mm
r160423 r165790 1559 1559 settings->setUseLegacyTextAlignPositionedElementBehavior([preferences useLegacyTextAlignPositionedElementBehavior]); 1560 1560 1561 settings->setEnableInheritURIQueryComponent([preferences isInheritURIQueryComponentEnabled]); 1562 1561 1563 switch ([preferences storageBlockingPolicy]) { 1562 1564 case WebAllowAllStorage: -
branches/safari-537.75-branch/Source/WebKit/win/ChangeLog
r163571 r165790 1 2014-03-17 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r165753. 4 5 2014-03-17 Brent Fulgham <bfulgham@apple.com> 6 7 Provide preference to enable additional AVFoundation options 8 https://bugs.webkit.org/show_bug.cgi?id=130275 9 10 Reviewed by Eric Carlson. 11 12 * Interfaces/IWebPreferencesPrivate.idl: Added new preference. 13 * WebPreferenceKeysPrivate.h: Ditto. 14 * WebPreferences.cpp: 15 (WebPreferences::initializeDefaultSettings): Initialize preference to false. 16 (WebPreferences::isInheritURIQueryComponentEnabled): Added. 17 (WebPreferences::setEnableInheritURIQueryComponent): Added. 18 * WebPreferences.h: 19 * WebView.cpp: 20 (WebView::notifyPreferencesChanged): Handle new preference. 21 1 22 2014-02-06 Brent Fulgham <bfulgham@apple.com> 2 23 -
branches/safari-537.75-branch/Source/WebKit/win/Interfaces/IWebPreferencesPrivate.idl
r151491 r165790 143 143 HRESULT setRequestAnimationFrameEnabled([in] BOOL); 144 144 HRESULT requestAnimationFrameEnabled([out, retval] BOOL*); 145 146 HRESULT isInheritURIQueryComponentEnabled([out, retval] BOOL* enabled); 147 HRESULT setEnableInheritURIQueryComponent([in] BOOL enabled); 145 148 } -
branches/safari-537.75-branch/Source/WebKit/win/WebPreferenceKeysPrivate.h
r151491 r165790 166 166 #define WebKitRequestAnimationFrameEnabledPreferenceKey "WebKitRequestAnimationFrameEnabled" 167 167 168 #define WebKitEnableInheritURIQueryComponentPreferenceKey "WebKitEnableInheritURIQueryComponent" -
branches/safari-537.75-branch/Source/WebKit/win/WebPreferences.cpp
r153717 r165790 281 281 CFDictionaryAddValue(defaults, CFSTR(WebKitFullScreenEnabledPreferenceKey), kCFBooleanFalse); 282 282 283 CFDictionaryAddValue(defaults, CFSTR(WebKitRequestAnimationFrameEnabledPreferenceKey), kCFBooleanFalse); 284 283 285 defaultSettings = defaults; 284 286 } … … 1767 1769 } 1768 1770 1771 HRESULT WebPreferences::isInheritURIQueryComponentEnabled(BOOL* enabled) 1772 { 1773 *enabled = boolValueForKey(WebKitEnableInheritURIQueryComponentPreferenceKey); 1774 return S_OK; 1775 } 1776 1777 HRESULT WebPreferences::setEnableInheritURIQueryComponent(BOOL enabled) 1778 { 1779 setBoolValue(WebKitEnableInheritURIQueryComponentPreferenceKey, enabled); 1780 return S_OK; 1781 } -
branches/safari-537.75-branch/Source/WebKit/win/WebPreferences.h
r151491 r165790 481 481 virtual HRESULT STDMETHODCALLTYPE setRequestAnimationFrameEnabled(BOOL); 482 482 483 virtual HRESULT STDMETHODCALLTYPE isInheritURIQueryComponentEnabled(BOOL*); 484 virtual HRESULT STDMETHODCALLTYPE setEnableInheritURIQueryComponent(BOOL); 485 483 486 // WebPreferences 484 487 -
branches/safari-537.75-branch/Source/WebKit/win/WebView.cpp
r163571 r165790 5036 5036 settings->setRequestAnimationFrameEnabled(enabled); 5037 5037 5038 hr = prefsPrivate->isInheritURIQueryComponentEnabled(&enabled); 5039 if (FAILED(hr)) 5040 return hr; 5041 settings.setEnableInheritURIQueryComponent(enabled); 5042 5038 5043 return S_OK; 5039 5044 } -
branches/safari-537.75-branch/Source/WebKit2/ChangeLog
r165774 r165790 1 2014-03-17 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r165753. 4 5 2014-03-17 Brent Fulgham <bfulgham@apple.com> 6 7 Provide preference to enable additional AVFoundation options 8 https://bugs.webkit.org/show_bug.cgi?id=130275 9 10 Reviewed by Eric Carlson. 11 12 * Shared/WebPreferencesStore.h: Added new preference. 13 * UIProcess/API/C/WKPreferences.cpp: 14 (WKPreferencesSetEnableInheritURIQueryComponent): Added. 15 (WKPreferencesGetEnableInheritURIQueryComponent): Added. 16 * UIProcess/API/C/WKPreferencesPrivate.h: 17 * WebProcess/WebPage/WebPage.cpp: 18 (WebKit::WebPage::updatePreferences): Handle new preference. 19 1 20 2014-03-17 Matthew Hanson <matthew_hanson@apple.com> 2 21 -
branches/safari-537.75-branch/Source/WebKit2/Shared/WebPreferencesStore.h
r160423 r165790 164 164 macro(UseLegacyTextAlignPositionedElementBehavior, useLegacyTextAlignPositionedElementBehavior, Bool, bool, false) \ 165 165 \ 166 macro(EnableInheritURIQueryComponent, enableInheritURIQueryComponent, Bool, bool, false) \ 166 167 167 168 #define FOR_EACH_WEBKIT_DOUBLE_PREFERENCE(macro) \ -
branches/safari-537.75-branch/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp
r160423 r165790 1155 1155 return toAPI(toImpl(preferencesRef)->incrementalRenderingSuppressionTimeout()); 1156 1156 } 1157 1158 void WKPreferencesSetEnableInheritURIQueryComponent(WKPreferencesRef preferencesRef, bool enabled) 1159 { 1160 toImpl(preferencesRef)->setEnableInheritURIQueryComponent(enabled); 1161 } 1162 1163 bool WKPreferencesGetEnableInheritURIQueryComponent(WKPreferencesRef preferencesRef) 1164 { 1165 return toImpl(preferencesRef)->enableInheritURIQueryComponent(); 1166 } -
branches/safari-537.75-branch/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h
r160423 r165790 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2014 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 294 294 WK_EXPORT bool WKPreferencesUseLegacyTextAlignPositionedElementBehavior(WKPreferencesRef preferencesRef); 295 295 296 // Default to false. 297 WK_EXPORT void WKPreferencesSetEnableInheritURIQueryComponent(WKPreferencesRef preferencesRef, bool enabled); 298 WK_EXPORT bool WKPreferencesGetEnableInheritURIQueryComponent(WKPreferencesRef preferencesRef); 299 296 300 #ifdef __cplusplus 297 301 } -
branches/safari-537.75-branch/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r160423 r165790 2609 2609 settings->setShowsURLsInToolTips(store.getBoolValueForKey(WebPreferencesKey::showsURLsInToolTipsEnabledKey())); 2610 2610 2611 settings->setEnableInheritURIQueryComponent(store.getBoolValueForKey(WebPreferencesKey::enableInheritURIQueryComponentKey())); 2612 2611 2613 #if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) 2612 2614 settings->setHiddenPageDOMTimerThrottlingEnabled(store.getBoolValueForKey(WebPreferencesKey::hiddenPageDOMTimerThrottlingEnabledKey()));
Note:
See TracChangeset
for help on using the changeset viewer.