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

Unified Diff: LayoutTests/platform/linux/svg/stroke/zero-length-path-linecap-rendering-expected.txt

Issue 208323007: Fix getBBox() returning (0,0) bug when width or height is zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@myzbackup
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/platform/linux/svg/stroke/zero-length-path-linecap-rendering-expected.txt
diff --git a/LayoutTests/svg/stroke/zero-length-path-linecap-rendering-expected.txt b/LayoutTests/platform/linux/svg/stroke/zero-length-path-linecap-rendering-expected.txt
similarity index 79%
copy from LayoutTests/svg/stroke/zero-length-path-linecap-rendering-expected.txt
copy to LayoutTests/platform/linux/svg/stroke/zero-length-path-linecap-rendering-expected.txt
index e6733ed1048bf0fd86519cb693477bf0cb681caa..b85ee12d158d36cd805b494c6fa75d2dccabc233 100644
--- a/LayoutTests/svg/stroke/zero-length-path-linecap-rendering-expected.txt
+++ b/LayoutTests/platform/linux/svg/stroke/zero-length-path-linecap-rendering-expected.txt
@@ -4,96 +4,96 @@ layer at (0,0) size 800x600
RenderSVGRoot {svg} at (0,0) size 600x150
RenderSVGContainer {g} at (0,0) size 600x150
RenderSVGRect {rect} at (0,0) size 600x150 [fill={[type=SOLID] [color=#808080]}] [x=0.00] [y=0.00] [width=600.00] [height=150.00]
- RenderSVGContainer {g} at (5,55) size 40x90
- RenderSVGEllipse {circle} at (5,55) size 40x40 [fill={[type=SOLID] [color=#008000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (4,54) size 42x91
+ RenderSVGEllipse {circle} at (4,54) size 42x42 [fill={[type=SOLID] [color=#008000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (5,105) size 40x40 [fill={[type=SOLID] [color=#008000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25"]
RenderSVGPath {path} at (0,0) size 0x0 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0"]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125"]
- RenderSVGContainer {g} at (55,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(50.00,0.00)}]
- RenderSVGContainer {use} at (55,55) size 40x90
- RenderSVGContainer {g} at (55,55) size 40x90
- RenderSVGEllipse {circle} at (55,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (54,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(50.00,0.00)}]
+ RenderSVGContainer {use} at (54,54) size 42x91
+ RenderSVGContainer {g} at (54,54) size 42x91
+ RenderSVGEllipse {circle} at (54,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (55,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 Z"]
RenderSVGPath {path} at (55,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 Z"]
RenderSVGPath {path} at (55,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 Z"]
- RenderSVGContainer {g} at (105,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,0.00)}]
- RenderSVGContainer {use} at (105,55) size 40x90
- RenderSVGContainer {g} at (105,55) size 40x90
- RenderSVGEllipse {circle} at (105,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (104,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,0.00)}]
+ RenderSVGContainer {use} at (104,54) size 42x91
+ RenderSVGContainer {g} at (104,54) size 42x91
+ RenderSVGEllipse {circle} at (104,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (105,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 L 25 25"]
RenderSVGPath {path} at (105,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 L 0 0"]
RenderSVGPath {path} at (105,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 L 25 125"]
- RenderSVGContainer {g} at (155,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(150.00,0.00)}]
- RenderSVGContainer {use} at (155,55) size 40x90
- RenderSVGContainer {g} at (155,55) size 40x90
- RenderSVGEllipse {circle} at (155,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (154,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(150.00,0.00)}]
+ RenderSVGContainer {use} at (154,54) size 42x91
+ RenderSVGContainer {g} at (154,54) size 42x91
+ RenderSVGEllipse {circle} at (154,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (155,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 L 25 25"]
RenderSVGPath {path} at (155,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 L 0 0"]
RenderSVGPath {path} at (155,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 L 25 125"]
- RenderSVGContainer {g} at (205,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(200.00,0.00)}]
- RenderSVGContainer {use} at (205,55) size 40x90
- RenderSVGContainer {g} at (205,55) size 40x90
- RenderSVGEllipse {circle} at (205,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (204,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(200.00,0.00)}]
+ RenderSVGContainer {use} at (204,54) size 42x91
+ RenderSVGContainer {g} at (204,54) size 42x91
+ RenderSVGEllipse {circle} at (204,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (205,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 L 25 25"]
RenderSVGPath {path} at (205,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 L 0 0"]
RenderSVGPath {path} at (205,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 L 25 125"]
- RenderSVGContainer {g} at (255,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(250.00,0.00)}]
- RenderSVGContainer {use} at (255,55) size 40x90
- RenderSVGContainer {g} at (255,55) size 40x90
- RenderSVGEllipse {circle} at (255,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (254,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(250.00,0.00)}]
+ RenderSVGContainer {use} at (254,54) size 42x91
+ RenderSVGContainer {g} at (254,54) size 42x91
+ RenderSVGEllipse {circle} at (254,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (255,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 C 25 25 25 25 25 25"]
RenderSVGPath {path} at (255,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 C 0 0 0 0 0 0"]
RenderSVGPath {path} at (255,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 C 25 125 25 125 25 125"]
- RenderSVGContainer {g} at (305,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(300.00,0.00)}]
- RenderSVGContainer {use} at (305,55) size 40x90
- RenderSVGContainer {g} at (305,55) size 40x90
- RenderSVGEllipse {circle} at (305,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (304,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(300.00,0.00)}]
+ RenderSVGContainer {use} at (304,54) size 42x91
+ RenderSVGContainer {g} at (304,54) size 42x91
+ RenderSVGEllipse {circle} at (304,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (305,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 C 25 25 25 25 25 25"]
RenderSVGPath {path} at (305,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 C 0 0 0 0 0 0"]
RenderSVGPath {path} at (305,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 C 25 125 25 125 25 125"]
- RenderSVGContainer {g} at (355,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(350.00,0.00)}]
- RenderSVGContainer {use} at (355,55) size 40x90
- RenderSVGContainer {g} at (355,55) size 40x90
- RenderSVGEllipse {circle} at (355,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (354,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(350.00,0.00)}]
+ RenderSVGContainer {use} at (354,54) size 42x91
+ RenderSVGContainer {g} at (354,54) size 42x91
+ RenderSVGEllipse {circle} at (354,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (355,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 C 25 25 25 25 25 25"]
RenderSVGPath {path} at (355,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 C 0 0 0 0 0 0"]
RenderSVGPath {path} at (355,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 C 25 125 25 125 25 125"]
- RenderSVGContainer {g} at (405,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(400.00,0.00)}]
- RenderSVGContainer {use} at (405,55) size 40x90
- RenderSVGContainer {g} at (405,55) size 40x90
- RenderSVGEllipse {circle} at (405,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (404,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(400.00,0.00)}]
+ RenderSVGContainer {use} at (404,54) size 42x91
+ RenderSVGContainer {g} at (404,54) size 42x91
+ RenderSVGEllipse {circle} at (404,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (405,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 C 25 25 25 25 25 25"]
RenderSVGPath {path} at (405,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 C 0 0 0 0 0 0"]
RenderSVGPath {path} at (405,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 C 25 125 25 125 25 125"]
- RenderSVGContainer {g} at (455,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(450.00,0.00)}]
- RenderSVGContainer {use} at (455,55) size 40x90
- RenderSVGContainer {g} at (455,55) size 40x90
- RenderSVGEllipse {circle} at (455,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (454,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(450.00,0.00)}]
+ RenderSVGContainer {use} at (454,54) size 42x91
+ RenderSVGContainer {g} at (454,54) size 42x91
+ RenderSVGEllipse {circle} at (454,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (455,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 L 25 25"]
RenderSVGPath {path} at (455,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 L 0 0"]
RenderSVGPath {path} at (455,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 L 25 125"]
- RenderSVGContainer {g} at (505,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(500.00,0.00)}]
- RenderSVGContainer {use} at (505,55) size 40x90
- RenderSVGContainer {g} at (505,55) size 40x90
- RenderSVGEllipse {circle} at (505,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (504,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(500.00,0.00)}]
+ RenderSVGContainer {use} at (504,54) size 42x91
+ RenderSVGContainer {g} at (504,54) size 42x91
+ RenderSVGEllipse {circle} at (504,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (505,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 L 25 25"]
RenderSVGPath {path} at (505,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 L 0 0"]
RenderSVGPath {path} at (505,105) size 40x40 [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 125 L 25 125"]
- RenderSVGContainer {g} at (555,55) size 40x90 [transform={m=((1.00,0.00)(0.00,1.00)) t=(550.00,0.00)}]
- RenderSVGContainer {use} at (555,55) size 40x90
- RenderSVGContainer {g} at (555,55) size 40x90
- RenderSVGEllipse {circle} at (555,55) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
+ RenderSVGContainer {g} at (554,54) size 42x91 [transform={m=((1.00,0.00)(0.00,1.00)) t=(550.00,0.00)}]
+ RenderSVGContainer {use} at (554,54) size 42x91
+ RenderSVGContainer {g} at (554,54) size 42x91
+ RenderSVGEllipse {circle} at (554,54) size 42x42 [fill={[type=SOLID] [color=#FF0000]}] [cx=25.00] [cy=75.00] [r=20.00]
RenderSVGRect {rect} at (555,105) size 40x40 [fill={[type=SOLID] [color=#FF0000]}] [x=5.00] [y=105.00] [width=40.00] [height=40.00]
RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=40.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 25 25 L 25 25"]
RenderSVGPath {path} at (555,55) size 40x40 [transform={m=((1.00,0.00)(0.00,1.00)) t=(25.00,75.00)}] [stroke={[type=SOLID] [color=#008000] [stroke width=40.00] [line cap=ROUND]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0 L 0 0"]

Powered by Google App Engine
This is Rietveld 408576698