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

Unified Diff: dart/site/try/src/selection.dart

Issue 270703005: Fix source_update_test on Chrome. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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: dart/site/try/src/selection.dart
diff --git a/dart/site/try/src/selection.dart b/dart/site/try/src/selection.dart
index 7551b596545826eae5143722763b55e276a20b53..a8005e6150174708cc97ccba93a545dcfc793f9c 100644
--- a/dart/site/try/src/selection.dart
+++ b/dart/site/try/src/selection.dart
@@ -26,6 +26,10 @@ class TrySelection {
: anchorNode = isCollapsed(selection) ? selection.anchorNode : null,
anchorOffset = isCollapsed(selection) ? selection.anchorOffset : -1;
+ TrySelection.empty(this.root)
+ : anchorNode = null,
+ anchorOffset = -1;
+
Text addNodeFromSubstring(int start,
int end,
List<Node> nodes,

Powered by Google App Engine
This is Rietveld 408576698