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

Issue 1697233003: Allow custom property variant of setProperty to find existing references (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, blink-reviews-style_chromium.org, 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

Allow custom property variant of setProperty to find existing references to the property name. Prior to this patch, multiple calls to inline style setProperty with the same custom property name cause multiple entries to be created in the StylePropertySet. This causes inline style getPropertyValue calls to return the wrong value. Committed: https://crrev.com/e769dbdd327317bbf03d2275ccf57dc4d2f91d38 Cr-Commit-Position: refs/heads/master@{#376096}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -10 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySet.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySet.cpp View 1 2 chunks +13 lines, -9 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
shans
4 years, 10 months ago (2016-02-16 04:38:35 UTC) #2
Timothy Loh
https://codereview.chromium.org/1697233003/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html File third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html (right): https://codereview.chromium.org/1697233003/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html#newcode15 third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html:15: // assert_equals(getComputedStyle(testElem).getPropertyValue('--foo'), 'second'); uncomment this? https://codereview.chromium.org/1697233003/diff/1/third_party/WebKit/Source/core/css/StylePropertySet.cpp File third_party/WebKit/Source/core/css/StylePropertySet.cpp (right): ...
4 years, 10 months ago (2016-02-16 23:49:39 UTC) #3
shans
https://codereview.chromium.org/1697233003/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html File third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html (right): https://codereview.chromium.org/1697233003/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html#newcode15 third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html:15: // assert_equals(getComputedStyle(testElem).getPropertyValue('--foo'), 'second'); On 2016/02/16 at 23:49:39, Timothy Loh ...
4 years, 10 months ago (2016-02-17 02:41:35 UTC) #4
Timothy Loh
lgtm, but leave out empty BUG= lines https://codereview.chromium.org/1697233003/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html File third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html (right): https://codereview.chromium.org/1697233003/diff/1/third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html#newcode15 third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html:15: // assert_equals(getComputedStyle(testElem).getPropertyValue('--foo'), ...
4 years, 10 months ago (2016-02-17 23:54:10 UTC) #5
shans
On 2016/02/17 at 23:54:10, timloh wrote: > lgtm, but leave out empty BUG= lines > ...
4 years, 10 months ago (2016-02-18 00:02:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697233003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697233003/40001
4 years, 10 months ago (2016-02-18 01:18:57 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/67937)
4 years, 10 months ago (2016-02-18 01:36:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697233003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697233003/40001
4 years, 10 months ago (2016-02-18 04:37:54 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-18 04:44:21 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 04:45:27 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e769dbdd327317bbf03d2275ccf57dc4d2f91d38
Cr-Commit-Position: refs/heads/master@{#376096}

Powered by Google App Engine
This is Rietveld 408576698