|
|
Support subpixel values for text-shadow and box-shadow
This converts the int members of ShadowData to LayoutUnit and chases
them through the callstack. The actual calls on the context were already
using float.
There are two caveats:
- When border-radius is used, we don't support subpixel spread values. Subpixel blurs and offsets are still supported
- For inset shadows, we don't support subpixel values
Both limitations come from RoundedRect only supporting integer values.
R=leviw@chromium.org
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165173
Total comments: 2
Total comments: 10
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+183 lines, -73 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/animations/resources/animation-test-helpers.js
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/sub-pixel/shadows-computed-style.html
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/sub-pixel/shadows-computed-style-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/sub-pixel/shadows-hidpi.html
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/fast/sub-pixel/shadows-hidpi-expected.png
|
View
|
1
2
3
4
|
Binary file |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/sub-pixel/shadows-hidpi-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/legacy-animations-engine/animations/interpolation/box-shadow-interpolation-expected.txt
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/resolver/StyleBuilderConverter.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/EllipsisBox.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/InlineTextBox.cpp
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderBoxModelObject.cpp
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+21 lines, -13 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/RenderStyle.cpp
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/ShadowData.h
|
View
|
1
2
3
4
5
|
3 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/ShadowData.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/ShadowList.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/ShadowList.cpp
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+13 lines, -20 lines |
0 comments
|
Download
|
 |
M |
Source/platform/animation/AnimationUtilities.h
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 23 (0 generated)
|