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

Issue 1493023004: Add use counters for NodeFilter being a function or an object (Closed)

Created:
5 years ago by philipj_slow
Modified:
5 years ago
Reviewers:
haraken, Ilya Sherman, bashi
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add use counters for NodeFilter being a function or an object NodeFilter is a callback interface in the spec, but a plain interface in Blink. It's the only callback interface that also has attributes, so that there must be a NodeFilter attribute on the global object. In order to make NodeFilter a callback interface per spec, the bindings generator would need new code to generate that object. If it's possible to make the createNodeIterator() and createTreeWalker() filter arguments callback functions instead of callback interfaces, it looks like this could all be simplified significantly. NodeFilter would then remain as a plain interface with only the const attributes. There is also a minor incompatiblity with Gecko related to NodeFilter. Blink always wraps the function or object inside a new object which is instanceof NodeFilter, and NodeIterator.prototype.filter returns this object. Gecko, on the other hand, returns the same object thas was passed in to createNodeIterator(), and instanceof NodeFilter throws a TypeError. BUG=462946 Committed: https://crrev.com/d5996673c3f101a6dc8b2e50d9b74e32ba59a731 Cr-Commit-Position: refs/heads/master@{#363366}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/node-filter-use-counters.html View 1 chunk +39 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493023004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493023004/1
5 years ago (2015-12-04 15:28:48 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/87640)
5 years ago (2015-12-04 17:04:16 UTC) #4
philipj_slow
PTAL. The reason I'm poking at this now is mostly because it seems pointless trying ...
5 years ago (2015-12-04 19:15:33 UTC) #6
bashi
bindings/ LGTM
5 years ago (2015-12-05 02:06:01 UTC) #7
Ilya Sherman
histograms.xml lgtm
5 years ago (2015-12-05 02:34:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493023004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493023004/1
5 years ago (2015-12-05 07:23:48 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL)
5 years ago (2015-12-05 09:25:16 UTC) #12
haraken
bindings LGTM
5 years ago (2015-12-05 09:46:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493023004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493023004/1
5 years ago (2015-12-05 11:34:13 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL)
5 years ago (2015-12-05 13:35:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493023004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493023004/1
5 years ago (2015-12-05 18:55:05 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/150650)
5 years ago (2015-12-05 20:37:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493023004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493023004/1
5 years ago (2015-12-06 10:10:44 UTC) #23
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-06 11:04:11 UTC) #24
commit-bot: I haz the power
5 years ago (2015-12-06 11:04:51 UTC) #26
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d5996673c3f101a6dc8b2e50d9b74e32ba59a731
Cr-Commit-Position: refs/heads/master@{#363366}

Powered by Google App Engine
This is Rietveld 408576698