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

Issue 20262002: [css3-text] Implement text-decoration property shorthand (Closed)

Created:
7 years, 5 months ago by abinader
Modified:
7 years, 4 months ago
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, darktears, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, vcarbune.chromium, Savago-old
Visibility:
Public.

Description

[css3-text] Implement text-decoration property shorthand Adds support for CSS Level 3 text-decoration property implementation as shorthand (enabled via runtime flag), according to the specification: http://www.w3.org/TR/css-text-decor-3/#text-decoration-property Backported from WebKit: https://bugs.webkit.org/show_bug.cgi?id=92000 All layout tests that verifies/uses text-decoration computed style were updated. Editing behavior is preserved for text-decoration. BUG=165462 NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155719

Patch Set 1 #

Patch Set 2 : Fixed bogus bool check in EditingStyle.cpp, updated repaint-text-decoration-line.html test expectat… #

Patch Set 3 : Oops, forgot to properly update EditingStyle.cpp before submitting last patch set. #

Patch Set 4 : OK, so trybots are not fond of binary files - removing Mac expectation for repaint-text-decoration-… #

Total comments: 10

Patch Set 5 : Updated computed style layout test / operator|= readibility fix #

Total comments: 10

Patch Set 6 : Julien's 2nd round review fixes #

Total comments: 8

Patch Set 7 : Cleaned up code changes in EditingStyle #

Total comments: 8

Patch Set 8 : Fixed properties check in EditingStyle #

Patch Set 9 : Rebased after revision 155689. #

Total comments: 5

Patch Set 10 : Added getComputedStyle-text-decoration-shorthand-ordering.html test #

