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

Side by Side Diff: lib/src/effects/css3_transition_effect.dart

Issue 14295009: Fix widget.dart to work with the latest web_ui library. Specifically, query selectors need to use "… (Closed) Base URL: https://github.com/kevmoo/widget.dart.git@master
Patch Set: ptal Created 7 years, 8 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 unified diff | Download patch
« no previous file with comments | « lib/components/tabs.html ('k') | lib/src/effects/modal_manager.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of effects; 1 part of effects;
2 2
3 class Css3TransitionEffect extends ShowHideEffect { 3 class Css3TransitionEffect extends ShowHideEffect {
4 static const List<String> _reservedProperties = const ['transitionProperty', ' transitionDuration']; 4 static const List<String> _reservedProperties = const ['transitionProperty', ' transitionDuration'];
5 final String _property; 5 final String _property;
6 final String _hideValue; 6 final String _hideValue;
7 final String _showValue; 7 final String _showValue;
8 final Map<String, String> _animatingOverrides; 8 final Map<String, String> _animatingOverrides;
9 9
10 Css3TransitionEffect(this._property, this._hideValue, this._showValue, [Map<St ring, String> animatingOverrides]) : _animatingOverrides = animatingOverrides == null ? new Map<String, String>() : new Map<String, String>.from(animatingOverri des) { 10 Css3TransitionEffect(this._property, this._hideValue, this._showValue, [Map<St ring, String> animatingOverrides]) : _animatingOverrides = animatingOverrides == null ? new Map<String, String>() : new Map<String, String>.from(animatingOverri des) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 void _setShowValue(Element element, String value, int desiredDuration, EffectT iming timing) { 72 void _setShowValue(Element element, String value, int desiredDuration, EffectT iming timing) {
73 final cssTimingValue = CssEffectTiming._getCssValue(timing); 73 final cssTimingValue = CssEffectTiming._getCssValue(timing);
74 74
75 element.style.transitionTimingFunction = cssTimingValue; 75 element.style.transitionTimingFunction = cssTimingValue;
76 element.style.transitionProperty = _property; 76 element.style.transitionProperty = _property;
77 element.style.transitionDuration = '${desiredDuration}ms'; 77 element.style.transitionDuration = '${desiredDuration}ms';
78 element.style.setProperty(_property, value); 78 element.style.setProperty(_property, value);
79 } 79 }
80 80
81 static Map<String, String> _recordProperties(Element element, Collection<Strin g> properties) { 81 static Map<String, String> _recordProperties(Element element, Iterable<String> properties) {
82 final map = new Map<String, String>(); 82 final map = new Map<String, String>();
83 83
84 for(final p in properties) { 84 for(final p in properties) {
85 assert(!map.containsKey(p)); 85 assert(!map.containsKey(p));
86 map[p] = element.style.getPropertyValue(p); 86 map[p] = element.style.getPropertyValue(p);
87 } 87 }
88 88
89 return map; 89 return map;
90 } 90 }
91 } 91 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 static Map<String, String> cleanup(Element element) { 125 static Map<String, String> cleanup(Element element) {
126 final value = _values[element]; 126 final value = _values[element];
127 assert(value != null); 127 assert(value != null);
128 _values[element] = null; 128 _values[element] = null;
129 return value._cleanup(); 129 return value._cleanup();
130 } 130 }
131 } 131 }
132 132
133 133
OLDNEW
« no previous file with comments | « lib/components/tabs.html ('k') | lib/src/effects/modal_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698