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

Issue 217423012: Avoid the hash table StyleInvalidator::clearInvalidation in Node::detach when possible (Closed)

Created:
6 years, 8 months ago by esprehn
Modified:
6 years, 8 months ago
Reviewers:
chrishtr, rune
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Avoid the hash table StyleInvalidator::clearInvalidation in Node::detach when possible Accessing the hash table in every ::detach call is a lot of overhead since in the common case the Element is not even in the hash table. We should check the needsStyleInvalidation() bit first. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170539

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M Source/core/css/invalidation/StyleInvalidator.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
esprehn
6 years, 8 months ago (2014-04-01 09:09:39 UTC) #1
rune
lgtm
6 years, 8 months ago (2014-04-01 09:15:36 UTC) #2
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 8 months ago (2014-04-01 09:17:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/217423012/1
6 years, 8 months ago (2014-04-01 09:17:47 UTC) #4
commit-bot: I haz the power
Change committed as 170539
6 years, 8 months ago (2014-04-01 10:18:58 UTC) #5
chrishtr
6 years, 8 months ago (2014-04-01 16:26:24 UTC) #6
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698