Fix MSVC warning about unary minus operator
https://bugs.webkit.org/show_bug.cgi?id=123674

Reviewed by Darin Adler.

Change some static_cast<> to silence the following warning of Microsoft compiler:
warning C4146: unary minus operator applied to unsigned type, result still unsigned

* jit/Repatch.cpp:
(JSC::emitPutTransitionStub):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Optimize baselines: fast/css

Unreviewed; run "webkit-patch optimize-baselines fast/css"

* fast/css/background-image-with-baseurl-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/background-image-with-baseurl-expected.txt.
* fast/css/caption-width-absolute-position-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-absolute-position-expected.txt.
* fast/css/caption-width-absolute-position-offset-top-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-absolute-position-offset-top-expected.txt.
* fast/css/caption-width-fixed-position-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-fixed-position-expected.txt.
* fast/css/caption-width-fixed-position-offset-top-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-fixed-position-offset-top-expected.txt.
* fast/css/caption-width-relative-position-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-relative-position-expected.txt.
* fast/css/caption-width-relative-position-offset-top-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-relative-position-offset-top-expected.txt.
* fast/css/font-face-default-font-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/font-face-default-font-expected.txt.
* fast/css/font-face-in-media-rule-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/font-face-in-media-rule-expected.txt.
* fast/css/font-size-negative-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/font-size-negative-expected.txt.
* fast/css/imageTileOpacity-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/imageTileOpacity-expected.txt.
* fast/css/import_with_baseurl-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/import_with_baseurl-expected.txt.
* fast/css/line-height-determined-by-primary-font-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/line-height-determined-by-primary-font-expected.txt.
* fast/css/line-height-font-order-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/line-height-font-order-expected.txt.
* fast/css/line-height-negative-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/line-height-negative-expected.txt.
* fast/css/max-height-none-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/max-height-none-expected.txt.
* fast/css/min-width-with-spanned-cell-expected.png: Renamed from LayoutTests/platform/efl/fast/css/min-width-with-spanned-cell-expected.png.
* fast/css/min-width-with-spanned-cell-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/min-width-with-spanned-cell-expected.txt.
* fast/css/min-width-with-spanned-cell-fixed-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/min-width-with-spanned-cell-fixed-expected.txt.
* fast/css/pseudo-first-line-border-width-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/pseudo-first-line-border-width-expected.txt.
* fast/css/replaced-element-implicit-size-expected.png: Renamed from LayoutTests/platform/efl/fast/css/replaced-element-implicit-size-expected.png.
* fast/css/vertical-align-lengths-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/vertical-align-lengths-expected.txt.
* fast/css/visibility-hit-test-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/visibility-hit-test-expected.txt.
* platform/efl-wk2/fast/css/font-smoothing-expected.png: Renamed from LayoutTests/platform/efl/fast/css/font-smoothing-expected.png.
* platform/efl-wk2/fast/css/font-weight-1-expected.png: Renamed from LayoutTests/platform/efl/fast/css/font-weight-1-expected.png.
* platform/efl-wk2/fast/css/input-search-padding-expected.png: Renamed from LayoutTests/platform/efl/fast/css/input-search-padding-expected.png.
* platform/gtk/fast/css/background-image-with-baseurl-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-absolute-position-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-absolute-position-offset-top-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-fixed-position-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-fixed-position-offset-top-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-relative-position-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-relative-position-offset-top-expected.txt: Removed.
* platform/gtk/fast/css/font-face-in-media-rule-expected.txt: Removed.
* platform/gtk/fast/css/font-size-negative-expected.txt: Removed.
* platform/gtk/fast/css/imageTileOpacity-expected.txt: Removed.
* platform/gtk/fast/css/import_with_baseurl-expected.txt: Removed.
* platform/gtk/fast/css/line-height-determined-by-primary-font-expected.txt: Removed.
* platform/gtk/fast/css/line-height-font-order-expected.txt: Removed.
* platform/gtk/fast/css/line-height-negative-expected.txt: Removed.
* platform/gtk/fast/css/max-height-none-expected.txt: Removed.
* platform/gtk/fast/css/min-width-with-spanned-cell-expected.png: Removed.
* platform/gtk/fast/css/min-width-with-spanned-cell-expected.txt: Removed.
* platform/gtk/fast/css/min-width-with-spanned-cell-fixed-expected.txt: Removed.
* platform/gtk/fast/css/pseudo-first-line-border-width-expected.txt: Removed.
* platform/gtk/fast/css/replaced-element-implicit-size-expected.png: Removed.
* platform/gtk/fast/css/vertical-align-lengths-expected.txt: Removed.
* platform/gtk/fast/css/visibility-hit-test-expected.txt: Removed.
* platform/mac/fast/css/caption-width-absolute-position-expected.txt: Removed.
* platform/mac/fast/css/caption-width-absolute-position-offset-top-expected.txt: Removed.
* platform/mac/fast/css/caption-width-fixed-position-expected.txt: Removed.
* platform/mac/fast/css/caption-width-fixed-position-offset-top-expected.txt: Removed.
* platform/mac/fast/css/caption-width-relative-position-expected.txt: Removed.
* platform/mac/fast/css/caption-width-relative-position-offset-top-expected.txt: Removed.
* platform/mac/fast/css/font-face-default-font-expected.txt: Removed.
* platform/mac/fast/css/font-face-in-media-rule-expected.txt: Removed.
* platform/mac/fast/css/min-width-with-spanned-cell-expected.txt: Removed.
* platform/mac/fast/css/min-width-with-spanned-cell-fixed-expected.txt: Removed.
* platform/mac/fast/css/pseudo-first-line-border-width-expected.txt: Removed.
* platform/win/fast/css/zoom-body-scroll-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add missing getHostCallReturnValue() for MSVC ARM
https://bugs.webkit.org/show_bug.cgi?id=123685