Patch Set 11 : Fixed expectation for last-minute, newly added tests in revision 155705 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -180 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/editing/deleting/delete-line-break-before-underlined-content-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/deleting/deleting-line-break-preserves-underline-color-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/deleting/merge-div-from-span-with-style-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/deleting/merge-paragraph-from-span-with-multiple-text-decoration-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/deleting/merge-paragraph-from-span-with-style-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/execCommand/inline-style-after-indentoutdent-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/execCommand/remove-format-multiple-elements-mac-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/execCommand/script-tests/inline-style-after-indentoutdent.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/execCommand/script-tests/remove-format-multiple-elements-mac.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/execCommand/script-tests/toggle-style-2.js View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/editing/execCommand/script-tests/toggle-text-decorations.js View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/editing/execCommand/toggle-style-2-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/editing/execCommand/toggle-text-decorations-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/editing/execCommand/use-css.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/execCommand/use-css-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/pasteboard/insert-u-with-text-decoration-none-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/pasteboard/preserve-underline-color-expected.txt View 7 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/style/inline-style-container-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/editing/style/push-down-implicit-styles-around-list-mac-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/editing/style/push-down-implicit-styles-around-list-win-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/editing/style/push-down-implicit-styles-mac-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/style/push-down-inline-styles-expected.txt View 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/editing/style/script-tests/inline-style-container.js View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/editing/style/script-tests/push-down-implicit-styles-around-list-mac.js View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/editing/style/script-tests/push-down-implicit-styles-around-list-win.js View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/editing/style/script-tests/push-down-implicit-styles-mac.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/style/script-tests/push-down-inline-styles.js View 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/getComputedStyle/getComputedStyle-text-decoration-expected.txt View 1 2 3 4 5 6 7 1 chunk +39 lines, -57 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/script-tests/getComputedStyle-text-decoration.js View 1 2 3 4 5 6 7 1 chunk +20 lines, -20 lines 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-1.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-1-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-2.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-2-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-3.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-3-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-4.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-4-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-5.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-alternate-stylesheet-5-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-disabled-attr.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/link-disabled-attr-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/style-enumerate-properties.html View 1 chunk +4 lines, -1 line 0 comments Download
M LayoutTests/fast/css/style-enumerate-properties-expected.txt View 1 chunk +4 lines, -1 line 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html View 1 2 3 4 1 chunk +72 lines, -0 lines 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-ordering.html View 1 2 3 4 5 6 7 8 9 1 chunk +69 lines, -0 lines 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-ordering-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +39 lines, -0 lines 0 comments Download
M LayoutTests/fast/css3-text/css3-text-decoration/repaint/repaint-text-decoration-line.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/media/w3c/test_media_queries.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/inspector/console/console-format-style-whitelist-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/inspector/styles/styles-computed-trace-expected.txt View 1 2 3 4 5 6 7 2 chunks +14 lines, -2 lines 0 comments Download
M LayoutTests/inspector/styles/styles-new-API-expected.txt View 1 2 3 4 5 3 chunks +9 lines, -0 lines 0 comments Download
M LayoutTests/media/track/track-css-matching-default.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/media/track/track-css-matching-default-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/css/getComputedStyle-basic-expected.txt View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSParser-in.cpp View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -1 line 0 comments Download
M Source/core/css/CSSShorthands.in View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/EditingStyle.cpp View 1 2 3 4 5 6 7 8 9 10 10 chunks +40 lines, -17 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
abinader
7 years, 5 months ago (2013-07-25 06:38:50 UTC) #1
abinader
Both Win and Linux reports a failing test: LayoutTests/fast/images/imagemap-case.html Which is not related to this ...
7 years, 5 months ago (2013-07-25 16:38:03 UTC) #2
abinader
On 2013/07/25 16:38:03, abinader wrote: > Both Win and Linux reports a failing test: > ...
7 years, 5 months ago (2013-07-26 02:28:34 UTC) #3
Julien - ping for review
Levi should probably look at the editing bits, they look too complex to me and ...
7 years, 5 months ago (2013-07-27 01:46:35 UTC) #4
abinader
https://codereview.chromium.org/20262002/diff/12001/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html File LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html (right): https://codereview.chromium.org/20262002/diff/12001/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html#newcode7 LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html:7: <script src="script-tests/getComputedStyle-text-decoration-shorthand.js"></script> On 2013/07/27 01:46:35, Julien Chaffraix wrote: > ...
7 years, 4 months ago (2013-07-28 04:21:52 UTC) #5
abinader
That's, weird, all {mac,win,linux}_blink_rel trybots are shown as failed, though they really are green when ...
7 years, 4 months ago (2013-07-28 15:28:20 UTC) #6
abinader
On 2013/07/28 15:28:20, abinader wrote: > That's, weird, all {mac,win,linux}_blink_rel trybots are shown as failed, ...
7 years, 4 months ago (2013-07-29 15:43:40 UTC) #7
Julien - ping for review
FWIW I think we should pepper the editing code with ASSERTs that we don't see ...
7 years, 4 months ago (2013-07-29 18:53:11 UTC) #8
abinader
Updated patch according to Julien's 2nd round review. Highlights: - Now using getCSSPropertyValuesForShorthandProperties() instead of ...
7 years, 4 months ago (2013-07-29 21:15:31 UTC) #9
Julien - ping for review
https://codereview.chromium.org/20262002/diff/42001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/20262002/diff/42001/LayoutTests/TestExpectations#newcode267 LayoutTests/TestExpectations:267: crbug.com/165462 fast/css3-text/css3-text-decoration/repaint/repaint-text-decoration-line.html [ NeedsRebaseline ] Could you explain why ...
7 years, 4 months ago (2013-07-30 22:37:22 UTC) #10
abinader
https://codereview.chromium.org/20262002/diff/42001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/20262002/diff/42001/LayoutTests/TestExpectations#newcode267 LayoutTests/TestExpectations:267: crbug.com/165462 fast/css3-text/css3-text-decoration/repaint/repaint-text-decoration-line.html [ NeedsRebaseline ] On 2013/07/30 22:37:22, Julien ...
7 years, 4 months ago (2013-07-31 21:24:02 UTC) #11
Julien - ping for review
https://codereview.chromium.org/20262002/diff/56001/Source/core/editing/EditingStyle.cpp File Source/core/editing/EditingStyle.cpp (right): https://codereview.chromium.org/20262002/diff/56001/Source/core/editing/EditingStyle.cpp#newcode59 Source/core/editing/EditingStyle.cpp:59: // Needs to be removed when CSS3 Text Decoration ...
7 years, 4 months ago (2013-08-02 23:22:12 UTC) #12
abinader
https://codereview.chromium.org/20262002/diff/56001/Source/core/editing/EditingStyle.cpp File Source/core/editing/EditingStyle.cpp (right): https://codereview.chromium.org/20262002/diff/56001/Source/core/editing/EditingStyle.cpp#newcode59 Source/core/editing/EditingStyle.cpp:59: // Needs to be removed when CSS3 Text Decoration ...
7 years, 4 months ago (2013-08-05 22:51:14 UTC) #13
Julien - ping for review
lgtm https://codereview.chromium.org/20262002/diff/72001/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html File LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html (right): https://codereview.chromium.org/20262002/diff/72001/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html#newcode65 LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html:65: shouldBe("checkComputedStyleValue()", "true"); The specification allows any order for ...
7 years, 4 months ago (2013-08-07 17:10:00 UTC) #14
abinader
https://codereview.chromium.org/20262002/diff/72001/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html File LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html (right): https://codereview.chromium.org/20262002/diff/72001/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html#newcode65 LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html:65: shouldBe("checkComputedStyleValue()", "true"); On 2013/08/07 17:10:00, Julien Chaffraix wrote: > ...
7 years, 4 months ago (2013-08-07 17:24:04 UTC) #15
Julien - ping for review
https://codereview.chromium.org/20262002/diff/72001/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html File LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html (right): https://codereview.chromium.org/20262002/diff/72001/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html#newcode65 LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html:65: shouldBe("checkComputedStyleValue()", "true"); On 2013/08/07 17:24:04, abinader wrote: > On ...
7 years, 4 months ago (2013-08-07 18:14:54 UTC) #16
abinader
On 2013/08/07 18:14:54, Julien Chaffraix wrote: > https://codereview.chromium.org/20262002/diff/72001/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html > File > LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html > (right): > ...
7 years, 4 months ago (2013-08-07 18:51:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruno.d@partner.samsung.com/20262002/83001
7 years, 4 months ago (2013-08-07 18:52:18 UTC) #18
abinader
On 2013/08/07 18:52:18, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 4 months ago (2013-08-07 19:29:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruno.d@partner.samsung.com/20262002/93001
7 years, 4 months ago (2013-08-07 19:58:03 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=1637
7 years, 4 months ago (2013-08-07 22:50:56 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruno.d@partner.samsung.com/20262002/93001
7 years, 4 months ago (2013-08-07 22:59:31 UTC) #22
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
7 years, 4 months ago (2013-08-07 22:59:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruno.d@partner.samsung.com/20262002/93001
7 years, 4 months ago (2013-08-07 23:03:53 UTC) #24
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
7 years, 4 months ago (2013-08-07 23:04:42 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruno.d@partner.samsung.com/20262002/93001
7 years, 4 months ago (2013-08-07 23:06:52 UTC) #26
commit-bot: I haz the power
Change committed as 155719
7 years, 4 months ago (2013-08-07 23:08:35 UTC) #27
falken
On 2013/08/07 23:08:35, I haz the power (commit-bot) wrote: > Change committed as 155719 I ...
7 years, 4 months ago (2013-08-08 09:03:00 UTC) #28
abinader
7 years, 4 months ago (2013-08-08 17:21:03 UTC) #29
Message was sent while issue was closed.
On 2013/08/08 09:03:00, falken wrote:
> On 2013/08/07 23:08:35, I haz the power (commit-bot) wrote:
> > Change committed as 155719
> 
> I think this is causing the following assert failure when I try to open
> content_shell:
> 
> ASSERTION FAILED: Shorthand property id = 151 wasn't expanded at parsing time
> !isExpandedShorthand(id)
> ../../third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp(1152)
:
> static void WebCore::StyleBuilder::applyProperty(WebCore::CSSPropertyID,
> WebCore::StyleResolverState&, WebCore::CSSValue*)

Hmm I see what is happening... my guess is that by adding text-decoration to
CSSShorthands.in, we do not check for runtime feature. It is only a shorthand
property when runtime feature is enabled, otherwise it fallbacks to current
implementation. I'll look for ways to tell CSSShorthands.in to have this
property listed only if it is enabled by runtime feature.

Powered by Google App Engine
This is Rietveld 408576698