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

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

Issue 1173403004: Changed to use JSInterop (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Re-gen'd somehow diffs stopped showing up in CL Created 5 years, 5 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_Document.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Document.darttemplate b/tools/dom/templates/html/impl/impl_Document.darttemplate
index 0640f994f90500c8ade9eb03ff719e0f5f088a58..a9b19cf4467bf05c724769ca39c45bd358c9411f 100644
--- a/tools/dom/templates/html/impl/impl_Document.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Document.darttemplate
@@ -26,7 +26,11 @@ $!MEMBERS
* [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
*/
ElementList<Element> querySelectorAll(String selectors) {
+$if JSINTEROP
+ return _querySelectorAll(selectors);
+$else
return new _FrozenElementList._wrap(_querySelectorAll(selectors));
+$endif
}
/**
@@ -66,12 +70,16 @@ $endif
$if DART2JS
return _createElement(tagName, typeExtension);
$else
- if (typeExtension != null) {
- return _createElement(tagName, typeExtension);
- } else {
- // Fast-path for Dartium when typeExtension is not needed.
- return _Utils.createElement(this, tagName);
- }
+ $if JSINTEROP
+ return _createElement(tagName, typeExtension);
+ $else
+ if (typeExtension != null) {
+ return _createElement(tagName, typeExtension);
+ } else {
+ // Fast-path for Dartium when typeExtension is not needed.
+ return _Utils.createElement(this, tagName);
+ }
+ $endif
$endif
}

Powered by Google App Engine
This is Rietveld 408576698