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

Issue 1537523003: Add correct equality testing for ComputedStyle's StyleVariableData (Closed)

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

Description

Add correct equality testing for ComputedStyle's StyleVariableData objects. This fixes the linked bug (large subtree style recalcs always when using variables) and prevents a crash in release-with-asserts builds that attempt to equality check the base style with a freshly computed style during animations. BUG=570176 Committed: https://crrev.com/b6cb0b15a9507e782b2b0fb1a67b35e7d81c45f9 Cr-Commit-Position: refs/heads/master@{#365814}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Messages

Total messages: 18 (7 generated)
shans
5 years ago (2015-12-17 03:56:42 UTC) #2
Timothy Loh
Might be worthwhile to add EXPECT_EQ(expected, actual) to the top of compareTokens in CSSTokenizerTest for ...
5 years ago (2015-12-17 04:22:56 UTC) #3
shans
Layout test and EXPECT_EQ added. https://codereview.chromium.org/1537523003/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserToken.h File third_party/WebKit/Source/core/css/parser/CSSParserToken.h (right): https://codereview.chromium.org/1537523003/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserToken.h#newcode96 third_party/WebKit/Source/core/css/parser/CSSParserToken.h:96: if (m_hashTokenType != other.m_hashTokenType) ...
5 years ago (2015-12-17 05:14:14 UTC) #4
shans
5 years ago (2015-12-17 09:34:29 UTC) #6
dstockwell
lgtm https://codereview.chromium.org/1537523003/diff/40001/third_party/WebKit/Source/core/css/parser/CSSParserToken.h File third_party/WebKit/Source/core/css/parser/CSSParserToken.h (right): https://codereview.chromium.org/1537523003/diff/40001/third_party/WebKit/Source/core/css/parser/CSSParserToken.h#newcode100 third_party/WebKit/Source/core/css/parser/CSSParserToken.h:100: return m_valueDataCharRaw == other.m_valueDataCharRaw && m_valueLength == other.m_valueLength ...
5 years ago (2015-12-17 09:45:16 UTC) #7
shans
On 2015/12/17 at 09:45:16, dstockwell wrote: > lgtm > > https://codereview.chromium.org/1537523003/diff/40001/third_party/WebKit/Source/core/css/parser/CSSParserToken.h > File third_party/WebKit/Source/core/css/parser/CSSParserToken.h (right): ...
5 years ago (2015-12-17 10:07:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1537523003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1537523003/40001
5 years ago (2015-12-17 10:08:10 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/157612)
5 years ago (2015-12-17 11:06:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1537523003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1537523003/60001
5 years ago (2015-12-17 11:13:55 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-17 12:45:47 UTC) #16
commit-bot: I haz the power
5 years ago (2015-12-17 12:46:36 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b6cb0b15a9507e782b2b0fb1a67b35e7d81c45f9
Cr-Commit-Position: refs/heads/master@{#365814}

Powered by Google App Engine
This is Rietveld 408576698