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

Unified Diff: Source/core/dom/Document.idl

Issue 337343002: IDL: make optional arguments (without default) explicit sometimes Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-default-arguments-next
Patch Set: Created 6 years, 4 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/dom/DOMTokenList.cpp ('k') | Source/core/dom/Element.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.idl
diff --git a/Source/core/dom/Document.idl b/Source/core/dom/Document.idl
index 080c6c0919080c212b2bc5638c8f6af1ab21ca79..eb689947d69f8e27c450d39e5a361b40e32108d1 100644
--- a/Source/core/dom/Document.idl
+++ b/Source/core/dom/Document.idl
@@ -35,17 +35,17 @@ typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
DocumentFragment createDocumentFragment();
Text createTextNode(DOMString data);
Comment createComment(DOMString data);
- [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createCDATASection([Default=Undefined] optional DOMString data); // Removed from DOM4.
+ [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createCDATASection(optional DOMString data); // Removed from DOM4.
[RaisesException] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
- [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([Default=Undefined] optional DOMString name); // Removed from DOM4.
+ [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute(optional DOMString name = "undefined"); // Removed from DOM4.
HTMLCollection getElementsByTagName(DOMString localName);
// Introduced in DOM Level 2:
[CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node importNode(Node node, optional boolean deep = false);
[CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName);
- [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttributeNS([Default=Undefined] optional DOMString? namespaceURI,
- [Default=Undefined] optional DOMString? qualifiedName); // Removed from DOM4.
+ [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttributeNS(optional DOMString? namespaceURI,
+ optional DOMString? qualifiedName); // Removed from DOM4.
HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString localName);
[PerWorldBindings] Element getElementById(DOMString elementId);
@@ -88,23 +88,23 @@ typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
// DOM Level 2 Style (DocumentCSS interface)
- CSSStyleDeclaration getOverrideStyle([Default=Undefined] optional Element element,
- [Default=Undefined] optional DOMString pseudoElement);
+ CSSStyleDeclaration getOverrideStyle(optional Element element,
+ optional DOMString pseudoElement);
// DOM 4
readonly attribute DOMString contentType;
// Common extensions
[CustomElementCallbacks]
- boolean execCommand([Default=Undefined] optional DOMString command,
- [Default=Undefined] optional boolean userInterface,
- [TreatUndefinedAs=NullString, Default=Undefined] optional DOMString? value);
+ boolean execCommand(optional DOMString command,
+ optional boolean userInterface,
+ [TreatUndefinedAs=NullString] optional DOMString? value);
- boolean queryCommandEnabled([Default=Undefined] optional DOMString command);
- boolean queryCommandIndeterm([Default=Undefined] optional DOMString command);
- boolean queryCommandState([Default=Undefined] optional DOMString command);
- boolean queryCommandSupported([Default=Undefined] optional DOMString command);
- DOMString queryCommandValue([Default=Undefined] optional DOMString command);
+ boolean queryCommandEnabled(optional DOMString command);
+ boolean queryCommandIndeterm(optional DOMString command);
+ boolean queryCommandState(optional DOMString command);
+ boolean queryCommandSupported(optional DOMString command);
+ DOMString queryCommandValue(optional DOMString command);
// Moved down from HTMLDocument
[TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString dir;
@@ -129,7 +129,7 @@ typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
readonly attribute HTMLCollection anchors;
readonly attribute DOMString lastModified;
- [PerWorldBindings] NodeList getElementsByName([Default=Undefined] optional DOMString elementName);
+ [PerWorldBindings] NodeList getElementsByName(optional DOMString elementName);
[PutForwards=href] readonly attribute Location location;
@@ -138,11 +138,11 @@ typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
[MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] readonly attribute DOMString defaultCharset;
[TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyState;
- Element elementFromPoint([Default=Undefined] optional long x,
- [Default=Undefined] optional long y);
+ Element elementFromPoint(optional long x,
+ optional long y);
[MeasureAs=DocumentCaretRangeFromPoint]
- Range caretRangeFromPoint([Default=Undefined] optional long x,
- [Default=Undefined] optional long y);
+ Range caretRangeFromPoint(optional long x,
+ optional long y);
// Mozilla extensions
Selection getSelection();
@@ -185,17 +185,17 @@ typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
[RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
attribute EventHandler onwheel;
- [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window window,
- [Default=Undefined] optional EventTarget target,
- [Default=Undefined] optional long identifier,
- [Default=Undefined] optional double pageX,
- [Default=Undefined] optional double pageY,
- [Default=Undefined] optional double screenX,
- [Default=Undefined] optional double screenY,
- [Default=Undefined] optional double webkitRadiusX,
- [Default=Undefined] optional double webkitRadiusY,
- [Default=Undefined] optional float webkitRotationAngle,
- [Default=Undefined] optional float webkitForce);
+ [RuntimeEnabled=Touch] Touch createTouch(optional Window window,
+ optional EventTarget target,
+ optional long identifier,
+ optional double pageX,
+ optional double pageY,
+ optional double screenX,
+ optional double screenY,
+ optional double webkitRadiusX,
+ optional double webkitRadiusY,
+ optional float webkitRotationAngle,
+ optional float webkitForce);
[RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches);
[CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=DocumentRegisterElement] CustomElementConstructor registerElement(DOMString name, optional Dictionary options);
« no previous file with comments | « Source/core/dom/DOMTokenList.cpp ('k') | Source/core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698