Reviewed by Darin Adler.

* jit/JITStubsARM.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158518 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Cleanup OpenTypeUtilities
https://bugs.webkit.org/show_bug.cgi?id=123686

Reviewed by Darin Adler.

Merge the WinCE specific code into the general Windows code to
make the compilation of WinCE port on WinNT easier.

* platform/graphics/opentype/OpenTypeUtilities.cpp:
(WebCore::renameFont):
(WebCore::renameAndActivateFont):
* platform/graphics/opentype/OpenTypeUtilities.h:
* platform/graphics/win/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/win/FontCustomPlatformDataCairo.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/wince/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix compilation of DateMath.cpp with MSVC
https://bugs.webkit.org/show_bug.cgi?id=123680

Reviewed by Darin Adler.

* wtf/DateMath.cpp:
(WTF::appendTwoDigitNumber): Help the compiler finding the
correct overload by casting the characters to LChar.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
EnforceRange doesn't enforce range of a short
https://bugs.webkit.org/show_bug.cgi?id=123661

Reviewed by Alexey Proskuryakov.

Source/WebCore:

Handle Web IDL short / unsigned short types as per the
specification:
- http://www.w3.org/TR/WebIDL/#es-short
- http://www.w3.org/TR/WebIDL/#es-unsigned-short

Specifically, we used to treat short / unsigned short as 32bit
integers, which was wrong. We now properly handle them as 16bit
integers.

No new tests, added test cases to js/dom/webidl-type-mapping.html.

* WebCore.exp.in:
* bindings/js/JSDOMBinding.cpp:
(WebCore::toSmallerInt):
(WebCore::toSmallerUInt):
(WebCore::toInt8):
(WebCore::toUInt8):
(WebCore::toInt16):
(WebCore::toUInt16):
* bindings/js/JSDOMBinding.h:
* bindings/scripts/CodeGeneratorJS.pm:
(JSValueToNative):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::setJSTestObjShortAttr):
(WebCore::setJSTestObjUnsignedShortAttr):
* testing/TypeConversions.h:
(WebCore::TypeConversions::testShort):
(WebCore::TypeConversions::setTestShort):
(WebCore::TypeConversions::testEnforceRangeShort):
(WebCore::TypeConversions::setTestEnforceRangeShort):
(WebCore::TypeConversions::testUnsignedShort):
(WebCore::TypeConversions::setTestUnsignedShort):
(WebCore::TypeConversions::testEnforceRangeUnsignedShort):
(WebCore::TypeConversions::setTestEnforceRangeUnsignedShort):
* testing/TypeConversions.idl:

Source/WebKit:

Export symbols to fix Windows build.

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:

LayoutTests:

Extend js/dom/webidl-type-mapping.html layout test to validate
Web IDL type mapping for short / unsigned short.

* js/dom/webidl-type-mapping-expected.txt:
* js/dom/webidl-type-mapping.html:


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