Commit 7e8dcef4 authored by haraken@chromium.org's avatar haraken@chromium.org

Remove [PerWorldBindings] from not performance-sensitive methods

This CL removes binary size by 43 KB (Linux Release). I don't see any regression with this CL in Dromaeo.

Review URL: https://codereview.chromium.org/332973002

git-svn-id: svn://svn.chromium.org/blink/trunk@176097 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 4a45f5fe
......@@ -33,12 +33,12 @@ typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
[CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Element createElement(DOMString tagName);
DocumentFragment createDocumentFragment();
[PerWorldBindings] Text createTextNode(DOMString data);
Text createTextNode(DOMString data);
Comment createComment(DOMString data);
[RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createCDATASection([Default=Undefined] 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.
[PerWorldBindings] HTMLCollection getElementsByTagName(DOMString localName);
HTMLCollection getElementsByTagName(DOMString localName);
// Introduced in DOM Level 2:
......
......@@ -32,7 +32,7 @@
[MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined] optional DOMString name); // Removed from DOM4.
[RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, TypeChecking=Nullable] optional Attr newAttr); // Removed from DOM4.
[RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNode] Attr removeAttributeNode([Default=Undefined, TypeChecking=Nullable] optional Attr oldAttr); // Removed from DOM4.
[PerWorldBindings] HTMLCollection getElementsByTagName(DOMString name);
HTMLCollection getElementsByTagName(DOMString name);
[PerWorldBindings] readonly attribute NamedNodeMap attributes;
[MeasureAs=HasAttributes] boolean hasAttributes();
......@@ -110,7 +110,7 @@
// Shadow DOM API
[RaisesException, MeasureAs=ElementCreateShadowRoot] ShadowRoot createShadowRoot();
[PerWorldBindings] readonly attribute ShadowRoot shadowRoot;
[PerWorldBindings] NodeList getDestinationInsertionPoints();
NodeList getDestinationInsertionPoints();
// CSSOM View Module API
ClientRectList getClientRects();
......
......@@ -51,12 +51,11 @@
[Custom, CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Node insertBefore(Node newChild, Node refChild);
[Custom, CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Node replaceChild(Node newChild, Node oldChild);
[Custom, CustomElementCallbacks, PerWorldBindings, RaisesException] Node removeChild(Node oldChild);
[Custom, CustomElementCallbacks, RaisesException] Node removeChild(Node oldChild);
[Custom, CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Node appendChild(Node newChild);
[ImplementedAs=hasChildren] boolean hasChildNodes();
[CustomElementCallbacks, PerWorldBindings]
Node cloneNode(optional boolean deep);
[CustomElementCallbacks] Node cloneNode(optional boolean deep);
[CustomElementCallbacks] void normalize();
// Introduced in DOM Level 2:
......
......@@ -30,5 +30,5 @@
[MeasureAs=TextReplaceWholeText] Text replaceWholeText(DOMString content); // Removed from DOM4.
// Shadow DOM API
[PerWorldBindings] NodeList getDestinationInsertionPoints();
NodeList getDestinationInsertionPoints();
};
......@@ -139,7 +139,7 @@
readonly attribute StyleMedia styleMedia;
// DOM Level 2 Style Interface
[PerWorldBindings] CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element element,
CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element element,
[TreatNullAs=NullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString pseudoElement);
// WebKit extensions
......
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