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

Issue 2767113003: Simplify some arguments inside SelectorQuery. (Closed)

Created:
3 years, 9 months ago by esprehn
Modified:
3 years, 9 months ago
Reviewers:
sashab, rune
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify some arguments inside SelectorQuery. We can hoist some code and remove some arguments since we always pass the same thing. BUG=703900 Review-Url: https://codereview.chromium.org/2767113003 Cr-Commit-Position: refs/heads/master@{#459011} Committed: https://chromium.googlesource.com/chromium/src/+/26d67176f9cf8b10fd2a378cb83492e432af23ba

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -38 lines) Patch
M third_party/WebKit/Source/core/dom/SelectorQuery.h View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SelectorQuery.cpp View 5 chunks +18 lines, -33 lines 7 comments Download

Messages

Total messages: 19 (9 generated)
esprehn
3 years, 9 months ago (2017-03-23 01:08:53 UTC) #7
esprehn
https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp File third_party/WebKit/Source/core/dom/SelectorQuery.cpp (left): https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp#oldcode238 third_party/WebKit/Source/core/dom/SelectorQuery.cpp:238: // this method finds that the selectors won't match ...
3 years, 9 months ago (2017-03-23 01:09:33 UTC) #8
sashab
https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp File third_party/WebKit/Source/core/dom/SelectorQuery.cpp (left): https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp#oldcode238 third_party/WebKit/Source/core/dom/SelectorQuery.cpp:238: // this method finds that the selectors won't match ...
3 years, 9 months ago (2017-03-23 05:40:21 UTC) #9
esprehn
:) https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp File third_party/WebKit/Source/core/dom/SelectorQuery.cpp (left): https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp#oldcode238 third_party/WebKit/Source/core/dom/SelectorQuery.cpp:238: // this method finds that the selectors won't ...
3 years, 9 months ago (2017-03-23 05:48:51 UTC) #10
sashab
lgtm https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp File third_party/WebKit/Source/core/dom/SelectorQuery.cpp (right): https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp#newcode260 third_party/WebKit/Source/core/dom/SelectorQuery.cpp:260: SelectorQueryTrait::appendElement(output, *element); I don't really understand this part ...
3 years, 9 months ago (2017-03-23 06:26:32 UTC) #11
esprehn
https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp File third_party/WebKit/Source/core/dom/SelectorQuery.cpp (right): https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp#newcode260 third_party/WebKit/Source/core/dom/SelectorQuery.cpp:260: SelectorQueryTrait::appendElement(output, *element); On 2017/03/23 at 06:26:32, sashab wrote: > ...
3 years, 9 months ago (2017-03-23 06:31:58 UTC) #12
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/2767113003/1
3 years, 9 months ago (2017-03-23 06:33:48 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/26d67176f9cf8b10fd2a378cb83492e432af23ba
3 years, 9 months ago (2017-03-23 06:39:11 UTC) #17
sashab
https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp File third_party/WebKit/Source/core/dom/SelectorQuery.cpp (right): https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/core/dom/SelectorQuery.cpp#newcode260 third_party/WebKit/Source/core/dom/SelectorQuery.cpp:260: SelectorQueryTrait::appendElement(output, *element); On 2017/03/23 at 06:31:58, esprehn wrote: > ...
3 years, 9 months ago (2017-03-23 23:19:05 UTC) #18
esprehn
3 years, 9 months ago (2017-03-24 00:02:31 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/dom/SelectorQuery.cpp (right):

https://codereview.chromium.org/2767113003/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/dom/SelectorQuery.cpp:260:
SelectorQueryTrait::appendElement(output, *element);
On 2017/03/23 at 23:19:05, sashab wrote:
> ...
> 
> Can you remove it from the function then? Do other callsites still need it?

I did remove it from that function. There's a another function that's similarly
named: executeForTraverseRoots <-- plural with the "s" that still uses it
though.

Powered by Google App Engine
This is Rietveld 408576698