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

Unified Diff: runtime/observatory/lib/src/elements/source_link_wrapper.dart

Issue 2277543004: Converted Observatory script-inset & source-inset elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Converted Observatory eval-box element Created 4 years, 4 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: runtime/observatory/lib/src/elements/source_link_wrapper.dart
diff --git a/runtime/observatory/lib/src/elements/source_link_wrapper.dart b/runtime/observatory/lib/src/elements/source_link_wrapper.dart
index 20221eac2ca4d28d0a4f8c7d7e33f1e09ac67178..199f9497cded3014bf276b073a7768b942bb11a5 100644
--- a/runtime/observatory/lib/src/elements/source_link_wrapper.dart
+++ b/runtime/observatory/lib/src/elements/source_link_wrapper.dart
@@ -45,8 +45,6 @@ class SourceLinkElementWrapper extends HtmlElement {
return;
}
- ScriptRepository repository = new ScriptRepository(_location.isolate);
-
shadowRoot.children = [
new StyleElement()
..text = '''
@@ -57,7 +55,8 @@ class SourceLinkElementWrapper extends HtmlElement {
color: #0489c3;
text-decoration: none;
}''',
- new SourceLinkElement(_location.isolate, _location, repository,
+ new SourceLinkElement(_location.isolate, _location,
+ new ScriptRepository(),
queue: ObservatoryApplication.app.queue)
];
}

Powered by Google App Engine
This is Rietveld 408576698