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

Issue 1694133002: Simplify CSS variables resolution logic [2 of 2] (Closed)

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

Description

Simplify CSS variables resolution logic [2 of 2] This patch restructures the CSS variable resolution logic. The main goal is to extract from resolveVariableTokensRecursive the recursive resolution logic so that other potential features like @apply might be able to recurse without needing to copy this logic. This recursive resolution logic is split into two new functions valueForCustomProperty and resolveCustomProperty (these are two functions so we can write the loop in resolveVariableDefinitions without needing extra hash lookups). These are the only functions which should handle the cycle-detection logic. BUG=586847 Committed: https://crrev.com/a6223fa39f086ab3483320014dce8b0b7a868886 Cr-Commit-Position: refs/heads/master@{#376687}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : split up #

Total comments: 1

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -76 lines) Patch
M third_party/WebKit/Source/core/css/CSSVariableData.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h View 1 2 3 4 2 chunks +15 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp View 1 2 3 4 5 5 chunks +55 lines, -70 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
Timothy Loh
I tried to split it up but I introduced some cycle detection bugs when doing ...
4 years, 10 months ago (2016-02-15 04:34:54 UTC) #4
Timothy Loh
Split off part of the change into https://codereview.chromium.org/1698203002/, hopefully that makes it easier to review. ...
4 years, 10 months ago (2016-02-16 03:34:56 UTC) #6
shans
lgtm https://codereview.chromium.org/1694133002/diff/60001/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp File third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp (right): https://codereview.chromium.org/1694133002/diff/60001/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp#newcode55 third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp:55: Vector<CSSParserToken> tokens; ASSERT(variableData->needsVariableResolution()); https://codereview.chromium.org/1694133002/diff/60001/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h File third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h (right): https://codereview.chromium.org/1694133002/diff/60001/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h#newcode35 ...
4 years, 10 months ago (2016-02-17 04:04:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1694133002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1694133002/80001
4 years, 10 months ago (2016-02-22 03:24:58 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/146501)
4 years, 10 months ago (2016-02-22 03:36:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1694133002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1694133002/100001
4 years, 10 months ago (2016-02-22 03:45:06 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-22 04:47:01 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2016-02-22 04:48:08 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a6223fa39f086ab3483320014dce8b0b7a868886
Cr-Commit-Position: refs/heads/master@{#376687}

Powered by Google App Engine
This is Rietveld 408576698