Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Issue 23264017: Implement support for unprefixed keyframes rules resolution. (Closed)

Created:
7 years, 4 months ago by darktears
Modified:
7 years, 4 months ago
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), eae+blinkwatch, dglazkov+blink, dstockwell, Timothy Loh, apavlov+blink_chromium.org, Steve Block, dino_apple.com, Eric Willigers, eae
Visibility:
Public.

Description

Implement support for unprefixed keyframes rules resolution. This commit implements the support for parsing and resolving unprefixed @keyframes. The behavior is as followed : - For a given animation name if only a @-webkit-keyframe or @keyframe is defined then we resolve it. - For a given animation name if both @-webkit-keyframes and @keyframes are defined, the unprefixed version is always taken. - As before if you define multiple time a @keyframes for the same animation name (prefixed or not) the last declaration is resolved (as before). This commit doesn't implement yet the CSSOM part of the @keyframes, it will be done in a separate patch. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156490

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -57 lines) Patch
A + LayoutTests/animations/duplicated-keyframes-name-unprefixed-01.html View 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/animations/duplicated-keyframes-name-unprefixed-01-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/animations/duplicated-keyframes-name-unprefixed-02.html View 1 chunk +6 lines, -2 lines 0 comments Download
A + LayoutTests/animations/duplicated-keyframes-name-unprefixed-02-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/animations/duplicated-keyframes-name-unprefixed-03.html View 1 chunk +7 lines, -3 lines 0 comments Download
A + LayoutTests/animations/duplicated-keyframes-name-unprefixed-03-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/animations/keyframes-unprefixed-01.html View 2 chunks +6 lines, -14 lines 0 comments Download
A + LayoutTests/animations/keyframes-unprefixed-01-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/animations/keyframes-unprefixed-02.html View 2 chunks +9 lines, -12 lines 0 comments Download
A + LayoutTests/animations/keyframes-unprefixed-02-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/animations/keyframes-unprefixed-03.html View 2 chunks +12 lines, -13 lines 0 comments Download
A + LayoutTests/animations/keyframes-unprefixed-03-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/css/CSSGrammar.y.in View 1 2 chunks +10 lines, -1 line 0 comments Download
M Source/core/css/CSSKeyframesRule.h View 3 chunks +8 lines, -0 lines 0 comments Download
M Source/core/css/CSSKeyframesRule.cpp View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M Source/core/css/CSSParser.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSParser-in.cpp View 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/css/resolver/ScopedStyleResolver.cpp View 1 chunk +9 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
darktears
7 years, 4 months ago (2013-08-20 20:49:26 UTC) #1
eseidel
I suspect that preferring the unprefixed version is correct, but will change behavior. If you ...
7 years, 4 months ago (2013-08-20 22:24:35 UTC) #2
eseidel
https://codereview.chromium.org/23264017/diff/4001/Source/core/css/CSSParser-in.cpp File Source/core/css/CSSParser-in.cpp (right): https://codereview.chromium.org/23264017/diff/4001/Source/core/css/CSSParser-in.cpp#newcode11207 Source/core/css/CSSParser-in.cpp:11207: rule->setVendorPrefixed(isPrefixed); I really like this pattern, btw. Of just ...
7 years, 4 months ago (2013-08-20 22:26:31 UTC) #3
darktears
On 2013/08/20 22:26:31, eseidel wrote: > https://codereview.chromium.org/23264017/diff/4001/Source/core/css/CSSParser-in.cpp > File Source/core/css/CSSParser-in.cpp (right): > > https://codereview.chromium.org/23264017/diff/4001/Source/core/css/CSSParser-in.cpp#newcode11207 > ...
7 years, 4 months ago (2013-08-21 11:20:46 UTC) #4
darktears
On 2013/08/20 22:24:35, eseidel wrote: > I suspect that preferring the unprefixed version is correct, ...
7 years, 4 months ago (2013-08-21 11:27:53 UTC) #5
eseidel
I appreciate your careful testing.
7 years, 4 months ago (2013-08-21 19:29:52 UTC) #6
eseidel
lgtm
7 years, 4 months ago (2013-08-21 19:29:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexis.menard@intel.com/23264017/24001
7 years, 4 months ago (2013-08-21 19:30:54 UTC) #8
commit-bot: I haz the power
7 years, 4 months ago (2013-08-21 19:36:50 UTC) #9
Message was sent while issue was closed.
Change committed as 156490

Powered by Google App Engine
This is Rietveld 408576698