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

Issue 1709843002: Correctly filter duplicate variable references in styles. (Closed)

Created:
4 years, 10 months ago by shans
Modified:
4 years, 10 months ago
Reviewers:
Timothy Loh
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

Correctly filter duplicate variable references in styles. This patch introduces a HashSet to track custom property additions when constructing PropertySets, so that duplicates are excluded. This already happens for standard properties, but is tracked for them by a BitArray. Committed: https://crrev.com/a8b3cb0b38cab9abdb57e161989bbdd558581a31 Cr-Commit-Position: refs/heads/master@{#376134}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/variables/resolve-duplicate-variables-in-style-attribute.html View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp View 1 4 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
shans
4 years, 10 months ago (2016-02-18 01:14:21 UTC) #2
Timothy Loh
https://codereview.chromium.org/1709843002/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/resolve-duplicate-variables-in-style-attribute.html File third_party/WebKit/LayoutTests/fast/css/variables/resolve-duplicate-variables-in-style-attribute.html (right): https://codereview.chromium.org/1709843002/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/resolve-duplicate-variables-in-style-attribute.html#newcode8 third_party/WebKit/LayoutTests/fast/css/variables/resolve-duplicate-variables-in-style-attribute.html:8: console.log(testElem.style.length); assert_equals(..., 1)? https://codereview.chromium.org/1709843002/diff/1/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp File third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp (right): https://codereview.chromium.org/1709843002/diff/1/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp#newcode73 third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp:73: ...
4 years, 10 months ago (2016-02-18 01:19:33 UTC) #3
shans
https://codereview.chromium.org/1709843002/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/resolve-duplicate-variables-in-style-attribute.html File third_party/WebKit/LayoutTests/fast/css/variables/resolve-duplicate-variables-in-style-attribute.html (right): https://codereview.chromium.org/1709843002/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/resolve-duplicate-variables-in-style-attribute.html#newcode8 third_party/WebKit/LayoutTests/fast/css/variables/resolve-duplicate-variables-in-style-attribute.html:8: console.log(testElem.style.length); On 2016/02/18 at 01:19:32, Timothy Loh wrote: > ...
4 years, 10 months ago (2016-02-18 04:28:59 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1709843002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1709843002/20001
4 years, 10 months ago (2016-02-18 04:49:05 UTC) #6
Timothy Loh
lgtm
4 years, 10 months ago (2016-02-18 05:15:46 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-18 06:18:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1709843002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1709843002/20001
4 years, 10 months ago (2016-02-18 10:13:10 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-18 10:17:32 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 10:18:29 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a8b3cb0b38cab9abdb57e161989bbdd558581a31
Cr-Commit-Position: refs/heads/master@{#376134}

Powered by Google App Engine
This is Rietveld 408576698