Changeset 194987 in webkit
- Timestamp:
- Jan 13, 2016 3:00:14 PM (8 years ago)
- Location:
- trunk/Source
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r194985 r194987 1 2016-01-13 Chris Dumez <cdumez@apple.com> 2 3 Unreviewed, rolling out r194900. 4 5 Roll back in as this did not actually regress PLT 6 7 Reverted changeset: 8 9 "Unreviewed, rolling out r194826." 10 https://bugs.webkit.org/show_bug.cgi?id=153020 11 http://trac.webkit.org/changeset/194900 12 1 13 2016-01-13 Konstantin Tokarev <annulen@yandex.ru> 2 14 -
trunk/Source/WebCore/html/track/VTTRegion.cpp
r194900 r194987 334 334 const AtomicString& VTTRegion::textTrackCueContainerShadowPseudoId() 335 335 { 336 DEPRECATED_DEFINE_STATIC_LOCAL(const AtomicString, trackRegionCueContainerPseudoId, 337 ("-webkit-media-text-track-region-container", AtomicString::ConstructFromLiteral)); 336 static NeverDestroyed<const AtomicString> trackRegionCueContainerPseudoId("-webkit-media-text-track-region-container", AtomicString::ConstructFromLiteral); 338 337 339 338 return trackRegionCueContainerPseudoId; … … 342 341 const AtomicString& VTTRegion::textTrackRegionShadowPseudoId() 343 342 { 344 DEPRECATED_DEFINE_STATIC_LOCAL(const AtomicString, trackRegionShadowPseudoId, 345 ("-webkit-media-text-track-region", AtomicString::ConstructFromLiteral)); 343 static NeverDestroyed<const AtomicString> trackRegionShadowPseudoId("-webkit-media-text-track-region", AtomicString::ConstructFromLiteral); 346 344 347 345 return trackRegionShadowPseudoId; -
trunk/Source/WebCore/svg/properties/SVGAnimatedPropertyMacros.h
r194900 r194987 90 90 #define DEFINE_ANIMATED_PROPERTY(AnimatedPropertyTypeEnum, OwnerType, DOMAttribute, SVGDOMAttributeIdentifier, UpperProperty, LowerProperty) \ 91 91 const SVGPropertyInfo* OwnerType::LowerProperty##PropertyInfo() { \ 92 DEPRECATED_DEFINE_STATIC_LOCAL(const SVGPropertyInfo, s_propertyInfo,\92 static NeverDestroyed<const SVGPropertyInfo> s_propertyInfo = SVGPropertyInfo \ 93 93 (AnimatedPropertyTypeEnum, \ 94 94 PropertyIsReadWrite, \ … … 96 96 SVGDOMAttributeIdentifier, \ 97 97 &OwnerType::synchronize##UpperProperty, \ 98 &OwnerType::lookupOrCreate##UpperProperty##Wrapper) ); \99 return &s_propertyInfo ; \98 &OwnerType::lookupOrCreate##UpperProperty##Wrapper); \ 99 return &s_propertyInfo.get(); \ 100 100 } 101 101 -
trunk/Source/WebKit/ChangeLog
r194900 r194987 1 2016-01-13 Chris Dumez <cdumez@apple.com> 2 3 Unreviewed, rolling out r194900. 4 5 Roll back in as this did not actually regress PLT 6 7 Reverted changeset: 8 9 "Unreviewed, rolling out r194826." 10 https://bugs.webkit.org/show_bug.cgi?id=153020 11 http://trac.webkit.org/changeset/194900 12 1 13 2016-01-12 Commit Queue <commit-queue@webkit.org> 2 14 -
trunk/Source/WebKit/Storage/StorageThread.cpp
r194900 r194987 28 28 #include <wtf/AutodrainedPool.h> 29 29 #include <wtf/MainThread.h> 30 #include <wtf/NeverDestroyed.h> 30 31 31 32 namespace WebCore { … … 34 35 { 35 36 ASSERT(isMainThread()); 36 DEPRECATED_DEFINE_STATIC_LOCAL(HashSet<StorageThread*>, threads, ());37 static NeverDestroyed<HashSet<StorageThread*>> threads; 37 38 return threads; 38 39 } -
trunk/Source/WebKit/ios/ChangeLog
r194900 r194987 1 2016-01-13 Chris Dumez <cdumez@apple.com> 2 3 Unreviewed, rolling out r194900. 4 5 Roll back in as this did not actually regress PLT 6 7 Reverted changeset: 8 9 "Unreviewed, rolling out r194826." 10 https://bugs.webkit.org/show_bug.cgi?id=153020 11 http://trac.webkit.org/changeset/194900 12 1 13 2016-01-12 Commit Queue <commit-queue@webkit.org> 2 14 -
trunk/Source/WebKit/ios/WebCoreSupport/WebFixedPositionContent.mm
r194900 r194987 38 38 39 39 #import <wtf/HashMap.h> 40 #import <wtf/NeverDestroyed.h> 40 41 #import <wtf/RetainPtr.h> 41 42 #import <wtf/StdLibExtras.h> … … 51 52 static Lock& WebFixedPositionContentDataLock() 52 53 { 53 DEPRECATED_DEFINE_STATIC_LOCAL(Lock, mutex, ());54 static NeverDestroyed<Lock> mutex; 54 55 return mutex; 55 56 } -
trunk/Source/WebKit/mac/ChangeLog
r194921 r194987 1 2016-01-13 Chris Dumez <cdumez@apple.com> 2 3 Unreviewed, rolling out r194900. 4 5 Roll back in as this did not actually regress PLT 6 7 Reverted changeset: 8 9 "Unreviewed, rolling out r194826." 10 https://bugs.webkit.org/show_bug.cgi?id=153020 11 http://trac.webkit.org/changeset/194900 12 1 13 2016-01-12 Ryosuke Niwa <rniwa@webkit.org> 2 14 -
trunk/Source/WebKit/mac/History/WebBackForwardList.mm
r194900 r194987 49 49 #import <wtf/Assertions.h> 50 50 #import <wtf/MainThread.h> 51 #import <wtf/NeverDestroyed.h> 51 52 #import <wtf/RetainPtr.h> 52 53 #import <wtf/RunLoop.h> … … 61 62 static BackForwardListMap& backForwardLists() 62 63 { 63 DEPRECATED_DEFINE_STATIC_LOCAL(BackForwardListMap, staticBackForwardLists, ());64 static NeverDestroyed<BackForwardListMap> staticBackForwardLists; 64 65 return staticBackForwardLists; 65 66 } -
trunk/Source/WebKit/mac/History/WebHistoryItem.mm
r194900 r194987 52 52 #import <wtf/Assertions.h> 53 53 #import <wtf/MainThread.h> 54 #import <wtf/NeverDestroyed.h> 54 55 #import <wtf/RunLoop.h> 55 56 #import <wtf/StdLibExtras.h> … … 103 104 static HistoryItemMap& historyItemWrappers() 104 105 { 105 DEPRECATED_DEFINE_STATIC_LOCAL(HistoryItemMap, historyItemWrappers, ());106 static NeverDestroyed<HistoryItemMap> historyItemWrappers; 106 107 return historyItemWrappers; 107 108 } -
trunk/Source/WebKit/mac/Misc/WebNSPasteboardExtras.mm
r194900 r194987 61 61 + (NSArray *)_web_writableTypesForURL 62 62 { 63 DEPRECATED_DEFINE_STATIC_LOCAL(RetainPtr<NSArray>, types, ([[NSArray alloc] initWithObjects:63 static NSArray *types = [[NSArray alloc] initWithObjects: 64 64 WebURLsWithTitlesPboardType, 65 65 NSURLPboardType, … … 67 67 WebURLNamePboardType, 68 68 NSStringPboardType, 69 nil] ));70 return types .get();69 nil]; 70 return types; 71 71 } 72 72 … … 80 80 static NSArray *_writableTypesForImageWithoutArchive (void) 81 81 { 82 DEPRECATED_DEFINE_STATIC_LOCAL(RetainPtr<NSArray>, types, (_createWritableTypesForImageWithoutArchive()));83 return types .get();82 static NSArray *types = _createWritableTypesForImageWithoutArchive(); 83 return types; 84 84 } 85 85 … … 94 94 static NSArray *_writableTypesForImageWithArchive (void) 95 95 { 96 DEPRECATED_DEFINE_STATIC_LOCAL(RetainPtr<NSArray>, types, (_createWritableTypesForImageWithArchive()));97 return types .get();96 static NSArray *types = _createWritableTypesForImageWithArchive(); 97 return types; 98 98 } 99 99 -
trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.h
r194900 r194987 31 31 #import <wtf/HashMap.h> 32 32 #import <wtf/PassRefPtr.h> 33 #import <wtf/NeverDestroyed.h> 33 34 #import <wtf/text/StringHash.h> 34 35 #import <wtf/text/WTFString.h> … … 54 55 55 56 private: 57 friend class NeverDestroyed<NetscapePluginHostManager>; 56 58 NetscapePluginHostProxy* hostForPlugin(const String& pluginPath, cpu_type_t pluginArchitecture, const String& bundleIdentifier); 57 59 -
trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm
r194900 r194987 38 38 #import <spawn.h> 39 39 #import <wtf/Assertions.h> 40 #import <wtf/NeverDestroyed.h> 40 41 #import <wtf/RetainPtr.h> 41 42 #import <wtf/StdLibExtras.h> … … 52 53 NetscapePluginHostManager& NetscapePluginHostManager::singleton() 53 54 { 54 DEPRECATED_DEFINE_STATIC_LOCAL(NetscapePluginHostManager, pluginHostManager, ()); 55 55 static NeverDestroyed<NetscapePluginHostManager> pluginHostManager; 56 56 return pluginHostManager; 57 57 } -
trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostProxy.mm
r194900 r194987 41 41 #import <WebCore/IdentifierRep.h> 42 42 #import <WebCore/ScriptController.h> 43 #import <wtf/NeverDestroyed.h> 43 44 44 45 extern "C" { … … 85 86 static PluginProxyMap& pluginProxyMap() 86 87 { 87 DEPRECATED_DEFINE_STATIC_LOCAL(PluginProxyMap, pluginProxyMap, ()); 88 88 static NeverDestroyed<PluginProxyMap> pluginProxyMap; 89 89 return pluginProxyMap; 90 90 } -
trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm
r194900 r194987 65 65 #import <mach/mach.h> 66 66 #import <utility> 67 #import <wtf/NeverDestroyed.h> 67 68 #import <wtf/RefCountedLeakCounter.h> 68 69 #import <wtf/text/CString.h> … … 1664 1665 static String& globalExceptionString() 1665 1666 { 1666 DEPRECATED_DEFINE_STATIC_LOCAL(String, exceptionString, ());1667 static NeverDestroyed<String> exceptionString; 1667 1668 return exceptionString; 1668 1669 } -
trunk/Source/WebKit/mac/Plugins/Hosted/ProxyInstance.mm
r194900 r194987 37 37 #import <runtime/FunctionPrototype.h> 38 38 #import <runtime/PropertyNameArray.h> 39 #import <wtf/NeverDestroyed.h> 39 40 40 41 extern "C" { … … 66 67 static ProxyClass* proxyClass() 67 68 { 68 DEPRECATED_DEFINE_STATIC_LOCAL(ProxyClass, proxyClass, ());69 return &proxyClass ;69 static NeverDestroyed<ProxyClass> proxyClass; 70 return &proxyClass.get(); 70 71 } 71 72 -
trunk/Source/WebKit/mac/Plugins/WebNetscapePluginStream.mm
r194900 r194987 55 55 #import <runtime/JSLock.h> 56 56 #import <wtf/HashMap.h> 57 #import <wtf/NeverDestroyed.h> 57 58 #import <wtf/StdLibExtras.h> 58 59 … … 84 85 static StreamMap& streams() 85 86 { 86 DEPRECATED_DEFINE_STATIC_LOCAL(StreamMap, staticStreams, ());87 static NeverDestroyed<StreamMap> staticStreams; 87 88 return staticStreams; 88 89 } -
trunk/Source/WebKit/mac/Storage/WebDatabaseManager.mm
r194900 r194987 35 35 #import <WebCore/DatabaseManager.h> 36 36 #import <WebCore/SecurityOrigin.h> 37 #import <wtf/NeverDestroyed.h> 37 38 38 39 #if PLATFORM(IOS) … … 229 230 static Lock& transactionBackgroundTaskIdentifierLock() 230 231 { 231 DEPRECATED_DEFINE_STATIC_LOCAL(Lock, mutex, ());232 static NeverDestroyed<Lock> mutex; 232 233 return mutex; 233 234 } -
trunk/Source/WebKit/mac/WebCoreSupport/WebUserMediaClient.mm
r194900 r194987 83 83 static UserMediaCheckMap& userMediaCheckMap() 84 84 { 85 DEPRECATED_DEFINE_STATIC_LOCAL(UserMediaCheckMap, requests, ());85 static NeverDestroyed<UserMediaCheckMap> requests; 86 86 return requests; 87 87 } -
trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm
r194900 r194987 63 63 #import <yarr/RegularExpression.h> 64 64 #import <wtf/Assertions.h> 65 #import <wtf/NeverDestroyed.h> 65 66 #import <wtf/StdLibExtras.h> 66 67 #import <wtf/text/StringBuilder.h> … … 364 365 static const unsigned int regExpCacheSize = 4; 365 366 static NSMutableArray* regExpLabels = nil; 366 DEPRECATED_DEFINE_STATIC_LOCAL(Vector<RegularExpression*>, regExps, ());367 DEPRECATED_DEFINE_STATIC_LOCAL(RegularExpression, wordRegExp, ("\\w", TextCaseSensitive));367 static NeverDestroyed<Vector<RegularExpression*>> regExps; 368 static NeverDestroyed<RegularExpression> wordRegExp("\\w", TextCaseSensitive); 368 369 369 370 RegularExpression* result; … … 372 373 CFIndex cacheHit = [regExpLabels indexOfObject:labels]; 373 374 if (cacheHit != NSNotFound) 374 result = regExps. at(cacheHit);375 result = regExps.get().at(cacheHit); 375 376 else { 376 377 StringBuilder pattern; … … 384 385 bool endsWithWordChar = false; 385 386 if (label.length() != 0) { 386 startsWithWordChar = wordRegExp. match(label.substring(0, 1)) >= 0;387 endsWithWordChar = wordRegExp. match(label.substring(label.length() - 1, 1)) >= 0;387 startsWithWordChar = wordRegExp.get().match(label.substring(0, 1)) >= 0; 388 endsWithWordChar = wordRegExp.get().match(label.substring(label.length() - 1, 1)) >= 0; 388 389 } 389 390 … … 408 409 // remove from old spot 409 410 [regExpLabels removeObjectAtIndex:cacheHit]; 410 regExps. remove(cacheHit);411 regExps.get().remove(cacheHit); 411 412 } 412 413 // add to start 413 414 [regExpLabels insertObject:labels atIndex:0]; 414 regExps. insert(0, result);415 regExps.get().insert(0, result); 415 416 // trim if too big 416 417 if ([regExpLabels count] > regExpCacheSize) { 417 418 [regExpLabels removeObjectAtIndex:regExpCacheSize]; 418 RegularExpression* last = regExps. last();419 regExps. removeLast();419 RegularExpression* last = regExps.get().last(); 420 regExps.get().removeLast(); 420 421 delete last; 421 422 } -
trunk/Source/WebKit/mac/WebView/WebView.mm
r194900 r194987 6807 6807 } 6808 6808 else if (object->inherits(JSArray::info())) { 6809 DEPRECATED_DEFINE_STATIC_LOCAL(HashSet<JSObject*>, visitedElems, ());6810 if (!visitedElems. contains(object)) {6811 visitedElems. add(object);6809 static NeverDestroyed<HashSet<JSObject*>> visitedElems; 6810 if (!visitedElems.get().contains(object)) { 6811 visitedElems.get().add(object); 6812 6812 6813 6813 JSArray* array = static_cast<JSArray*>(object); … … 6817 6817 [aeDesc insertDescriptor:aeDescFromJSValue(exec, array->get(exec, i)) atIndex:0]; 6818 6818 6819 visitedElems. remove(object);6819 visitedElems.get().remove(object); 6820 6820 return aeDesc; 6821 6821 }
Note: See TracChangeset
for help on using the changeset viewer.