Enable SATURATED_LAYOUT_ARITHMETIC.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Aug 2014 21:34:21 +0000 (21:34 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Aug 2014 21:34:21 +0000 (21:34 +0000)
commitce635f5092d8c3a62bcffd958f176d9b4943df2c
tree46c41743629d913f56b1cdaf8d27a0232b9aa7b6
parentde8b592b371d7e3ba2b2c2abdc8135009a1ae35d
Enable SATURATED_LAYOUT_ARITHMETIC.
https://bugs.webkit.org/show_bug.cgi?id=136106

Reviewed by Simon Fraser.

SATURATED_LAYOUT_ARITHMETIC protects LayoutUnit against arithmetic overflow.
(No measurable performance regression on Mac.)

.:

* Source/cmake/OptionsMac.cmake:
* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

Test: fast/dynamic/saturated-layout-arithmetic.html

* Configurations/FeatureDefines.xcconfig:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:

Source/WTF:

* wtf/FeatureDefines.h:

LayoutTests:

* fast/dynamic/saturated-layout-arithmetic-expected.html: Added.
* fast/dynamic/saturated-layout-arithmetic.html: Added.
* fast/ruby/ruby-base-merge-block-children-crash-2.html: saturated arithmetics changes behavior. fix test case.
* scrollbars/scrollbar-large-overflow-rectangle.html: saturated arithmetics changes behavior. fix test case.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
19 files changed:
ChangeLog
LayoutTests/ChangeLog
LayoutTests/fast/dynamic/saturated-layout-arithmetic-expected.html [new file with mode: 0644]
LayoutTests/fast/dynamic/saturated-layout-arithmetic.html [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-base-merge-block-children-crash-2.html
LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
Source/WTF/ChangeLog
Source/WTF/wtf/FeatureDefines.h
Source/WebCore/ChangeLog
Source/WebCore/Configurations/FeatureDefines.xcconfig
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/Configurations/FeatureDefines.xcconfig
Source/WebKit2/ChangeLog
Source/WebKit2/Configurations/FeatureDefines.xcconfig
Source/cmake/OptionsMac.cmake
Source/cmake/WebKitFeatures.cmake
Source/cmakeconfig.h.cmake