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

Issue 69543002: Abstract away some of the complexity in CSSSelectorWatch by using HashCountedSet (Closed)

Created:
7 years, 1 month ago by Inactive
Modified:
7 years, 1 month ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Abstract away some of the complexity in CSSSelectorWatch by using HashCountedSet Abstract away some of the complexity in CSSSelectorWatch by using HashCountedSet data structure instead of handling the counting manually and use a HashMap. WTF's HashCountedSet exists exactly for this kind of use cases and it makes the code a bit simpler. R=eseidel Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161838

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -19 lines) Patch
M Source/core/dom/CSSSelectorWatch.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/dom/CSSSelectorWatch.cpp View 1 chunk +11 lines, -18 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
Inactive
7 years, 1 month ago (2013-11-11 21:26:54 UTC) #1
eseidel
https://codereview.chromium.org/69543002/diff/1/Source/core/dom/CSSSelectorWatch.cpp File Source/core/dom/CSSSelectorWatch.cpp (right): https://codereview.chromium.org/69543002/diff/1/Source/core/dom/CSSSelectorWatch.cpp#newcode98 Source/core/dom/CSSSelectorWatch.cpp:98: if (m_addedSelectors.contains(selector)) Would itr = find(); remove(itr); be "faster"? ...
7 years, 1 month ago (2013-11-11 22:24:31 UTC) #2
eseidel
lgtm
7 years, 1 month ago (2013-11-11 22:24:37 UTC) #3
Inactive
On 2013/11/11 22:24:31, eseidel wrote: > https://codereview.chromium.org/69543002/diff/1/Source/core/dom/CSSSelectorWatch.cpp > File Source/core/dom/CSSSelectorWatch.cpp (right): > > https://codereview.chromium.org/69543002/diff/1/Source/core/dom/CSSSelectorWatch.cpp#newcode98 > ...
7 years, 1 month ago (2013-11-11 22:47:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/69543002/1
7 years, 1 month ago (2013-11-11 22:50:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/69543002/1
7 years, 1 month ago (2013-11-12 17:45:59 UTC) #6
commit-bot: I haz the power
7 years, 1 month ago (2013-11-12 18:30:55 UTC) #7
Message was sent while issue was closed.
Change committed as 161838

Powered by Google App Engine
This is Rietveld 408576698