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); |
+ } |
+} |