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

Unified Diff: third_party/WebKit/Source/core/dom/NodeFilter.idl

Issue 2837923003: Make NodeFilter a legacy callback interface. (Closed)
Patch Set: templates.gni, etc. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/NodeFilter.idl
diff --git a/third_party/WebKit/Source/core/dom/NodeFilter.idl b/third_party/WebKit/Source/core/dom/NodeFilter.idl
index e9dc637aaa12681e5111ed7e2eaf9df26122045e..b4d6ccb6e3aaefd420e52ba0cf40ab3839c57930 100644
--- a/third_party/WebKit/Source/core/dom/NodeFilter.idl
+++ b/third_party/WebKit/Source/core/dom/NodeFilter.idl
@@ -20,10 +20,9 @@
// https://dom.spec.whatwg.org/#interface-nodefilter
-// FIXME: NodeFilter should be a callback interface. crbug.com/462946
[
DependentLifetime,
-] interface NodeFilter {
+] callback interface NodeFilter {
// Constants for acceptNode()
const unsigned short FILTER_ACCEPT = 1;
const unsigned short FILTER_REJECT = 2;
@@ -44,6 +43,9 @@
const unsigned long SHOW_DOCUMENT_FRAGMENT = 0x400;
const unsigned long SHOW_NOTATION = 0x800; // historical
+ // This function declaration doesn't generate any code because
+ // V8NodeFilterCondition represents this callback interface in Blink.
+ // TODO(bashi): Fix crbug.com/630986, and use generated code.
// FIXME: The node argument should not be optional.
- [RaisesException, LegacyInterfaceTypeChecking] unsigned short acceptNode([Default=Undefined] optional Node node);
+ [RaisesException] unsigned short acceptNode([Default=Undefined] optional Node node);
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/NodeFilter.h ('k') | third_party/WebKit/Source/platform/bindings/V8PerContextData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698