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

Unified Diff: dart/site/try/src/interaction_manager.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
« no previous file with comments | « no previous file | dart/site/try/src/selection.dart » ('j') | dart/site/try/src/shadow_root.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/interaction_manager.dart
diff --git a/dart/site/try/src/interaction_manager.dart b/dart/site/try/src/interaction_manager.dart
index 970a60f64e84fd134d426901a174f22b5a2076a3..86ec3ab38831b9213693ce332a82237b0d8ed1d7 100644
--- a/dart/site/try/src/interaction_manager.dart
+++ b/dart/site/try/src/interaction_manager.dart
@@ -66,6 +66,7 @@ import 'settings.dart' as settings;
import 'shadow_root.dart' show
getShadowRoot,
+ getText,
removeShadowRootPolyfill,
setShadowRoot;
@@ -316,12 +317,17 @@ class InitialState extends InteractionState {
node.remove();
trySelection.adjust(selection);
+ // TODO(ahe): We know almost exactly what has changed. It could be
+ // more efficient to only communicate what changed.
+ context.currentCompilationUnit.content = getText(mainEditorPane);
+
// Discard highlighting mutations.
observer.takeRecords();
return;
}
}
+ // TODO(ahe): Use getText(mainEditorPane) instead.
removeShadowRootPolyfill(mainEditorPane);
String currentText = mainEditorPane.text;
« no previous file with comments | « no previous file | dart/site/try/src/selection.dart » ('j') | dart/site/try/src/shadow_root.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698