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

Unified Diff: Source/core/xml/XPathEvaluator.idl

Issue 983123003: Add [TypeChecking=Interface] to XPath interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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: Source/core/xml/XPathEvaluator.idl
diff --git a/Source/core/xml/XPathEvaluator.idl b/Source/core/xml/XPathEvaluator.idl
index d11018a46e80a9e45cedf4ee8d2f97d3c6a15213..7a69a5b53a8519eb71e8e6c0d61e1268d175ed1e 100644
--- a/Source/core/xml/XPathEvaluator.idl
+++ b/Source/core/xml/XPathEvaluator.idl
@@ -19,16 +19,12 @@
[
WillBeGarbageCollected,
- Constructor
+ Constructor,
+ TypeChecking=Interface,
] interface XPathEvaluator {
- [RaisesException] XPathExpression createExpression([Default=Undefined] optional DOMString expression,
- [Default=Undefined] optional XPathNSResolver resolver);
+ [RaisesException] XPathExpression createExpression(DOMString expression, XPathNSResolver? resolver);
philipj_slow 2015/03/06 15:53:13 I think "optional XPathNSResolver? resolver = null
- XPathNSResolver createNSResolver([Default=Undefined] optional Node nodeResolver);
+ XPathNSResolver createNSResolver(Node nodeResolver);
- [RaisesException] XPathResult evaluate([Default=Undefined] optional DOMString expression,
- [Default=Undefined] optional Node contextNode,
- [Default=Undefined] optional XPathNSResolver resolver,
- [Default=Undefined] optional unsigned short type,
- [Default=Undefined] optional XPathResult inResult);
+ [RaisesException] XPathResult evaluate(DOMString expression, Node contextNode, XPathNSResolver? resolver, unsigned short type, object? inResult);
philipj_slow 2015/03/06 15:53:13 resolver and the following can be optional with de
};

Powered by Google App Engine
This is Rietveld 408576698