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

Issue 330713003: Update SelectorQuery constructor to adopt CSSSelectorList object (Closed)

Created:
6 years, 6 months ago by Inactive
Modified:
6 years, 6 months ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

Update SelectorQuery constructor to adopt CSSSelectorList object Update SelectorQuery constructor to adopt CSSSelectorList object instead of copying it. This CL adds a adopt(CSSSelectorList&) factory function to SelectorQuery class to make this behavior obvious. Copying a CSSSelectorList is relatively expensive and it should therefore be avoided when possible. R=esprehn@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176116

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename to adopt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M Source/core/dom/SelectorQuery.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/dom/SelectorQuery.cpp View 1 2 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Inactive
6 years, 6 months ago (2014-06-13 03:14:59 UTC) #1
esprehn
lgtm, but please fix the name first. https://codereview.chromium.org/330713003/diff/1/Source/core/dom/SelectorQuery.cpp File Source/core/dom/SelectorQuery.cpp (right): https://codereview.chromium.org/330713003/diff/1/Source/core/dom/SelectorQuery.cpp#newcode468 Source/core/dom/SelectorQuery.cpp:468: PassOwnPtr<SelectorQuery> SelectorQuery::createAndAdopt(CSSSelectorList& ...
6 years, 6 months ago (2014-06-13 03:47:41 UTC) #2
Inactive
https://codereview.chromium.org/330713003/diff/1/Source/core/dom/SelectorQuery.cpp File Source/core/dom/SelectorQuery.cpp (right): https://codereview.chromium.org/330713003/diff/1/Source/core/dom/SelectorQuery.cpp#newcode468 Source/core/dom/SelectorQuery.cpp:468: PassOwnPtr<SelectorQuery> SelectorQuery::createAndAdopt(CSSSelectorList& selectorList) On 2014/06/13 03:47:41, esprehn wrote: > ...
6 years, 6 months ago (2014-06-13 12:25:27 UTC) #3
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-13 12:25:30 UTC) #4
Inactive
The CQ bit was unchecked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-13 12:25:38 UTC) #5
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-13 12:25:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/330713003/20001
6 years, 6 months ago (2014-06-13 12:26:12 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-13 13:39:17 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-13 14:33:04 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/17051)
6 years, 6 months ago (2014-06-13 14:33:05 UTC) #10
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-13 14:35:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/330713003/20001
6 years, 6 months ago (2014-06-13 14:36:14 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 15:44:19 UTC) #13
Message was sent while issue was closed.
Change committed as 176116

Powered by Google App Engine
This is Rietveld 408576698