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

Issue 1698203002: Simplify CSS variables resolution logic [1 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 [1 of 2] This patch removes the context object in variable resolution, moving the success bool to be a more local concept. This fixes a bug where the flag was being reset to true after fallback resolution in certain cases where it shouldn't have been. This patch also changes our storage for invalid custom properties from a CSSVariableData with an empty vector to a null pointer. This doesn't end up needing changes outside of the variable resolver as custom properties are already returned as null in getVariable when they are invalid due to being not set. BUG=586847 Committed: https://crrev.com/988acae8b91964c5e42eb01dac5cb041f26fbd7f Cr-Commit-Position: refs/heads/master@{#375709}

Patch Set 1 #

Total comments: 1

Patch Set 2 : more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -72 lines) Patch
M third_party/WebKit/LayoutTests/fast/css/variables/tricky-cycle-cases.html View 1 3 chunks +69 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h View 1 chunk +8 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp View 1 6 chunks +44 lines, -56 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (6 generated)
Timothy Loh
Split off part of the change from https://codereview.chromium.org/1694133002/
4 years, 10 months ago (2016-02-16 03:34:16 UTC) #2
shans
lgtm
4 years, 10 months ago (2016-02-16 04:58:01 UTC) #3
dstockwell
lgtm
4 years, 10 months ago (2016-02-16 07:14:33 UTC) #4
Timothy Loh
Added a few more tests as discussed. I didn't comprehensively permute the variables (none of ...
4 years, 10 months ago (2016-02-16 07:26:02 UTC) #5
chromium-reviews
Cool, thanks! On Tue, 16 Feb 2016, 6:26 p.m. <timloh@chromium.org> wrote: > > Added a ...
4 years, 10 months ago (2016-02-16 08:48:23 UTC) #6
blink-reviews
Cool, thanks! On Tue, 16 Feb 2016, 6:26 p.m. <timloh@chromium.org> wrote: > > Added a ...
4 years, 10 months ago (2016-02-16 08:48:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1698203002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1698203002/20001
4 years, 10 months ago (2016-02-16 11:51:41 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/174273)
4 years, 10 months ago (2016-02-16 15:23: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/1698203002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1698203002/20001
4 years, 10 months ago (2016-02-16 22:39:04 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-16 23:52:44 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 23:54:33 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/988acae8b91964c5e42eb01dac5cb041f26fbd7f
Cr-Commit-Position: refs/heads/master@{#375709}

Powered by Google App Engine
This is Rietveld 408576698