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

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

Issue 996603003: Add [TypeChecking=Interface] to XSLTProcessor interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update test 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
« no previous file with comments | « Source/core/xml/XSLTProcessor.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XSLTProcessor.idl
diff --git a/Source/core/xml/XSLTProcessor.idl b/Source/core/xml/XSLTProcessor.idl
index df29bff1488cc87216fc107331a2bc4a55edfa62..3826bec821800f3022a210009c4c9ff94f9535b3 100644
--- a/Source/core/xml/XSLTProcessor.idl
+++ b/Source/core/xml/XSLTProcessor.idl
@@ -35,12 +35,14 @@
Constructor,
ConstructorCallWith=Document,
RuntimeEnabled=XSLT,
- MeasureAs=XSLTProcessor
+ MeasureAs=XSLTProcessor,
+ TypeChecking=Interface,
] interface XSLTProcessor {
- void importStylesheet([Default=Undefined] optional Node stylesheet);
- [CustomElementCallbacks] DocumentFragment transformToFragment([Default=Undefined] optional Node source, [Default=Undefined] optional Document docVal);
- [CustomElementCallbacks] Document transformToDocument([Default=Undefined] optional Node source);
+ void importStylesheet(Node stylesheet);
+ // FIXME: These return null on failure; should throw exceptions instead.
+ [CustomElementCallbacks] DocumentFragment? transformToFragment(Node source, Document docVal);
+ [CustomElementCallbacks] Document? transformToDocument(Node source);
void setParameter(DOMString? namespaceURI, DOMString localName, DOMString value);
[TreatReturnedNullStringAs=Undefined] DOMString getParameter(DOMString? namespaceURI, DOMString localName);
« no previous file with comments | « Source/core/xml/XSLTProcessor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698