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

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

Issue 928833003: Add Function based profile tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/class_ref.dart
diff --git a/runtime/observatory/lib/src/elements/class_ref.dart b/runtime/observatory/lib/src/elements/class_ref.dart
index 3a49ec8b08a1014c9945a532968f81c28e507767..5eebe734d4d5bcf036608891bb9757d9677a2d1d 100644
--- a/runtime/observatory/lib/src/elements/class_ref.dart
+++ b/runtime/observatory/lib/src/elements/class_ref.dart
@@ -10,4 +10,17 @@ import 'service_ref.dart';
@CustomTag('class-ref')
class ClassRefElement extends ServiceRefElement {
ClassRefElement.created() : super.created();
-}
+
+ refChanged(oldValue) {
+ super.refChanged(oldValue);
+ _updateShadowDom();
+ }
+
+ void _updateShadowDom() {
+ clearShadowRoot();
+ if (ref == null) {
+ return;
+ }
+ insertLinkIntoShadowRoot(name, url, hoverText);
+ }
+}
« no previous file with comments | « runtime/observatory/lib/src/cpu_profile/cpu_profile.dart ('k') | runtime/observatory/lib/src/elements/class_ref.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698