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

Unified Diff: sky/sdk/lib/framework/components2/icon.dart

Issue 1174023003: Remove one more use of mirrors: Components now have to explicitly sync their fields. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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: sky/sdk/lib/framework/components2/icon.dart
diff --git a/sky/sdk/lib/framework/components2/icon.dart b/sky/sdk/lib/framework/components2/icon.dart
index 60cdb212ad76b567eb30cf597c6780a489038e5b..e5a6b46a60db62e64682350ffc1340d363e50c95 100644
--- a/sky/sdk/lib/framework/components2/icon.dart
+++ b/sky/sdk/lib/framework/components2/icon.dart
@@ -18,6 +18,12 @@ class Icon extends Component {
int size;
String type;
+ void syncFields(Icon source) {
+ size = source.size;
+ type = source.type;
+ super.syncFields(source);
+ }
+
UINode build() {
String category = '';
String subtype = '';

Powered by Google App Engine
This is Rietveld 408576698