Commit a5729042 authored by haraken@chromium.org's avatar haraken@chromium.org

Add the "ObjC" prefix to ObjC specific IDL attributes

https://bugs.webkit.org/show_bug.cgi?id=77708

Reviewed by Adam Barth.

This patch adds the "ObjC" prefix to ObjC specific IDL attributes, as follows:

    [Polymorphic] => [ObjCPolymorphic]
    [OldStyleObjC] => [ObjCLegacyUnamedParameters]
    [UsesView] => [ObjCUseDefaultView] (Note: Renamed for clarification)

No tests. No changes in behavior.

* bindings/scripts/CodeGeneratorObjC.pm:
(GenerateHeader):
(GenerateImplementation):
* css/CSSMediaRule.idl:
* css/CSSPrimitiveValue.idl:
* css/CSSRule.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleSheet.idl:
* css/CSSValue.idl:
* css/StyleSheet.idl:
* dom/CharacterData.idl:
* dom/DOMImplementation.idl:
* dom/Document.idl:
* dom/Element.idl:
* dom/Event.idl:
* dom/EventTarget.idl:
* dom/MouseEvent.idl:
* dom/MutationEvent.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/Range.idl:
* dom/UIEvent.idl:
* html/HTMLCollection.idl:
* html/HTMLSelectElement.idl:
* svg/SVGPathSeg.idl:
* xml/XPathExpression.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0b749fbd
2012-02-03 Kentaro Hara <haraken@chromium.org>
Add the "ObjC" prefix to ObjC specific IDL attributes
https://bugs.webkit.org/show_bug.cgi?id=77708
Reviewed by Adam Barth.
This patch adds the "ObjC" prefix to ObjC specific IDL attributes, as follows:
[Polymorphic] => [ObjCPolymorphic]
[OldStyleObjC] => [ObjCLegacyUnamedParameters]
[UsesView] => [ObjCUseDefaultView] (Note: Renamed for clarification)
No tests. No changes in behavior.
* bindings/scripts/CodeGeneratorObjC.pm:
(GenerateHeader):
(GenerateImplementation):
* css/CSSMediaRule.idl:
* css/CSSPrimitiveValue.idl:
* css/CSSRule.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleSheet.idl:
* css/CSSValue.idl:
* css/StyleSheet.idl:
* dom/CharacterData.idl:
* dom/DOMImplementation.idl:
* dom/Document.idl:
* dom/Element.idl:
* dom/Event.idl:
* dom/EventTarget.idl:
* dom/MouseEvent.idl:
* dom/MutationEvent.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/Range.idl:
* dom/UIEvent.idl:
* html/HTMLCollection.idl:
* html/HTMLSelectElement.idl:
* svg/SVGPathSeg.idl:
* xml/XPathExpression.idl:
2012-02-03 MORITA Hajime <morrita@google.com>
TypingCommand should be prepared against detached document.
......@@ -863,7 +863,7 @@ sub GenerateHeader
my $functionName = $function->signature->name;
my $returnType = GetObjCType($function->signature->type);
my $needsDeprecatedVersion = (@{$function->parameters} > 1 and $function->signature->extendedAttributes->{"OldStyleObjC"});
my $needsDeprecatedVersion = (@{$function->parameters} > 1 and $function->signature->extendedAttributes->{"ObjCLegacyUnnamedParameters"});
my $numberOfParameters = @{$function->parameters};
my %typesToForwardDeclare = ($function->signature->type => 1);
......@@ -942,7 +942,7 @@ sub GenerateHeader
push(@deprecatedHeaderFunctions, $functionDeclaration);
unless (defined $publicInterfaces{$publicInterfaceKey}) {
warn "Deprecated method $publicInterfaceKey is not in PublicDOMInterfaces.h. All deprecated methods need to be public, or should have the OldStyleObjC IDL attribute removed";
warn "Deprecated method $publicInterfaceKey is not in PublicDOMInterfaces.h. All deprecated methods need to be public, or should have the ObjCLegacyUnnamedParameters IDL attribute removed";
$fatalError = 1;
}
......@@ -1036,7 +1036,7 @@ sub GenerateHeader
push(@internalHeaderContent, "$implType* core($className *);\n");
push(@internalHeaderContent, "$className *kit($implType*);\n");
if ($dataNode->extendedAttributes->{Polymorphic}) {
if ($dataNode->extendedAttributes->{"ObjCPolymorphic"}) {
push(@internalHeaderContent, "Class kitClass($implType*);\n");
}
......@@ -1537,7 +1537,7 @@ sub GenerateImplementation
$implIncludes{"Node.h"} = 1;
}
if ($function->signature->extendedAttributes->{"UsesView"}) {
if ($function->signature->extendedAttributes->{"ObjCUseDefaultView"}) {
push(@functionContent, " WebCore::DOMWindow* dv = $caller->defaultView();\n");
push(@functionContent, " if (!dv)\n");
push(@functionContent, " return nil;\n");
......@@ -1691,7 +1691,7 @@ sub GenerateImplementation
push(@implContent, "#endif\n\n") if $conditionalString;
# generate the old style method names with un-named parameters, these methods are deprecated
if (@{$function->parameters} > 1 and $function->signature->extendedAttributes->{"OldStyleObjC"}) {
if (@{$function->parameters} > 1 and $function->signature->extendedAttributes->{"ObjCLegacyUnnamedParameters"}) {
my $deprecatedFunctionSig = $functionSig;
$deprecatedFunctionSig =~ s/\s\w+:/ :/g; # remove parameter names
......@@ -1724,7 +1724,7 @@ sub GenerateImplementation
push(@implContent, " return nil;\n");
push(@implContent, " if ($className *wrapper = getDOMWrapper(value))\n");
push(@implContent, " return [[wrapper retain] autorelease];\n");
if ($dataNode->extendedAttributes->{Polymorphic}) {
if ($dataNode->extendedAttributes->{"ObjCPolymorphic"}) {
push(@implContent, " $className *wrapper = [[kitClass(value) alloc] _init];\n");
push(@implContent, " if (!wrapper)\n");
push(@implContent, " return nil;\n");
......
......@@ -25,7 +25,7 @@ module css {
readonly attribute MediaList media;
readonly attribute CSSRuleList cssRules;
[OldStyleObjC] unsigned long insertRule(in [Optional=CallWithDefaultValue] DOMString rule,
[ObjCLegacyUnamedParameters] unsigned long insertRule(in [Optional=CallWithDefaultValue] DOMString rule,
in [Optional=CallWithDefaultValue] unsigned long index)
raises(DOMException);
void deleteRule(in [Optional=CallWithDefaultValue] unsigned long index)
......
......@@ -51,12 +51,12 @@ module css {
readonly attribute unsigned short primitiveType;
[OldStyleObjC] void setFloatValue(in [Optional=CallWithDefaultValue] unsigned short unitType,
[ObjCLegacyUnamedParameters] void setFloatValue(in [Optional=CallWithDefaultValue] unsigned short unitType,
in [Optional=CallWithDefaultValue] float floatValue)
raises(DOMException);
float getFloatValue(in [Optional=CallWithDefaultValue] unsigned short unitType)
raises(DOMException);
[OldStyleObjC] void setStringValue(in [Optional=CallWithDefaultValue] unsigned short stringType,
[ObjCLegacyUnamedParameters] void setStringValue(in [Optional=CallWithDefaultValue] unsigned short stringType,
in [Optional=CallWithDefaultValue] DOMString stringValue)
raises(DOMException);
DOMString getStringValue()
......
......@@ -25,7 +25,7 @@ module css {
CustomMarkFunction,
GenerateIsReachable,
CustomToJS,
Polymorphic,
ObjCPolymorphic,
V8DependentLifetime
] CSSRule {
......
......@@ -38,7 +38,7 @@ module css {
[ConvertNullStringTo=Null] DOMString removeProperty(in [Optional=CallWithDefaultValue] DOMString propertyName)
raises(DOMException);
[ConvertNullStringTo=Null] DOMString getPropertyPriority(in [Optional=CallWithDefaultValue] DOMString propertyName);
[OldStyleObjC] void setProperty(in [Optional=CallWithDefaultValue] DOMString propertyName,
[ObjCLegacyUnamedParameters] void setProperty(in [Optional=CallWithDefaultValue] DOMString propertyName,
in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString value,
in [Optional=CallWithDefaultValue] DOMString priority)
raises(DOMException);
......
......@@ -25,7 +25,7 @@ module css {
readonly attribute CSSRule ownerRule;
readonly attribute CSSRuleList cssRules;
[OldStyleObjC] unsigned long insertRule(in [Optional=CallWithDefaultValue] DOMString rule,
[ObjCLegacyUnamedParameters] unsigned long insertRule(in [Optional=CallWithDefaultValue] DOMString rule,
in [Optional=CallWithDefaultValue] unsigned long index)
raises(DOMException);
void deleteRule(in [Optional=CallWithDefaultValue] unsigned long index)
......
......@@ -24,7 +24,7 @@ module css {
CustomToJS,
CustomIsReachable,
CustomFinalize,
Polymorphic,
ObjCPolymorphic,
V8DependentLifetime
] CSSValue {
......
......@@ -25,7 +25,7 @@ module stylesheets {
CustomMarkFunction,
GenerateIsReachable,
CustomToJS,
Polymorphic,
ObjCPolymorphic,
V8DependentLifetime
] StyleSheet {
readonly attribute [ConvertNullStringTo=Null] DOMString type;
......
......@@ -26,22 +26,22 @@ module core {
readonly attribute unsigned long length;
[ConvertNullStringTo=Null, OldStyleObjC] DOMString substringData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
[ConvertNullStringTo=Null, ObjCLegacyUnamedParameters] DOMString substringData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
in [IsIndex,Optional=CallWithDefaultValue] unsigned long length)
raises(DOMException);
void appendData(in [Optional=CallWithDefaultValue] DOMString data)
raises(DOMException);
[OldStyleObjC] void insertData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
[ObjCLegacyUnamedParameters] void insertData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
in [Optional=CallWithDefaultValue] DOMString data)
raises(DOMException);
[OldStyleObjC] void deleteData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
[ObjCLegacyUnamedParameters] void deleteData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
in [IsIndex,Optional=CallWithDefaultValue] unsigned long length)
raises(DOMException);
[OldStyleObjC] void replaceData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
[ObjCLegacyUnamedParameters] void replaceData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
in [IsIndex,Optional=CallWithDefaultValue] unsigned long length,
in [Optional=CallWithDefaultValue] DOMString data)
raises(DOMException);
......
......@@ -27,23 +27,23 @@ module core {
// DOM Level 1
[OldStyleObjC] boolean hasFeature(in [Optional=CallWithDefaultValue] DOMString feature,
[ObjCLegacyUnamedParameters] boolean hasFeature(in [Optional=CallWithDefaultValue] DOMString feature,
in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString version);
// DOM Level 2
[OldStyleObjC] DocumentType createDocumentType(in [TreatNullAs=EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString qualifiedName,
[ObjCLegacyUnamedParameters] DocumentType createDocumentType(in [TreatNullAs=EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString qualifiedName,
in [TreatNullAs=EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString publicId,
in [TreatNullAs=EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString systemId)
raises(DOMException);
[OldStyleObjC] Document createDocument(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] Document createDocument(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString qualifiedName,
in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DocumentType doctype)
raises(DOMException);
// DOMImplementationCSS interface from DOM Level 2 CSS
[OldStyleObjC] CSSStyleSheet createCSSStyleSheet(in [Optional=CallWithDefaultValue] DOMString title,
[ObjCLegacyUnamedParameters] CSSStyleSheet createCSSStyleSheet(in [Optional=CallWithDefaultValue] DOMString title,
in [Optional=CallWithDefaultValue] DOMString media)
raises(DOMException);
......
......@@ -38,7 +38,7 @@ module core {
[ReturnsNew] Comment createComment(in [Optional=CallWithDefaultValue] DOMString data);
[ReturnsNew] CDATASection createCDATASection(in [Optional=CallWithDefaultValue] DOMString data)
raises(DOMException);
[OldStyleObjC, ReturnsNew] ProcessingInstruction createProcessingInstruction(in [Optional=CallWithDefaultValue] DOMString target,
[ObjCLegacyUnamedParameters, ReturnsNew] ProcessingInstruction createProcessingInstruction(in [Optional=CallWithDefaultValue] DOMString target,
in [Optional=CallWithDefaultValue] DOMString data)
raises (DOMException);
[ReturnsNew] Attr createAttribute(in [Optional=CallWithDefaultValue] DOMString name)
......@@ -49,16 +49,16 @@ module core {
// Introduced in DOM Level 2:
[OldStyleObjC, ReturnsNew] Node importNode(in [Optional=CallWithDefaultValue] Node importedNode,
[ObjCLegacyUnamedParameters, ReturnsNew] Node importNode(in [Optional=CallWithDefaultValue] Node importedNode,
in [Optional] boolean deep)
raises (DOMException);
[OldStyleObjC, ReturnsNew] Element createElementNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters, ReturnsNew] Element createElementNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString qualifiedName)
raises (DOMException);
[OldStyleObjC, ReturnsNew] Attr createAttributeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters, ReturnsNew] Attr createAttributeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString qualifiedName)
raises (DOMException);
[OldStyleObjC] NodeList getElementsByTagNameNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [Optional=CallWithDefaultValue] DOMString localName);
Element getElementById(in [Optional=CallWithDefaultValue] DOMString elementId);
......@@ -88,12 +88,12 @@ module core {
// DOM Level 2 Tranversal and Range (DocumentTraversal interface)
[OldStyleObjC] NodeIterator createNodeIterator(in [Optional=CallWithDefaultValue] Node root,
[ObjCLegacyUnamedParameters] NodeIterator createNodeIterator(in [Optional=CallWithDefaultValue] Node root,
in [Optional=CallWithDefaultValue] unsigned long whatToShow,
in [Optional=CallWithDefaultValue] NodeFilter filter,
in [Optional=CallWithDefaultValue] boolean expandEntityReferences)
raises(DOMException);
[OldStyleObjC] TreeWalker createTreeWalker(in [Optional=CallWithDefaultValue] Node root,
[ObjCLegacyUnamedParameters] TreeWalker createTreeWalker(in [Optional=CallWithDefaultValue] Node root,
in [Optional=CallWithDefaultValue] unsigned long whatToShow,
in [Optional=CallWithDefaultValue] NodeFilter filter,
in [Optional=CallWithDefaultValue] boolean expandEntityReferences)
......@@ -109,15 +109,15 @@ module core {
// DOM Level 2 Style (DocumentCSS interface)
[OldStyleObjC] CSSStyleDeclaration getOverrideStyle(in [Optional=CallWithDefaultValue] Element element,
[ObjCLegacyUnamedParameters] CSSStyleDeclaration getOverrideStyle(in [Optional=CallWithDefaultValue] Element element,
in [Optional=CallWithDefaultValue] DOMString pseudoElement);
// DOM Level 3 XPath (XPathEvaluator interface)
[OldStyleObjC] XPathExpression createExpression(in [Optional=CallWithDefaultValue] DOMString expression,
[ObjCLegacyUnamedParameters] XPathExpression createExpression(in [Optional=CallWithDefaultValue] DOMString expression,
in [Optional=CallWithDefaultValue] XPathNSResolver resolver)
raises(DOMException);
XPathNSResolver createNSResolver(in Node nodeResolver);
[OldStyleObjC, V8Custom] XPathResult evaluate(in [Optional=CallWithDefaultValue] DOMString expression,
[ObjCLegacyUnamedParameters, V8Custom] XPathResult evaluate(in [Optional=CallWithDefaultValue] DOMString expression,
in [Optional=CallWithDefaultValue] Node contextNode,
in [Optional=CallWithDefaultValue] XPathNSResolver resolver,
in [Optional=CallWithDefaultValue] unsigned short type,
......@@ -210,14 +210,14 @@ module core {
#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
// DOM Level 2 Style Interface
[OldStyleObjC, UsesView] CSSStyleDeclaration getComputedStyle(in Element element,
[ObjCLegacyUnamedParameters, ObjCUseDefaultView] CSSStyleDeclaration getComputedStyle(in Element element,
in DOMString pseudoElement);
// WebKit extension
// FIXME: remove the first version once [Optional] is implemented for Objective-C.
[UsesView] CSSRuleList getMatchedCSSRules(in Element element,
[ObjCUseDefaultView] CSSRuleList getMatchedCSSRules(in Element element,
in DOMString pseudoElement);
[UsesView] CSSRuleList getMatchedCSSRules(in Element element,
[ObjCUseDefaultView] CSSRuleList getMatchedCSSRules(in Element element,
in DOMString pseudoElement,
in [Optional] boolean authorOnly);
......
......@@ -30,7 +30,7 @@ module core {
readonly attribute [ConvertNullStringTo=Null] DOMString tagName;
[ConvertNullStringTo=Null] DOMString getAttribute(in [Optional=CallWithDefaultValue] DOMString name);
[OldStyleObjC] void setAttribute(in [Optional=CallWithDefaultValue] DOMString name,
[ObjCLegacyUnamedParameters] void setAttribute(in [Optional=CallWithDefaultValue] DOMString name,
in [Optional=CallWithDefaultValue] DOMString value)
raises(DOMException);
void removeAttribute(in [Optional=CallWithDefaultValue] DOMString name);
......@@ -43,22 +43,22 @@ module core {
// DOM Level 2 Core
[OldStyleObjC] DOMString getAttributeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] DOMString getAttributeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [Optional=CallWithDefaultValue] DOMString localName);
[OldStyleObjC] void setAttributeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] void setAttributeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [Optional=CallWithDefaultValue] DOMString qualifiedName,
in [Optional=CallWithDefaultValue] DOMString value)
raises(DOMException);
[OldStyleObjC] void removeAttributeNS(in [TreatNullAs=EmptyString] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] void removeAttributeNS(in [TreatNullAs=EmptyString] DOMString namespaceURI,
in DOMString localName);
[OldStyleObjC] NodeList getElementsByTagNameNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [Optional=CallWithDefaultValue] DOMString localName);
[OldStyleObjC] Attr getAttributeNodeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] Attr getAttributeNodeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [Optional=CallWithDefaultValue] DOMString localName);
Attr setAttributeNodeNS(in [Optional=CallWithDefaultValue] Attr newAttr)
raises(DOMException);
boolean hasAttribute(in DOMString name);
[OldStyleObjC] boolean hasAttributeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] boolean hasAttributeNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [Optional=CallWithDefaultValue] DOMString localName);
readonly attribute CSSStyleDeclaration style;
......
......@@ -25,7 +25,7 @@ module events {
CustomToJS,
ConstructorTemplate=Event,
NoStaticTables,
Polymorphic
ObjCPolymorphic
] Event {
// DOM PhaseType
......@@ -63,7 +63,7 @@ module events {
void stopPropagation();
void preventDefault();
[OldStyleObjC] void initEvent(in [Optional=CallWithDefaultValue] DOMString eventTypeArg,
[ObjCLegacyUnamedParameters] void initEvent(in [Optional=CallWithDefaultValue] DOMString eventTypeArg,
in [Optional=CallWithDefaultValue] boolean canBubbleArg,
in [Optional=CallWithDefaultValue] boolean cancelableArg);
......
......@@ -26,10 +26,10 @@ module events {
CPPPureInterface,
OmitConstructor
] EventTarget {
[OldStyleObjC] void addEventListener(in DOMString type,
[ObjCLegacyUnamedParameters] void addEventListener(in DOMString type,
in EventListener listener,
in [Optional] boolean useCapture);
[OldStyleObjC] void removeEventListener(in DOMString type,
[ObjCLegacyUnamedParameters] void removeEventListener(in DOMString type,
in EventListener listener,
in [Optional] boolean useCapture);
boolean dispatchEvent(in Event event)
......
......@@ -34,7 +34,7 @@ module events {
readonly attribute unsigned short button;
readonly attribute EventTarget relatedTarget;
[OldStyleObjC] void initMouseEvent(in [Optional=CallWithDefaultValue] DOMString type,
[ObjCLegacyUnamedParameters] void initMouseEvent(in [Optional=CallWithDefaultValue] DOMString type,
in [Optional=CallWithDefaultValue] boolean canBubble,
in [Optional=CallWithDefaultValue] boolean cancelable,
in [Optional=CallWithDefaultValue] DOMWindow view,
......
......@@ -33,7 +33,7 @@ module events {
readonly attribute DOMString attrName;
readonly attribute unsigned short attrChange;
[OldStyleObjC] void initMutationEvent(in [Optional=CallWithDefaultValue] DOMString type,
[ObjCLegacyUnamedParameters] void initMutationEvent(in [Optional=CallWithDefaultValue] DOMString type,
in [Optional=CallWithDefaultValue] boolean canBubble,
in [Optional=CallWithDefaultValue] boolean cancelable,
in [Optional=CallWithDefaultValue] Node relatedNode,
......
......@@ -42,7 +42,7 @@ module core {
// Introduced in DOM Level 2:
[OldStyleObjC] Node getNamedItemNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] Node getNamedItemNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [Optional=CallWithDefaultValue] DOMString localName)
// FIXME: the implementation does take an exceptioncode parameter.
/*raises(DOMException)*/;
......@@ -50,7 +50,7 @@ module core {
Node setNamedItemNS(in [Optional=CallWithDefaultValue] Node node)
raises(DOMException);
[OldStyleObjC] Node removeNamedItemNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
[ObjCLegacyUnamedParameters] Node removeNamedItemNS(in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,
in [Optional=CallWithDefaultValue] DOMString localName)
raises(DOMException);
......
......@@ -30,7 +30,7 @@ module core {
EventTarget,
GenerateNativeConverter,
InlineGetOwnPropertySlot,
Polymorphic,
ObjCPolymorphic,
V8DependentLifetime
] Node
#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
......@@ -67,10 +67,10 @@ module core {
readonly attribute NamedNodeMap attributes;
readonly attribute Document ownerDocument;
[OldStyleObjC, Custom] Node insertBefore(in [Return] Node newChild,
[ObjCLegacyUnamedParameters, Custom] Node insertBefore(in [Return] Node newChild,
in Node refChild)
raises(DOMException);
[OldStyleObjC, Custom] Node replaceChild(in Node newChild,
[ObjCLegacyUnamedParameters, Custom] Node replaceChild(in Node newChild,
in [Return] Node oldChild)
raises(DOMExceptionJSC);
[Custom] Node removeChild(in [Return] Node oldChild)
......@@ -84,7 +84,7 @@ module core {
// Introduced in DOM Level 2:
[OldStyleObjC] boolean isSupported(in [Optional=CallWithDefaultValue] DOMString feature,
[ObjCLegacyUnamedParameters] boolean isSupported(in [Optional=CallWithDefaultValue] DOMString feature,
in [TreatNullAs=EmptyString,Optional=CallWithDefaultValue] DOMString version);
readonly attribute [ConvertNullStringTo=Null] DOMString namespaceURI;
......
......@@ -36,10 +36,10 @@ module ranges {
readonly attribute Node commonAncestorContainer
getter raises(DOMException);
[OldStyleObjC] void setStart(in [Optional=CallWithDefaultValue] Node refNode,
[ObjCLegacyUnamedParameters] void setStart(in [Optional=CallWithDefaultValue] Node refNode,
in [Optional=CallWithDefaultValue] long offset)
raises(RangeException, DOMException);
[OldStyleObjC] void setEnd(in [Optional=CallWithDefaultValue] Node refNode,
[ObjCLegacyUnamedParameters] void setEnd(in [Optional=CallWithDefaultValue] Node refNode,
in [Optional=CallWithDefaultValue] long offset)
raises(RangeException, DOMException);
void setStartBefore(in [Optional=CallWithDefaultValue] Node refNode)
......@@ -63,7 +63,7 @@ module ranges {
const unsigned short END_TO_END = 2;
const unsigned short END_TO_START = 3;
[OldStyleObjC] short compareBoundaryPoints(in [Optional=CallWithDefaultValue] CompareHow how,
[ObjCLegacyUnamedParameters] short compareBoundaryPoints(in [Optional=CallWithDefaultValue] CompareHow how,
in [Optional=CallWithDefaultValue] Range sourceRange)
raises(DOMException);
......
......@@ -24,7 +24,7 @@ module events {
readonly attribute DOMWindow view;
readonly attribute long detail;
[OldStyleObjC] void initUIEvent(in [Optional=CallWithDefaultValue] DOMString type,
[ObjCLegacyUnamedParameters] void initUIEvent(in [Optional=CallWithDefaultValue] DOMString type,
in [Optional=CallWithDefaultValue] boolean canBubble,
in [Optional=CallWithDefaultValue] boolean cancelable,
in [Optional=CallWithDefaultValue] DOMWindow view,
......
......@@ -25,7 +25,7 @@ module html {
HasNameGetter,
CustomToJS,
GenerateIsReachable,
Polymorphic
ObjCPolymorphic
] HTMLCollection {
readonly attribute unsigned long length;
Node item(in [Optional=CallWithDefaultValue] unsigned long index);
......
......@@ -52,7 +52,7 @@ module html {
attribute [Reflect] boolean required;
attribute long size;
[OldStyleObjC] void add(in [Optional=CallWithDefaultValue] HTMLElement element,
[ObjCLegacyUnamedParameters] void add(in [Optional=CallWithDefaultValue] HTMLElement element,
in [Optional=CallWithDefaultValue] HTMLElement before) raises(DOMException);
#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
......
......@@ -29,7 +29,7 @@ module svg {
interface [
Conditional=SVG,
CustomToJS,
Polymorphic
ObjCPolymorphic
] SVGPathSeg {
// Path Segment Types
const unsigned short PATHSEG_UNKNOWN = 0;
......
......@@ -21,7 +21,7 @@
module xpath {
interface XPathExpression {
[OldStyleObjC] XPathResult evaluate(in [Optional=CallWithDefaultValue] Node contextNode,
[ObjCLegacyUnamedParameters] XPathResult evaluate(in [Optional=CallWithDefaultValue] Node contextNode,
in [Optional=CallWithDefaultValue] unsigned short type,
in [Optional=CallWithDefaultValue] XPathResult inResult)
raises(DOMException);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment