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

Unified Diff: example/todomvc/test/todomvc_markdone_test.html

Issue 19497002: Reducing the amount of code we generate in the compiler: We still continue (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 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: example/todomvc/test/todomvc_markdone_test.html
diff --git a/example/todomvc/test/todomvc_markdone_test.html b/example/todomvc/test/todomvc_markdone_test.html
index c24b79d655f61fd35bb0930a021aee4e5bde653e..e1d564cf382e7d86b7d083cc71bc579f7f5387c0 100644
--- a/example/todomvc/test/todomvc_markdone_test.html
+++ b/example/todomvc/test/todomvc_markdone_test.html
@@ -29,8 +29,8 @@ import '../web/model.dart';
Node findWithText(Node node, String text) {
if (node.text == text) return node;
- if (node is Element && node.shadowRoot != null) {
- var r = findWithText(node.shadowRoot, text);
+ if (node is Element && (node as Element).shadowRoot != null) {
+ var r = findWithText((node as Element).shadowRoot, text);
if (r != null) return r;
}
for (var n in node.nodes) {
@@ -42,7 +42,7 @@ Node findWithText(Node node, String text) {
Node findShadowHost(Node node, ShadowRoot root) {
if (node is Element) {
- var shadowRoot = node.shadowRoot;
+ var shadowRoot = (node as Element).shadowRoot;
if (shadowRoot == root) return node;
if (shadowRoot != null) {
var r = findShadowHost(shadowRoot, root);

Powered by Google App Engine
This is Rietveld 408576698