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

Issue 2089593002: Add expansion of shorthands with custom properties to longhands using a pending substition value. (Closed)

Created:
4 years, 6 months ago by Andy Mutton
Modified:
4 years, 5 months ago
Reviewers:
Timothy Loh
CC:
chromium-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expand custom property shorthands to longhand with pending value. Introduces CSSPendingSubstitutionValue for each longhand, containing a reference back to the shorthand property. Changes CSSVariableResolver to just resolve variables, rather than resolving and applying them (a task that StyleBuilderCustom can pretty easily take care of). Introduces a property cache on StyleResolverState to limit the amount of parsing required during resolution. This is somewhat unattractive to me, but there was a lack of better alternatives. BUG=612634 Committed: https://crrev.com/6b045cf7e0fe8f7eb94dc94508d75dbde7e63365 Cr-Commit-Position: refs/heads/master@{#402620}

Patch Set 1 #

Patch Set 2 : Fix dates and remove unnecessary comments #

Total comments: 12

Patch Set 3 : Fix serialization and temporary property value caching. Add some additional tests. #

Total comments: 14

Patch Set 4 : Renames, signature update and master merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -25 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSPendingSubstitutionValue.h View 1 1 chunk +51 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSPendingSubstitutionValue.cpp View 1 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.cpp View 6 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySerializer.cpp View 1 2 3 4 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 3 chunks +11 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp View 1 2 3 2 chunks +40 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 2 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolverState.h View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Timothy Loh
(please wrap patch description to 72 chars) https://codereview.chromium.org/2089593002/diff/20001/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp File third_party/WebKit/Source/core/css/StylePropertySerializer.cpp (right): https://codereview.chromium.org/2089593002/diff/20001/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp#newcode406 third_party/WebKit/Source/core/css/StylePropertySerializer.cpp:406: if (value.isInheritedValue()) ...
4 years, 6 months ago (2016-06-22 00:06:12 UTC) #3
Andy Mutton
On 2016/06/22 00:06:12, Timothy Loh wrote: > (please wrap patch description to 72 chars) > ...
4 years, 6 months ago (2016-06-24 04:52:43 UTC) #5
Andy Mutton
All done. PTAL. https://codereview.chromium.org/2089593002/diff/20001/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp File third_party/WebKit/Source/core/css/StylePropertySerializer.cpp (right): https://codereview.chromium.org/2089593002/diff/20001/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp#newcode406 third_party/WebKit/Source/core/css/StylePropertySerializer.cpp:406: if (value.isInheritedValue()) On 2016/06/22 00:06:11, Timothy ...
4 years, 6 months ago (2016-06-24 04:53:26 UTC) #6
Timothy Loh
lgtm https://codereview.chromium.org/2089593002/diff/40001/third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html File third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html (right): https://codereview.chromium.org/2089593002/diff/40001/third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html#newcode9 third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html:9: } just use a single block for the ...
4 years, 5 months ago (2016-06-27 04:19:10 UTC) #7
Andy Mutton
All done. Thanks. https://codereview.chromium.org/2089593002/diff/40001/third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html File third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html (right): https://codereview.chromium.org/2089593002/diff/40001/third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html#newcode9 third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html:9: } On 2016/06/27 04:19:09, Timothy Loh ...
4 years, 5 months ago (2016-06-28 03:18:51 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2089593002/60001
4 years, 5 months ago (2016-06-28 03:20:30 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-28 06:10:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2089593002/60001
4 years, 5 months ago (2016-06-29 00:32:34 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-29 00:43:00 UTC) #17
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 00:44:12 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6b045cf7e0fe8f7eb94dc94508d75dbde7e63365
Cr-Commit-Position: refs/heads/master@{#402620}

Powered by Google App Engine
This is Rietveld 408576698