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

Unified Diff: client/samples/total/src/HtmlTable.dart

Issue 8835006: New version of dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 9 years 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
« no previous file with comments | « client/samples/total/src/ContextMenuBuilder.dart ('k') | client/samples/total/src/InnerMenuView.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/total/src/HtmlTable.dart
diff --git a/client/samples/total/src/HtmlTable.dart b/client/samples/total/src/HtmlTable.dart
index d2e524076aa02fb9eefe2eb6d9df2fa580a3ec0a..e884106f8ba562bf1a4db7f3e8ec8a248079af5f 100644
--- a/client/samples/total/src/HtmlTable.dart
+++ b/client/samples/total/src/HtmlTable.dart
@@ -14,7 +14,7 @@ class HtmlTable {
// Must be called after the creation of the <tbody> element
DivElement get formulaCellSelectingDiv() {
if (_formulaCellSelectingDiv == null) {
- _formulaCellSelectingDiv = _table.document.createElement("div");
+ _formulaCellSelectingDiv = new Element.tag("div");
_formulaCellSelectingDiv.id = "formulaSelectingCell-${_spreadsheet.name}";
_formulaCellSelectingDiv.attributes["class"] = "formulaSelectingCell";
}
@@ -28,7 +28,7 @@ class HtmlTable {
HtmlTable(this._spreadsheet, Element parent) {
Document doc = parent.document;
- _table = doc.createElement("table");
+ _table = new Element.tag("table");
_table.attributes["class"] = "spreadsheet";
_table.style.setProperty("position", "absolute");
_table.style.setProperty("z-index", "2");
@@ -45,7 +45,7 @@ class HtmlTable {
TableCellElement cell;
if (first) {
first = false;
- cell = doc.createElement("td");
+ cell = new Element.tag("td");
cell.width = HtmlUtils.toPx(columnWidth);
row.insertBefore(cell, row.cells[col]);
} else {
« no previous file with comments | « client/samples/total/src/ContextMenuBuilder.dart ('k') | client/samples/total/src/InnerMenuView.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698