|
Implement HTMLMarqueeElement's animation in private scripts
This CL completely migrates HTMLMarqueeElement's implementation to Blink-in-JS. This enables us to remove RenderMarquee.cpp and most of HTMLMarqueeElement.cpp.
The only regression this migration may cause is a case where HTMLMarqueeElement's attributes are updated during an animation. If you update 'behavior', 'direction', 'loop', 'scrollAmount', 'scrollDelay' or 'trueSpeed' during the animation, the animation is expected to be continued with the new attribute setting. However, in this CL, the animation is reset with the new attribute setting. I'm not sure if this regression causes any real issue (I hope not). I think we can land this and see how it goes.
This CL slightly changes the rendering of the HTMLMarqueeElement. I updated the following layout tests accordingly.
[fast/block/float/marquee-shrink-to-avoid-floats.html]
The old rendering is wrong, and the new rendering is correct. The old rendering matches WebKit. The new rendering matches the spec, IE and Firefox.
[fast/css/MarqueeLayoutTest.html]
The old rendering is wrong, and the new rendering is correct. The old rendering matches WebKit and IE. The new rendering matches the spec and Firefox.
[html/marquee-scroll.html]
Blink-in-JS uses Web animation APIs and it renders an animation more smoothly than the previous C++ implementation. As a result, the animation moves more quickly than before and thus makes the image result undeterministic. Thus I changed the color of characters displayed in the marquee element equal to the background color of the marquee element, just to make the image result timing-independent.
[fast/inline-block/003.html]
Ditto.
[http/tests/activedomobject/marquee.html]
Now that the HTMLMarqueeElement is not an ActiveDOMObject. Thus I changed the number of ActiveDOMObjects in the test.
BUG= 341031
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183245
Total comments: 3
Total comments: 9
Total comments: 1
Total comments: 3
Total comments: 1
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+141 lines, -717 lines) |
Patch |
|
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/block/float/marquee-shrink-to-avoid-floats.html
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -8 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/css/MarqueeLayoutTest.html
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/css/MarqueeLayoutTest-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/html/marquee-scroll.html
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/inline-block/003.html
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
LayoutTests/http/tests/activedomobject/marquee.html
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
LayoutTests/http/tests/activedomobject/marquee-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
LayoutTests/inspector/elements/styles/internal-properties-text-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
LayoutTests/platform/linux/fast/block/float/marquee-shrink-to-avoid-floats-expected.png
|
View
|
1
2
3
4
5
6
7
8
9
|
Binary file |
0 comments
|
Download
|
|
M |
LayoutTests/platform/linux/fast/block/float/marquee-shrink-to-avoid-floats-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+5 lines, -20 lines |
0 comments
|
Download
|
|
M |
LayoutTests/platform/linux/fast/html/marquee-scroll-expected.png
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Binary file |
0 comments
|
Download
|
|
M |
LayoutTests/platform/linux/fast/html/marquee-scroll-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+12 lines, -5 lines |
0 comments
|
Download
|
|
M |
LayoutTests/platform/linux/fast/html/marquee-scrollamount-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
LayoutTests/platform/linux/fast/inline-block/003-expected.png
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Binary file |
0 comments
|
Download
|
|
M |
LayoutTests/platform/linux/fast/inline-block/003-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+20 lines, -11 lines |
0 comments
|
Download
|
|
M |
Source/core/core.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLMarqueeElement.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
1 chunk |
+4 lines, -26 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLMarqueeElement.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+21 lines, -115 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLMarqueeElement.idl
|
View
|
1
2
3
4
5
6
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLMarqueeElement.js
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
10 chunks |
+41 lines, -70 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderBlock.cpp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
|
D |
Source/core/rendering/RenderMarquee.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
1 chunk |
+0 lines, -107 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderMarquee.cpp
|
View
|
1
2
3
|
1 chunk |
+0 lines, -327 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderObject.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 45 (4 generated)
|