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

Unified Diff: lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 10942017: Fixing up Table.createTBody et al. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating review feedback. Created 8 years, 3 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 | « no previous file | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dart2js/html_dart2js.dart
diff --git a/lib/html/dart2js/html_dart2js.dart b/lib/html/dart2js/html_dart2js.dart
index 4bd1d4024b49d1ac71cc9de13ded44a991684865..c31e485b7ecc4188333da0fc783e55f15b660db2 100644
--- a/lib/html/dart2js/html_dart2js.dart
+++ b/lib/html/dart2js/html_dart2js.dart
@@ -33093,6 +33093,9 @@ abstract class TableElement implements Element {
/** @domName HTMLTableElement.insertRow */
Element insertRow(int index);
}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
class _TableElementImpl extends _ElementImpl implements TableElement native "*HTMLTableElement" {
@@ -33126,8 +33129,6 @@ class _TableElementImpl extends _ElementImpl implements TableElement native "*HT
_ElementImpl createCaption() native;
- _ElementImpl createTBody() native;
-
_ElementImpl createTFoot() native;
_ElementImpl createTHead() native;
@@ -33141,6 +33142,18 @@ class _TableElementImpl extends _ElementImpl implements TableElement native "*HT
void deleteTHead() native;
_ElementImpl insertRow(int index) native;
+
+
+ _ElementImpl createTBody() {
+ if (JS('bool', '!!#.createTBody', this)) {
+ return this._createTBody();
+ }
+ var tbody = new Element.tag('tbody');
+ this.elements.add(tbody);
+ return tbody;
+ }
+
+ _ElementImpl _createTBody() native 'createTBody';
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698