Remove unsafe uses of AtomicallyInitializedStatic
https://bugs.webkit.org/show_bug.cgi?id=126838

Reviewed by Andreas Kling.

AtomicStrings are per thread so any static initialization of them is potentially dangerous
unless it's certain that they're only ever used from the same thread.

This goes against using them with AtomicallyInitializedStatic, so just create AtomicStrings where needed.
(This is highly unlikely to have any real negative performance impact since these two functions
aren't called very frequently).

* loader/CrossOriginAccessControl.cpp:
(WebCore::passesAccessControlCheck):
* page/PerformanceResourceTiming.cpp:
(WebCore::passesTimingAllowCheck):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Fix link errors for iOS: Part 3

* WebCore.exp.in:
- Move some Mac-only symbols to Mac-only section.
* WebCore.xcodeproj/project.pbxproj:
- Add missing references to AuthenticationCF.cpp and
  CookieJarCFNet.cpp.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r160806): line-height is not applied when only present in :link style.
<http://webkit.org/b/126839>
<rdar://problem/15799899>

Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/css/line-height-link-style.html

* css/StyleResolver.cpp:
(WebCore::StyleResolver::CascadedProperties::Property::apply):

    Use the CSSValue for SelectorChecker::MatchLink when applying
    style inside a link.

LayoutTests:

* fast/css/line-height-link-style-expected.txt: Added.
* fast/css/line-height-link-style.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix some CoreVideo linker errors on iOS by softlinking with more CoreVideo
symbols.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fix make distcheck.

Source/JavaScriptCore:

* GNUmakefile.am: Add inline-and-minify-stylesheets-and-scripts.py
to EXTRA_DIST and fix InjectedScriptSource.h generation rule.
* GNUmakefile.list.am: Move InjectedScriptSource.h to
built_nosources to make sure it's not disted.

Source/WebCore:

* GNUmakefile.list.am: Add missing files.

Source/WebKit/gtk:

* GNUmakefile.am: Add enum types template files to EXTRA_DIST.

Source/WebKit2:

* GNUmakefile.am: Add WebKit2InspectorGResourceBundle.xml to
EXTRA_DIST.
* GNUmakefile.list.am: Removed deleted files and add missing ones.
* NetworkProcess/unix/NetworkProcessMainUnix.cpp: Move
ProxyResolverSoup.h to EFL platform ifdef, because GTK port doesn't
build the proxy resolver.

Tools:

* gtk/GNUmakefile.am: Add generate-inspector-gresource-manifest.py
to EXTRA_DIST.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Split ICU UText providers out into their own files
https://bugs.webkit.org/show_bug.cgi?id=126834

Reviewed by Anders Carlsson.

Moves the implementation of our custom UText providers out into
their own files.
- UTextProviderLatin1.h/cpp contains the Latin-1 provider.
- UTextProviderUTF16.h/cpp contains the UTF-16 provider.
- UTextProvider.h/cpp contains code common to all the providers.

* CMakeLists.txt:
* GNUmakefile.list.am:
* PlatformGTK.cmake:
* WebCore.vcxproj/WebCoreCommon.props:
* WebCore.vcxproj/copyForwardingHeaders.cmd:
* WebCore.xcodeproj/project.pbxproj:
* platform/text/TextAllInOne.cpp:
* platform/text/TextBreakIteratorICU.cpp:
(WebCore::setUpIterator):
(WebCore::wordBreakIterator):
(WebCore::acquireLineBreakIterator):
(WebCore::sentenceBreakIterator):
(WebCore::setUpIteratorWithRules):
* platform/text/icu: Added.
* platform/text/icu/UTextProvider.cpp: Added.
(WebCore::fixPointer):
(WebCore::uTextCloneImpl):
* platform/text/icu/UTextProvider.h: Added.
(WebCore::uTextProviderContext):
(WebCore::uTextInitialize):
(WebCore::uTextAccessPinIndex):
(WebCore::uTextAccessInChunkOrOutOfRange):
* platform/text/icu/UTextProviderLatin1.cpp: Added.
* platform/text/icu/UTextProviderLatin1.h: Added.
* platform/text/icu/UTextProviderUTF16.cpp: Added.
* platform/text/icu/UTextProviderUTF16.h: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Replace more uses of AtomicallyInitializedStatic with std::call_once
https://bugs.webkit.org/show_bug.cgi?id=126847

Reviewed by Sam Weinig.

Source/WebCore:

* crypto/CryptoAlgorithmRegistry.cpp:
(WebCore::CryptoAlgorithmRegistry::shared):
(WebCore::registryMutex):
(WebCore::CryptoAlgorithmRegistry::getIdentifierForName):
(WebCore::CryptoAlgorithmRegistry::nameForIdentifier):
(WebCore::CryptoAlgorithmRegistry::create):
(WebCore::CryptoAlgorithmRegistry::registerAlgorithm):
* crypto/CryptoAlgorithmRegistry.h:
* inspector/WorkerDebuggerAgent.cpp:
(WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
(WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
(WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands):
* workers/WorkerThread.cpp:
(WebCore::threadSetMutex):
(WebCore::workerThreads):
(WebCore::WorkerThread::workerThreadCount):
(WebCore::WorkerThread::WorkerThread):
(WebCore::WorkerThread::~WorkerThread):
(WebCore::WorkerThread::releaseFastMallocFreeMemoryInAllThreads):

Source/WTF:

* wtf/Forward.h:
Forward declare NeverDestroyed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix windows.

* WebCore.vcxproj/WebCore.vcxproj:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161819 268f45cc-cd09-0410-ab3c-d52691b4dbfc