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

Issue 341033003: StylePropertySerializer should expand all property if needed. (Closed)

Created:
6 years, 6 months ago by tasak
Modified:
6 years, 2 months ago
Reviewers:
esprehn, dglazkov, rune
CC:
aandrey+blink_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, caseq+blink_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, ed+blinkwatch_opera.com, eustas+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, paulirish+reviews_chromium.org, pfeldman+blink_chromium.org, rwlbuis, rune+blink, sergeyv+blink_chromium.org, vsevik+blink_chromium.org, yurys+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

StylePropertySerializer should expand all property if needed. For example, if we have "div { all: initial; color: red; }", the all property should be expanded to all properties with initial value, e.g. display: initial, except color. So the expected result is "div { display: initial; ... color: red; }". Spec of all property: http://dev.w3.org/csswg/css-cascade/#all-shorthand BUG=172051 TEST=fast/css/all-shorthand-css-text.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184252

Patch Set 1 : #

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Patch Set 4 : Rebaselined #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -83 lines) Patch
M LayoutTests/editing/style/push-down-inline-styles-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/editing/style/script-tests/push-down-inline-styles.js View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/all-shorthand-css-text.html View 4 chunks +14 lines, -1 line 0 comments Download
M LayoutTests/fast/css/all-shorthand-css-text-expected.txt View 1 chunk +26 lines, -19 lines 0 comments Download
M LayoutTests/inspector/console/console-format-style-whitelist-expected.txt View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/CSSValueList.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/StylePropertySerializer.h View 1 2 3 3 chunks +60 lines, -2 lines 0 comments Download
M Source/core/css/StylePropertySerializer.cpp View 1 2 3 23 chunks +206 lines, -55 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
tasak
Would you review this CL? The differences between my old patch (https://codereview.chromium.org/216803002/) and this patch ...
6 years, 6 months ago (2014-06-19 08:12:01 UTC) #1
tasak
Would you review this CL?
6 years, 5 months ago (2014-07-01 08:44:22 UTC) #2
tasak
On 2014/07/01 08:44:22, tasak wrote: > Would you review this CL? ping.
6 years, 3 months ago (2014-09-01 07:24:40 UTC) #3
esprehn
Why do we want to expand all: unset into hundreds of properties instead of just ...
6 years, 3 months ago (2014-09-02 19:41:57 UTC) #4
rune
https://codereview.chromium.org/341033003/diff/70001/Source/core/css/StylePropertySerializer.cpp File Source/core/css/StylePropertySerializer.cpp (right): https://codereview.chromium.org/341033003/diff/70001/Source/core/css/StylePropertySerializer.cpp#newcode57 Source/core/css/StylePropertySerializer.cpp:57: if ((unsigned)m_allIndex >= i) Use static_cast instead of C-style ...
6 years, 3 months ago (2014-09-02 20:13:17 UTC) #5
tasak
Thank you for reviewing. > Why do we want to expand all: unset into hundreds ...
6 years, 3 months ago (2014-09-04 06:08:38 UTC) #6
tasak
ping.
6 years, 3 months ago (2014-09-18 11:24:08 UTC) #7
tasak
On 2014/09/18 11:24:08, tasak wrote: > ping. ping.
6 years, 2 months ago (2014-10-03 09:40:53 UTC) #8
rune
On 2014/10/03 09:40:53, tasak wrote: > On 2014/09/18 11:24:08, tasak wrote: > > ping. > ...
6 years, 2 months ago (2014-10-03 09:49:31 UTC) #9
dglazkov
On 2014/10/03 at 09:49:31, rune wrote: > On 2014/10/03 09:40:53, tasak wrote: > > On ...
6 years, 2 months ago (2014-10-22 15:42:52 UTC) #10
tasak
rune, dglazkov, thank you.
6 years, 2 months ago (2014-10-23 10:19:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/341033003/110001
6 years, 2 months ago (2014-10-23 10:20:32 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:110001) as 184252
6 years, 2 months ago (2014-10-23 10:24:22 UTC) #14
Timothy Loh
6 years, 2 months ago (2014-10-23 12:19:00 UTC) #15
Message was sent while issue was closed.
Shouldn't regular StylePropertySets have the behaviour of the
StylePropertySetForSerializer? The 'all' property is just a regular shorthand,
it shouldn't be expanded only in cssText. If foo.style.all is set, then we
should be able to read the value from foo.style.padding or
foo.style.transitionProperty, as all other shorthands behave this way.

Powered by Google App Engine
This is Rietveld 408576698