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

Issue 1031223003: SVG doesn't recognize rem units (Closed)

Created:
5 years, 9 months ago by Shanmuga Pandi
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

SVG doesn't recognize rem units. Adds support for the 'rem' unit in SVG <length> values. BUG=368598, 470449 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193355

Patch Set 1 #

Total comments: 7

Patch Set 2 : svg doesn't recognize rem units #

Patch Set 3 : Added SVG ref-test #

Total comments: 14

Patch Set 4 : Align with review comments #

Total comments: 6

Patch Set 5 : Fixed the small nits reported. #

Total comments: 2

Patch Set 6 : Fixed small nit #

Patch Set 7 : "fixed windows build failure" #

Patch Set 8 : Fixes builderror #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -11 lines) Patch
A LayoutTests/fast/svg/svglength.html View 1 2 3 1 chunk +189 lines, -0 lines 0 comments Download
A LayoutTests/svg/css/svg-length-rem-type.svg View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/svg/css/svg-length-rem-type-expected.svg View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A + LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
A LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change-expected.html View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/svg/stroke/stroke-array-rem-type.svg View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/svg/stroke/stroke-array-rem-type-expected.svg View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/svg/stroke/stroke-width-rem-type.svg View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/svg/stroke/stroke-width-rem-type-expected.svg View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/svg/SVGLength.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M Source/core/svg/SVGLength.cpp View 1 6 chunks +16 lines, -2 lines 0 comments Download
M Source/core/svg/SVGLengthContext.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M Source/core/svg/SVGLengthContext.cpp View 1 2 3 4 5 6 7 4 chunks +48 lines, -0 lines 0 comments Download
M Source/core/svg/SVGLengthTearOff.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/svg/SVGLengthTearOff.cpp View 1 2 3 4 5 3 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (11 generated)
Shanmuga Pandi
Please review it.
5 years, 9 months ago (2015-03-26 12:45:17 UTC) #2
Erik Dahlström (inactive)
I think we should try to support rem units in all the svg <length> properties ...
5 years, 9 months ago (2015-03-26 16:11:04 UTC) #4
Timothy Loh
https://codereview.chromium.org/1031223003/diff/1/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1031223003/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode8149 Source/core/css/parser/CSSPropertyParser.cpp:8149: if (validPrimitive) { Can we just do the same ...
5 years, 9 months ago (2015-03-27 09:51:03 UTC) #5
Erik Dahlström (inactive)
One more thing, you need to make sure that that any new <length> units aren't ...
5 years, 9 months ago (2015-03-27 10:05:01 UTC) #6
Shanmuga Pandi
On 2015/03/27 09:51:03, Timothy Loh wrote: > https://codereview.chromium.org/1031223003/diff/1/Source/core/css/parser/CSSPropertyParser.cpp > File Source/core/css/parser/CSSPropertyParser.cpp (right): > > https://codereview.chromium.org/1031223003/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode8149 ...
5 years, 9 months ago (2015-03-27 11:42:38 UTC) #7
Shanmuga Pandi
On 2015/03/27 10:05:01, Erik Dahlström wrote: > One more thing, you need to make sure ...
5 years, 9 months ago (2015-03-27 11:44:23 UTC) #8
Erik Dahlström (inactive)
On 2015/03/27 11:44:23, Shanmuga Pandi wrote: > On 2015/03/27 10:05:01, Erik Dahlström wrote: > > ...
5 years, 9 months ago (2015-03-27 11:57:28 UTC) #9
Shanmuga Pandi
https://codereview.chromium.org/1031223003/diff/1/LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt File LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt (right): https://codereview.chromium.org/1031223003/diff/1/LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt#newcode7 LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt:7: LayoutSVGPath {line} at (8,8) size 100x100 [stroke={[type=SOLID] [color=#FF0000] [stroke ...
5 years, 8 months ago (2015-03-30 14:40:14 UTC) #10
Erik Dahlström (inactive)
https://codereview.chromium.org/1031223003/diff/1/LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt File LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt (right): https://codereview.chromium.org/1031223003/diff/1/LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt#newcode7 LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt:7: LayoutSVGPath {line} at (8,8) size 100x100 [stroke={[type=SOLID] [color=#FF0000] [stroke ...
5 years, 8 months ago (2015-03-30 15:14:19 UTC) #11
Shanmuga Pandi
On 2015/03/30 15:14:19, Erik Dahlström wrote: > https://codereview.chromium.org/1031223003/diff/1/LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt > File LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt (right): > > https://codereview.chromium.org/1031223003/diff/1/LayoutTests/svg/stroke/stroke-width-rem-type-expected.txt#newcode7 ...
5 years, 8 months ago (2015-03-31 05:59:57 UTC) #12
Erik Dahlström (inactive)
Thanks, this is starting to look better. I'd like to see a repaint test where ...
5 years, 8 months ago (2015-03-31 09:20:50 UTC) #13
Shanmuga Pandi
Added repaint test also. https://codereview.chromium.org/1031223003/diff/40001/LayoutTests/fast/svg/svglength.html File LayoutTests/fast/svg/svglength.html (right): https://codereview.chromium.org/1031223003/diff/40001/LayoutTests/fast/svg/svglength.html#newcode16 LayoutTests/fast/svg/svglength.html:16: "" : 1, On 2015/03/31 ...
5 years, 8 months ago (2015-04-01 15:01:38 UTC) #14
Erik Dahlström (inactive)
lgtm w/nits. https://codereview.chromium.org/1031223003/diff/40001/Source/core/svg/SVGLengthContext.cpp File Source/core/svg/SVGLengthContext.cpp (right): https://codereview.chromium.org/1031223003/diff/40001/Source/core/svg/SVGLengthContext.cpp#newcode302 Source/core/svg/SVGLengthContext.cpp:302: const Document& document = currentContext->layoutObject()->document(); On 2015/04/01 ...
5 years, 8 months ago (2015-04-02 07:58:41 UTC) #15
Erik Dahlström (inactive)
On 2015/03/27 09:51:03, Timothy Loh wrote: > https://codereview.chromium.org/1031223003/diff/1/Source/core/css/parser/CSSPropertyParser.cpp > File Source/core/css/parser/CSSPropertyParser.cpp (right): > > https://codereview.chromium.org/1031223003/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode8149 ...
5 years, 8 months ago (2015-04-02 08:10:32 UTC) #16
Shanmuga Pandi
Checked the animated side of SVG with the below content. <!DOCTYPE html> <html style="font-size:10px"> <body ...
5 years, 8 months ago (2015-04-02 13:06:51 UTC) #17
Shanmuga Pandi
https://codereview.chromium.org/1031223003/diff/40001/Source/core/svg/SVGLengthContext.cpp#newcode302 > Source/core/svg/SVGLengthContext.cpp:302: const Document& document = > currentContext->layoutObject()->document(); > On 2015/04/01 15:01:37, Shanmuga Pandi ...
5 years, 8 months ago (2015-04-02 13:21:37 UTC) #18
Erik Dahlström (inactive)
Still lgtm w/nit. Thanks, I set issue 473117 as blocked on the two other issues ...
5 years, 8 months ago (2015-04-02 13:37:25 UTC) #19
Shanmuga Pandi
https://codereview.chromium.org/1031223003/diff/80001/Source/core/svg/SVGLengthTearOff.cpp File Source/core/svg/SVGLengthTearOff.cpp (right): https://codereview.chromium.org/1031223003/diff/80001/Source/core/svg/SVGLengthTearOff.cpp#newcode111 Source/core/svg/SVGLengthTearOff.cpp:111: // TODO(shanmuga.m@samsung.com): Not all <length> properties have 0 (with ...
5 years, 8 months ago (2015-04-02 13:43:58 UTC) #20
Erik Dahlström (inactive)
On 2015/04/02 13:43:58, Shanmuga Pandi wrote: > https://codereview.chromium.org/1031223003/diff/80001/Source/core/svg/SVGLengthTearOff.cpp > File Source/core/svg/SVGLengthTearOff.cpp (right): > > https://codereview.chromium.org/1031223003/diff/80001/Source/core/svg/SVGLengthTearOff.cpp#newcode111 ...
5 years, 8 months ago (2015-04-02 13:51:09 UTC) #21
Shanmuga Pandi
On 2015/04/02 13:51:09, Erik Dahlström wrote: > On 2015/04/02 13:43:58, Shanmuga Pandi wrote: > > ...
5 years, 8 months ago (2015-04-02 13:55:44 UTC) #22
Shanmuga Pandi
On 2015/04/02 13:55:44, Shanmuga Pandi wrote: Please review it. Thanks
5 years, 8 months ago (2015-04-06 14:59:57 UTC) #23
Timothy Loh
On 2015/04/06 14:59:57, Shanmuga Pandi wrote: > On 2015/04/02 13:55:44, Shanmuga Pandi wrote: > > ...
5 years, 8 months ago (2015-04-08 00:07:18 UTC) #24
Shanmuga Pandi
On 2015/04/08 00:07:18, Timothy Loh wrote: > On 2015/04/06 14:59:57, Shanmuga Pandi wrote: > > ...
5 years, 8 months ago (2015-04-08 06:15:06 UTC) #25
Timothy Loh
On 2015/04/08 06:15:06, Shanmuga Pandi wrote: > On 2015/04/08 00:07:18, Timothy Loh wrote: > > ...
5 years, 8 months ago (2015-04-08 06:17:44 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1031223003/100001
5 years, 8 months ago (2015-04-08 06:19:07 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/30737)
5 years, 8 months ago (2015-04-08 06:28:11 UTC) #31
Timothy Loh
On 2015/04/08 06:28:11, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 8 months ago (2015-04-08 06:29:13 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1031223003/120001
5 years, 8 months ago (2015-04-08 09:31:37 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/41173) win_blink_compile_dbg on tryserver.blink (JOB_FAILED, ...
5 years, 8 months ago (2015-04-08 10:00:31 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1031223003/140001
5 years, 8 months ago (2015-04-08 11:14:56 UTC) #41
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 12:54:22 UTC) #42
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193355

Powered by Google App Engine
This is Rietveld 408576698