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

Issue 1312703002: Should not ASSERT what we know will fail. (Closed)

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

Description

Should not ASSERT what we know will fail. The input to the selector position and the rule position is known to possibly overflow 12 and 18 bits respectively since the input comes from unsigned positions into data structures known to keep more elements than that. The selector and rule positions will be wrong regardlessly, unless we make RuleData bigger. Truncating the position to a max value instead of just letting it overflow could be an option. It doesn't make sense for selector position as trying to match any of the other selectors won't make any difference. Truncating the rule position would make the cascading order correct when comparing rules in the representable range with a rule outside the range, while just letting it overflow starting from zero again will yield a correct cascading order between two rules both outside of the representable range. Given that, I conclude to just remove the ASSERTs and not do anything clever about values outside of the ranges. BUG=519315 R=timloh@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201059

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
A LayoutTests/fast/css/long-selector-list-assert.html View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/long-selector-list-assert-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/RuleSet.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
rune
5 years, 4 months ago (2015-08-23 21:55:33 UTC) #1
Timothy Loh
On 2015/08/23 21:55:33, rune wrote: Seems reasonable to me, lgtm.
5 years, 4 months ago (2015-08-24 01:13:19 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312703002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312703002/1
5 years, 4 months ago (2015-08-24 05:28:08 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/102931)
5 years, 4 months ago (2015-08-24 06:47:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312703002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312703002/1
5 years, 4 months ago (2015-08-24 11:41:09 UTC) #8
commit-bot: I haz the power
5 years, 4 months ago (2015-08-24 12:21:51 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201059

Powered by Google App Engine
This is Rietveld 408576698