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

Issue 2303443003: CSS: Additional asserts for style invalidation (Closed)

Created:
4 years, 3 months ago by Eric Willigers
Modified:
4 years, 3 months ago
Reviewers:
esprehn, rune
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSS: Additional asserts for style invalidation RuleFeatureSet::add now verifies that we aren't adding to ourselves. Our hash sets now verify during insertion that our keys are not empty strings or PseudoUnknown (0). BUG=412572, 640486 Committed: https://crrev.com/a042e2557c51f8f9f71ea2e00e4ac1016426b242 Cr-Commit-Position: refs/heads/master@{#416220}

Patch Set 1 #

Total comments: 4

Patch Set 2 : key not empty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M third_party/WebKit/Source/core/css/RuleFeature.cpp View 1 3 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp View 1 5 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 17 (10 generated)
esprehn
This seems a bit like whack-a-mole, why mess with the HashSet? https://codereview.chromium.org/2303443003/diff/1/third_party/WebKit/Source/core/css/RuleFeature.h File third_party/WebKit/Source/core/css/RuleFeature.h (right): ...
4 years, 3 months ago (2016-09-01 05:30:22 UTC) #2
Eric Willigers
https://codereview.chromium.org/2303443003/diff/1/third_party/WebKit/Source/core/css/RuleFeature.h File third_party/WebKit/Source/core/css/RuleFeature.h (right): https://codereview.chromium.org/2303443003/diff/1/third_party/WebKit/Source/core/css/RuleFeature.h#newcode126 third_party/WebKit/Source/core/css/RuleFeature.h:126: using PseudoTypeInvalidationSetMap = HashMap<int, RefPtr<InvalidationSet>>; // key values are ...
4 years, 3 months ago (2016-09-01 14:56:31 UTC) #4
Eric Willigers
Most RuleFeatureSet/InvalidationSet crashes are in set or map operations, for example a) HashTable<AtomicString,KeyValuePair<AtomicString,RefPtr<InvalidationSet>>, ...>::deleteAllBucketsAndDeallocate b) ...
4 years, 3 months ago (2016-09-02 04:28:22 UTC) #10
esprehn
lgtm
4 years, 3 months ago (2016-09-02 09:25:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2303443003/20001
4 years, 3 months ago (2016-09-02 09:26:52 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-02 09:33:16 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 09:34:50 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a042e2557c51f8f9f71ea2e00e4ac1016426b242
Cr-Commit-Position: refs/heads/master@{#416220}

Powered by Google App Engine
This is Rietveld 408576698