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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 17681003: Restore adoptNode and importNode to dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/html/document_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index d43efdef4cf6d857ead3488b4db3d78ea225ccaf..0cc1570b2845e9a5b94389f4d7f91853ba3bb849 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -7326,6 +7326,10 @@ class Document extends Node
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.html#dom-document-visibilitystate
String get $dom_webkitVisibilityState native "Document_webkitVisibilityState_Getter";
+ @DomName('Document.adoptNode')
+ @DocsEditable
+ Node adoptNode(Node source) native "Document_adoptNode_Callback";
+
/// Use the [Range] constructor instead.
@DomName('Document.caretRangeFromPoint')
@DocsEditable
@@ -7436,6 +7440,17 @@ class Document extends Node
@DocsEditable
List<Node> getElementsByTagName(String tagname) native "Document_getElementsByTagName_Callback";
+ Node importNode(Node importedNode, [bool deep]) {
+ if (deep != null) {
+ return _importNode_1(importedNode, deep);
+ }
+ return _importNode_2(importedNode);
+ }
+
+ Node _importNode_1(importedNode, deep) native "Document__importNode_1_Callback";
+
+ Node _importNode_2(importedNode) native "Document__importNode_2_Callback";
+
@DomName('Document.queryCommandEnabled')
@DocsEditable
bool queryCommandEnabled(String command) native "Document_queryCommandEnabled_Callback";
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/html/document_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698