[CherryPick] WebKit does not reject some cubic-bezier form values for transition...
authoralexis@webkit.org <alexis@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2013 21:44:22 +0000 (21:44 +0000)
committerGerrit Code Review <gerrit2@kim11>
Thu, 4 Apr 2013 04:43:28 +0000 (13:43 +0900)
commit1144ea30c437d5e5b836f92e4d570b2af58a8d2e
treefb91476d9b5e056f5e00e5d6710b21841f583c98
parent3625dd3962c2daae06d361f46ec6f21731033c6d
[CherryPick] WebKit does not reject some cubic-bezier form values for transition-timing-function.

    [Title] [CherryPick] WebKit does not reject some cubic-bezier form values for transition-timing-function.
    [Issues] TWEB-828, TWEB-828
    [Problem] WebKit does not reject some cubic-bezier form values for transition-timing-function.
    [Solution] Cherry picked.
    [Cherry-Picker] HunseopJeong <hs85.jeong@samsung.com>

WebKit does not reject some cubic-bezier form values for transition-timing-function.
https://bugs.webkit.org/show_bug.cgi?id=106369

Reviewed by Dean Jackson.

Source/WebCore:

http://www.w3.org/TR/css3-transitions/#transition-timing-function-property
describes restricitions on cubic-bezier values where the x values of
the curve should be between [0, 1] and y values can exceed this range.
WebKit was not following the specification by allowing x values
exceeding the range.
The spec also says that we should reject the defintion if the condition
is not respected which is what the new code does.

Test: transitions/transitions-parsing.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parseAnimationTimingFunction):

LayoutTests:

Extended existing tests to cover the bug. Updated an existing test
which was checking wrong values.

* fast/css/transition-timing-function.html: Change the tested values as
they are considered wrong by the spec.
* fast/css/transition-timing-function-expected.txt:

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

Conflicts:

LayoutTests/ChangeLog
LayoutTests/transitions/transitions-parsing-expected.txt
LayoutTests/transitions/transitions-parsing.html
Source/WebCore/ChangeLog

Change-Id: Icb0de3cc26ac37bb133c03308af50a8c6eb59fb5
LayoutTests/fast/css/transition-timing-function-expected.txt
LayoutTests/fast/css/transition-timing-function.html
LayoutTests/transitions/transitions-parsing-expected.txt [new file with mode: 0644]
LayoutTests/transitions/transitions-parsing.html [new file with mode: 0644]
Source/WebCore/css/CSSParser.cpp