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

Unified Diff: tools/dom/templates/html/impl/impl_Node.darttemplate

Issue 1832713002: Optimize dartium dart:html bindings so real world application performance is acceptable. Improves d… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: update cached patches Created 4 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: tools/dom/templates/html/impl/impl_Node.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate
index 17bc6014b455b415b92159f18c8cd7eb5f7d1ef6..4362733abc88d6069ae2b1ed90f24bc93d6cf44b 100644
--- a/tools/dom/templates/html/impl/impl_Node.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Node.darttemplate
@@ -200,14 +200,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
$if DART2JS
Node._created() : super._created();
$else
- Node._created() : super._created() {
- // By this point blink_jsObject should be setup if it's not then we weren't
- // called by the registerElement createdCallback - probably created() was
- // called directly which is verboten.
- if (this.blink_jsObject == null) {
- throw new DomException.jsInterop("the created constructor cannot be called directly");
- }
- }
+ Node._created() : super._created();
$endif
/**
@@ -304,7 +297,7 @@ $if DARTIUM
*/
@DomName('Node.childNodes')
@DocsEditable()
- List<Node> get childNodes => wrap_jso(_blink.BlinkNode.instance.childNodes_Getter_(unwrap_jso(this)));
+ List<Node> get childNodes => _blink.BlinkNode.instance.childNodes_Getter_(this);
$else
/**
* A list of this node's children.

Powered by Google App Engine
This is Rietveld 408576698