[Cocoa] Add WKNSDictionary
https://bugs.webkit.org/show_bug.cgi?id=123660

Reviewed by Anders Carlsson.

* Shared/Cocoa/APIObject.mm:
(WebKit::APIObject::newObject): Allocate a WKNSDictionary if the APIObject is a dictionary.
* Shared/Cocoa/WKNSDictionary.h: Added.
(WebKit::wrapper):  Added. Returns an ImmutableDictionary’s wrapper as an NSDictionary.
* Shared/Cocoa/WKNSDictionary.mm: Added.
(-[WKNSDictionary dealloc]): Calls the ImmutableDictionary destructor.
(-[WKNSDictionary count]): Added.
(-[WKNSDictionary objectForKey:]): Added.
(-[WKNSDictionary keyEnumerator]): Added.
(-[WKNSDictionary copyWithZone:]): Retains self.
(-[WKNSDictionary _apiObject]): Returns the wrapped ImmutableDictionary.
* WebKit2.xcodeproj/project.pbxproj: Added references to new files.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
StringImpl::upper() should return PassRef.
<https://webkit.org/b/123655>

Make upper() return PassRef<StringImpl>. Spotted and removed some
ref churning in implementations.

Reviewed by Darin Adler.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix MSVC ARM build after r157581.

* jit/JITStubsARM.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Various small WinCE build fixes

Source/JavaScriptCore:

* jsc.cpp:
(main):

Source/WebCore:

* editing/TextIterator.cpp:
(WebCore::SearchBuffer::append):
* platform/graphics/BitmapImage.h:
* platform/graphics/wince/ImageWinCE.cpp:
(WebCore::BitmapImage::getHBITMAPOfSize):
(WebCore::BitmapImage::drawFrameMatchingSourceSize):
* platform/graphics/wince/PlatformPathWinCE.h:
* platform/win/PopupMenuWin.h:
* rendering/RenderThemeWinCE.cpp:
(WebCore::RenderThemeWinCE::adjustMenuListButtonStyle):

Source/WebKit/wince:

* WebCoreSupport/FrameLoaderClientWinCE.cpp:
(WebKit::FrameLoaderClientWinCE::transitionToCommittedForNewPage):
* WebView.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fixed release builds.

* Shared/Cocoa/WKNSDictionary.mm:
(-[WKNSDictionary initWithObjects:forKeys:count:]):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implement remaining SHA variations for WebCrypto
https://bugs.webkit.org/show_bug.cgi?id=123659

Reviewed by Anders Carlsson.

Source/WebCore:

Tests: crypto/subtle/sha-224.html
       crypto/subtle/sha-256.html
       crypto/subtle/sha-384.html
       crypto/subtle/sha-512.html

* WebCore.xcodeproj/project.pbxproj:
* crypto/algorithms/CryptoAlgorithmSHA224.cpp: Added.
(WebCore::CryptoAlgorithmSHA224::CryptoAlgorithmSHA224):
(WebCore::CryptoAlgorithmSHA224::~CryptoAlgorithmSHA224):
(WebCore::CryptoAlgorithmSHA224::create):
(WebCore::CryptoAlgorithmSHA224::identifier):
* crypto/algorithms/CryptoAlgorithmSHA224.h: Added.
* crypto/algorithms/CryptoAlgorithmSHA256.cpp: Added.
(WebCore::CryptoAlgorithmSHA256::CryptoAlgorithmSHA256):
(WebCore::CryptoAlgorithmSHA256::~CryptoAlgorithmSHA256):
(WebCore::CryptoAlgorithmSHA256::create):
(WebCore::CryptoAlgorithmSHA256::identifier):
* crypto/algorithms/CryptoAlgorithmSHA256.h: Added.
* crypto/algorithms/CryptoAlgorithmSHA384.cpp: Added.
(WebCore::CryptoAlgorithmSHA384::CryptoAlgorithmSHA384):
(WebCore::CryptoAlgorithmSHA384::~CryptoAlgorithmSHA384):
(WebCore::CryptoAlgorithmSHA384::create):
(WebCore::CryptoAlgorithmSHA384::identifier):
* crypto/algorithms/CryptoAlgorithmSHA384.h: Added.
* crypto/algorithms/CryptoAlgorithmSHA512.cpp: Added.
(WebCore::CryptoAlgorithmSHA512::CryptoAlgorithmSHA512):
(WebCore::CryptoAlgorithmSHA512::~CryptoAlgorithmSHA512):
(WebCore::CryptoAlgorithmSHA512::create):
(WebCore::CryptoAlgorithmSHA512::identifier):
* crypto/algorithms/CryptoAlgorithmSHA512.h: Added.
* crypto/mac/CryptoAlgorithmRegistryMac.cpp:
(WebCore::CryptoAlgorithmRegistry::platformRegisterAlgorithms):
* crypto/mac/CryptoAlgorithmSHA224Mac.cpp: Added.
(WebCore::CryptoAlgorithmSHA224::digest):
* crypto/mac/CryptoAlgorithmSHA256Mac.cpp: Added.
(WebCore::CryptoAlgorithmSHA256::digest):
* crypto/mac/CryptoAlgorithmSHA384Mac.cpp: Added.
(WebCore::CryptoAlgorithmSHA384::digest):
* crypto/mac/CryptoAlgorithmSHA512Mac.cpp: Added.
(WebCore::CryptoAlgorithmSHA512::digest):

LayoutTests:

* crypto/subtle/sha-224-expected.txt: Added.
* crypto/subtle/sha-224.html: Added.
* crypto/subtle/sha-256-expected.txt: Added.
* crypto/subtle/sha-256.html: Added.
* crypto/subtle/sha-384-expected.txt: Added.
* crypto/subtle/sha-384.html: Added.
* crypto/subtle/sha-512-expected.txt: Added.
* crypto/subtle/sha-512.html: Added.


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