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

Side by Side Diff: tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate

Issue 966803004: Generate fast-path CssStyleDeclaration properties from browser info (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add fast path batch setter for known path Created 5 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 | Annotate | Revision Log
« no previous file with comments | « tools/dom/scripts/css_code_generator.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 // WARNING: DO NOT EDIT THIS TEMPLATE FILE. 6 // WARNING: DO NOT EDIT THIS TEMPLATE FILE.
7 // The template file was generated by scripts/css_code_generator.py 7 // The template file was generated by scripts/css_code_generator.py
8 8
9 // Source of CSS properties: 9 // Source of CSS properties:
10 // CSSPropertyNames.in 10 // CSSPropertyNames.in
11 11
12 part of $LIBRARYNAME; 12 part of $LIBRARYNAME;
13 13
14 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS) class $CLASSNAME $EXTENDS with 14 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME $EXTENDS with
15 $(CLASSNAME)Base $IMPLEMENTS { 15 $(CLASSNAME)Base $IMPLEMENTS {
16 factory $CLASSNAME() => new CssStyleDeclaration.css(''); 16 factory $CLASSNAME() => new CssStyleDeclaration.css('');
17 17
18 factory $CLASSNAME.css(String css) { 18 factory $CLASSNAME.css(String css) {
19 final style = new Element.tag('div').style; 19 final style = new Element.tag('div').style;
20 style.cssText = css; 20 style.cssText = css;
21 return style; 21 return style;
22 } 22 }
23 23
24 String getPropertyValue(String propertyName) { 24 String getPropertyValue(String propertyName) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 119 }
120 _setProperty(propertyName, value, priority); 120 _setProperty(propertyName, value, priority);
121 } 121 }
122 122
123 /** 123 /**
124 * Checks to see if CSS Transitions are supported. 124 * Checks to see if CSS Transitions are supported.
125 */ 125 */
126 static bool get supportsTransitions => true; 126 static bool get supportsTransitions => true;
127 $endif 127 $endif
128 $!MEMBERS 128 $!MEMBERS
129 $if DART2JS
130
131 /** Gets the value of "background" */
132 String get background => this._background;
133
134 /** Sets the value of "background" */
135 void set background(String value) {
136 _background = value == null ? '' : value;
137 }
138 @Returns('String')
139 @JSName('background')
140 String _background;
141
142 /** Gets the value of "background-attachment" */
143 String get backgroundAttachment => this._backgroundAttachment;
144
145 /** Sets the value of "background-attachment" */
146 void set backgroundAttachment(String value) {
147 _backgroundAttachment = value == null ? '' : value;
148 }
149 @Returns('String')
150 @JSName('backgroundAttachment')
151 String _backgroundAttachment;
152
153 /** Gets the value of "background-color" */
154 String get backgroundColor => this._backgroundColor;
155
156 /** Sets the value of "background-color" */
157 void set backgroundColor(String value) {
158 _backgroundColor = value == null ? '' : value;
159 }
160 @Returns('String')
161 @JSName('backgroundColor')
162 String _backgroundColor;
163
164 /** Gets the value of "background-image" */
165 String get backgroundImage => this._backgroundImage;
166
167 /** Sets the value of "background-image" */
168 void set backgroundImage(String value) {
169 _backgroundImage = value == null ? '' : value;
170 }
171 @Returns('String')
172 @JSName('backgroundImage')
173 String _backgroundImage;
174
175 /** Gets the value of "background-position" */
176 String get backgroundPosition => this._backgroundPosition;
177
178 /** Sets the value of "background-position" */
179 void set backgroundPosition(String value) {
180 _backgroundPosition = value == null ? '' : value;
181 }
182 @Returns('String')
183 @JSName('backgroundPosition')
184 String _backgroundPosition;
185
186 /** Gets the value of "background-repeat" */
187 String get backgroundRepeat => this._backgroundRepeat;
188
189 /** Sets the value of "background-repeat" */
190 void set backgroundRepeat(String value) {
191 _backgroundRepeat = value == null ? '' : value;
192 }
193 @Returns('String')
194 @JSName('backgroundRepeat')
195 String _backgroundRepeat;
196
197 /** Gets the value of "border" */
198 String get border => this._border;
199
200 /** Sets the value of "border" */
201 void set border(String value) {
202 _border = value == null ? '' : value;
203 }
204 @Returns('String')
205 @JSName('border')
206 String _border;
207
208 /** Gets the value of "border-bottom" */
209 String get borderBottom => this._borderBottom;
210
211 /** Sets the value of "border-bottom" */
212 void set borderBottom(String value) {
213 _borderBottom = value == null ? '' : value;
214 }
215 @Returns('String')
216 @JSName('borderBottom')
217 String _borderBottom;
218
219 /** Gets the value of "border-bottom-color" */
220 String get borderBottomColor => this._borderBottomColor;
221
222 /** Sets the value of "border-bottom-color" */
223 void set borderBottomColor(String value) {
224 _borderBottomColor = value == null ? '' : value;
225 }
226 @Returns('String')
227 @JSName('borderBottomColor')
228 String _borderBottomColor;
229
230 /** Gets the value of "border-bottom-style" */
231 String get borderBottomStyle => this._borderBottomStyle;
232
233 /** Sets the value of "border-bottom-style" */
234 void set borderBottomStyle(String value) {
235 _borderBottomStyle = value == null ? '' : value;
236 }
237 @Returns('String')
238 @JSName('borderBottomStyle')
239 String _borderBottomStyle;
240
241 /** Gets the value of "border-bottom-width" */
242 String get borderBottomWidth => this._borderBottomWidth;
243
244 /** Sets the value of "border-bottom-width" */
245 void set borderBottomWidth(String value) {
246 _borderBottomWidth = value == null ? '' : value;
247 }
248 @Returns('String')
249 @JSName('borderBottomWidth')
250 String _borderBottomWidth;
251
252 /** Gets the value of "border-collapse" */
253 String get borderCollapse => this._borderCollapse;
254
255 /** Sets the value of "border-collapse" */
256 void set borderCollapse(String value) {
257 _borderCollapse = value == null ? '' : value;
258 }
259 @Returns('String')
260 @JSName('borderCollapse')
261 String _borderCollapse;
262
263 /** Gets the value of "border-color" */
264 String get borderColor => this._borderColor;
265
266 /** Sets the value of "border-color" */
267 void set borderColor(String value) {
268 _borderColor = value == null ? '' : value;
269 }
270 @Returns('String')
271 @JSName('borderColor')
272 String _borderColor;
273
274 /** Gets the value of "border-left" */
275 String get borderLeft => this._borderLeft;
276
277 /** Sets the value of "border-left" */
278 void set borderLeft(String value) {
279 _borderLeft = value == null ? '' : value;
280 }
281 @Returns('String')
282 @JSName('borderLeft')
283 String _borderLeft;
284
285 /** Gets the value of "border-left-color" */
286 String get borderLeftColor => this._borderLeftColor;
287
288 /** Sets the value of "border-left-color" */
289 void set borderLeftColor(String value) {
290 _borderLeftColor = value == null ? '' : value;
291 }
292 @Returns('String')
293 @JSName('borderLeftColor')
294 String _borderLeftColor;
295
296 /** Gets the value of "border-left-style" */
297 String get borderLeftStyle => this._borderLeftStyle;
298
299 /** Sets the value of "border-left-style" */
300 void set borderLeftStyle(String value) {
301 _borderLeftStyle = value == null ? '' : value;
302 }
303 @Returns('String')
304 @JSName('borderLeftStyle')
305 String _borderLeftStyle;
306
307 /** Gets the value of "border-left-width" */
308 String get borderLeftWidth => this._borderLeftWidth;
309
310 /** Sets the value of "border-left-width" */
311 void set borderLeftWidth(String value) {
312 _borderLeftWidth = value == null ? '' : value;
313 }
314 @Returns('String')
315 @JSName('borderLeftWidth')
316 String _borderLeftWidth;
317
318 /** Gets the value of "border-right" */
319 String get borderRight => this._borderRight;
320
321 /** Sets the value of "border-right" */
322 void set borderRight(String value) {
323 _borderRight = value == null ? '' : value;
324 }
325 @Returns('String')
326 @JSName('borderRight')
327 String _borderRight;
328
329 /** Gets the value of "border-right-color" */
330 String get borderRightColor => this._borderRightColor;
331
332 /** Sets the value of "border-right-color" */
333 void set borderRightColor(String value) {
334 _borderRightColor = value == null ? '' : value;
335 }
336 @Returns('String')
337 @JSName('borderRightColor')
338 String _borderRightColor;
339
340 /** Gets the value of "border-right-style" */
341 String get borderRightStyle => this._borderRightStyle;
342
343 /** Sets the value of "border-right-style" */
344 void set borderRightStyle(String value) {
345 _borderRightStyle = value == null ? '' : value;
346 }
347 @Returns('String')
348 @JSName('borderRightStyle')
349 String _borderRightStyle;
350
351 /** Gets the value of "border-right-width" */
352 String get borderRightWidth => this._borderRightWidth;
353
354 /** Sets the value of "border-right-width" */
355 void set borderRightWidth(String value) {
356 _borderRightWidth = value == null ? '' : value;
357 }
358 @Returns('String')
359 @JSName('borderRightWidth')
360 String _borderRightWidth;
361
362 /** Gets the value of "border-spacing" */
363 String get borderSpacing => this._borderSpacing;
364
365 /** Sets the value of "border-spacing" */
366 void set borderSpacing(String value) {
367 _borderSpacing = value == null ? '' : value;
368 }
369 @Returns('String')
370 @JSName('borderSpacing')
371 String _borderSpacing;
372
373 /** Gets the value of "border-style" */
374 String get borderStyle => this._borderStyle;
375
376 /** Sets the value of "border-style" */
377 void set borderStyle(String value) {
378 _borderStyle = value == null ? '' : value;
379 }
380 @Returns('String')
381 @JSName('borderStyle')
382 String _borderStyle;
383
384 /** Gets the value of "border-top" */
385 String get borderTop => this._borderTop;
386
387 /** Sets the value of "border-top" */
388 void set borderTop(String value) {
389 _borderTop = value == null ? '' : value;
390 }
391 @Returns('String')
392 @JSName('borderTop')
393 String _borderTop;
394
395 /** Gets the value of "border-top-color" */
396 String get borderTopColor => this._borderTopColor;
397
398 /** Sets the value of "border-top-color" */
399 void set borderTopColor(String value) {
400 _borderTopColor = value == null ? '' : value;
401 }
402 @Returns('String')
403 @JSName('borderTopColor')
404 String _borderTopColor;
405
406 /** Gets the value of "border-top-style" */
407 String get borderTopStyle => this._borderTopStyle;
408
409 /** Sets the value of "border-top-style" */
410 void set borderTopStyle(String value) {
411 _borderTopStyle = value == null ? '' : value;
412 }
413 @Returns('String')
414 @JSName('borderTopStyle')
415 String _borderTopStyle;
416
417 /** Gets the value of "border-top-width" */
418 String get borderTopWidth => this._borderTopWidth;
419
420 /** Sets the value of "border-top-width" */
421 void set borderTopWidth(String value) {
422 _borderTopWidth = value == null ? '' : value;
423 }
424 @Returns('String')
425 @JSName('borderTopWidth')
426 String _borderTopWidth;
427
428 /** Gets the value of "border-width" */
429 String get borderWidth => this._borderWidth;
430
431 /** Sets the value of "border-width" */
432 void set borderWidth(String value) {
433 _borderWidth = value == null ? '' : value;
434 }
435 @Returns('String')
436 @JSName('borderWidth')
437 String _borderWidth;
438
439 /** Gets the value of "bottom" */
440 String get bottom => this._bottom;
441
442 /** Sets the value of "bottom" */
443 void set bottom(String value) {
444 _bottom = value == null ? '' : value;
445 }
446 @Returns('String')
447 @JSName('bottom')
448 String _bottom;
449
450 /** Gets the value of "caption-side" */
451 String get captionSide => this._captionSide;
452
453 /** Sets the value of "caption-side" */
454 void set captionSide(String value) {
455 _captionSide = value == null ? '' : value;
456 }
457 @Returns('String')
458 @JSName('captionSide')
459 String _captionSide;
460
461 /** Gets the value of "clear" */
462 String get clear => this._clear;
463
464 /** Sets the value of "clear" */
465 void set clear(String value) {
466 _clear = value == null ? '' : value;
467 }
468 @Returns('String')
469 @JSName('clear')
470 String _clear;
471
472 /** Gets the value of "clip" */
473 String get clip => this._clip;
474
475 /** Sets the value of "clip" */
476 void set clip(String value) {
477 _clip = value == null ? '' : value;
478 }
479 @Returns('String')
480 @JSName('clip')
481 String _clip;
482
483 /** Gets the value of "color" */
484 String get color => this._color;
485
486 /** Sets the value of "color" */
487 void set color(String value) {
488 _color = value == null ? '' : value;
489 }
490 @Returns('String')
491 @JSName('color')
492 String _color;
493
494 /** Gets the value of "content" */
495 String get content => this._content;
496
497 /** Sets the value of "content" */
498 void set content(String value) {
499 _content = value == null ? '' : value;
500 }
501 @Returns('String')
502 @JSName('content')
503 String _content;
504
505 /** Gets the value of "cursor" */
506 String get cursor => this._cursor;
507
508 /** Sets the value of "cursor" */
509 void set cursor(String value) {
510 _cursor = value == null ? '' : value;
511 }
512 @Returns('String')
513 @JSName('cursor')
514 String _cursor;
515
516 /** Gets the value of "direction" */
517 String get direction => this._direction;
518
519 /** Sets the value of "direction" */
520 void set direction(String value) {
521 _direction = value == null ? '' : value;
522 }
523 @Returns('String')
524 @JSName('direction')
525 String _direction;
526
527 /** Gets the value of "display" */
528 String get display => this._display;
529
530 /** Sets the value of "display" */
531 void set display(String value) {
532 _display = value == null ? '' : value;
533 }
534 @Returns('String')
535 @JSName('display')
536 String _display;
537
538 /** Gets the value of "empty-cells" */
539 String get emptyCells => this._emptyCells;
540
541 /** Sets the value of "empty-cells" */
542 void set emptyCells(String value) {
543 _emptyCells = value == null ? '' : value;
544 }
545 @Returns('String')
546 @JSName('emptyCells')
547 String _emptyCells;
548
549 /** Gets the value of "font" */
550 String get font => this._font;
551
552 /** Sets the value of "font" */
553 void set font(String value) {
554 _font = value == null ? '' : value;
555 }
556 @Returns('String')
557 @JSName('font')
558 String _font;
559
560 /** Gets the value of "font-family" */
561 String get fontFamily => this._fontFamily;
562
563 /** Sets the value of "font-family" */
564 void set fontFamily(String value) {
565 _fontFamily = value == null ? '' : value;
566 }
567 @Returns('String')
568 @JSName('fontFamily')
569 String _fontFamily;
570
571 /** Gets the value of "font-size" */
572 String get fontSize => this._fontSize;
573
574 /** Sets the value of "font-size" */
575 void set fontSize(String value) {
576 _fontSize = value == null ? '' : value;
577 }
578 @Returns('String')
579 @JSName('fontSize')
580 String _fontSize;
581
582 /** Gets the value of "font-style" */
583 String get fontStyle => this._fontStyle;
584
585 /** Sets the value of "font-style" */
586 void set fontStyle(String value) {
587 _fontStyle = value == null ? '' : value;
588 }
589 @Returns('String')
590 @JSName('fontStyle')
591 String _fontStyle;
592
593 /** Gets the value of "font-variant" */
594 String get fontVariant => this._fontVariant;
595
596 /** Sets the value of "font-variant" */
597 void set fontVariant(String value) {
598 _fontVariant = value == null ? '' : value;
599 }
600 @Returns('String')
601 @JSName('fontVariant')
602 String _fontVariant;
603
604 /** Gets the value of "font-weight" */
605 String get fontWeight => this._fontWeight;
606
607 /** Sets the value of "font-weight" */
608 void set fontWeight(String value) {
609 _fontWeight = value == null ? '' : value;
610 }
611 @Returns('String')
612 @JSName('fontWeight')
613 String _fontWeight;
614
615 /** Gets the value of "height" */
616 String get height => this._height;
617
618 /** Sets the value of "height" */
619 void set height(String value) {
620 _height = value == null ? '' : value;
621 }
622 @Returns('String')
623 @JSName('height')
624 String _height;
625
626 /** Gets the value of "left" */
627 String get left => this._left;
628
629 /** Sets the value of "left" */
630 void set left(String value) {
631 _left = value == null ? '' : value;
632 }
633 @Returns('String')
634 @JSName('left')
635 String _left;
636
637 /** Gets the value of "letter-spacing" */
638 String get letterSpacing => this._letterSpacing;
639
640 /** Sets the value of "letter-spacing" */
641 void set letterSpacing(String value) {
642 _letterSpacing = value == null ? '' : value;
643 }
644 @Returns('String')
645 @JSName('letterSpacing')
646 String _letterSpacing;
647
648 /** Gets the value of "line-height" */
649 String get lineHeight => this._lineHeight;
650
651 /** Sets the value of "line-height" */
652 void set lineHeight(String value) {
653 _lineHeight = value == null ? '' : value;
654 }
655 @Returns('String')
656 @JSName('lineHeight')
657 String _lineHeight;
658
659 /** Gets the value of "list-style" */
660 String get listStyle => this._listStyle;
661
662 /** Sets the value of "list-style" */
663 void set listStyle(String value) {
664 _listStyle = value == null ? '' : value;
665 }
666 @Returns('String')
667 @JSName('listStyle')
668 String _listStyle;
669
670 /** Gets the value of "list-style-image" */
671 String get listStyleImage => this._listStyleImage;
672
673 /** Sets the value of "list-style-image" */
674 void set listStyleImage(String value) {
675 _listStyleImage = value == null ? '' : value;
676 }
677 @Returns('String')
678 @JSName('listStyleImage')
679 String _listStyleImage;
680
681 /** Gets the value of "list-style-position" */
682 String get listStylePosition => this._listStylePosition;
683
684 /** Sets the value of "list-style-position" */
685 void set listStylePosition(String value) {
686 _listStylePosition = value == null ? '' : value;
687 }
688 @Returns('String')
689 @JSName('listStylePosition')
690 String _listStylePosition;
691
692 /** Gets the value of "list-style-type" */
693 String get listStyleType => this._listStyleType;
694
695 /** Sets the value of "list-style-type" */
696 void set listStyleType(String value) {
697 _listStyleType = value == null ? '' : value;
698 }
699 @Returns('String')
700 @JSName('listStyleType')
701 String _listStyleType;
702
703 /** Gets the value of "margin" */
704 String get margin => this._margin;
705
706 /** Sets the value of "margin" */
707 void set margin(String value) {
708 _margin = value == null ? '' : value;
709 }
710 @Returns('String')
711 @JSName('margin')
712 String _margin;
713
714 /** Gets the value of "margin-bottom" */
715 String get marginBottom => this._marginBottom;
716
717 /** Sets the value of "margin-bottom" */
718 void set marginBottom(String value) {
719 _marginBottom = value == null ? '' : value;
720 }
721 @Returns('String')
722 @JSName('marginBottom')
723 String _marginBottom;
724
725 /** Gets the value of "margin-left" */
726 String get marginLeft => this._marginLeft;
727
728 /** Sets the value of "margin-left" */
729 void set marginLeft(String value) {
730 _marginLeft = value == null ? '' : value;
731 }
732 @Returns('String')
733 @JSName('marginLeft')
734 String _marginLeft;
735
736 /** Gets the value of "margin-right" */
737 String get marginRight => this._marginRight;
738
739 /** Sets the value of "margin-right" */
740 void set marginRight(String value) {
741 _marginRight = value == null ? '' : value;
742 }
743 @Returns('String')
744 @JSName('marginRight')
745 String _marginRight;
746
747 /** Gets the value of "margin-top" */
748 String get marginTop => this._marginTop;
749
750 /** Sets the value of "margin-top" */
751 void set marginTop(String value) {
752 _marginTop = value == null ? '' : value;
753 }
754 @Returns('String')
755 @JSName('marginTop')
756 String _marginTop;
757
758 /** Gets the value of "max-height" */
759 String get maxHeight => this._maxHeight;
760
761 /** Sets the value of "max-height" */
762 void set maxHeight(String value) {
763 _maxHeight = value == null ? '' : value;
764 }
765 @Returns('String')
766 @JSName('maxHeight')
767 String _maxHeight;
768
769 /** Gets the value of "max-width" */
770 String get maxWidth => this._maxWidth;
771
772 /** Sets the value of "max-width" */
773 void set maxWidth(String value) {
774 _maxWidth = value == null ? '' : value;
775 }
776 @Returns('String')
777 @JSName('maxWidth')
778 String _maxWidth;
779
780 /** Gets the value of "min-height" */
781 String get minHeight => this._minHeight;
782
783 /** Sets the value of "min-height" */
784 void set minHeight(String value) {
785 _minHeight = value == null ? '' : value;
786 }
787 @Returns('String')
788 @JSName('minHeight')
789 String _minHeight;
790
791 /** Gets the value of "min-width" */
792 String get minWidth => this._minWidth;
793
794 /** Sets the value of "min-width" */
795 void set minWidth(String value) {
796 _minWidth = value == null ? '' : value;
797 }
798 @Returns('String')
799 @JSName('minWidth')
800 String _minWidth;
801
802 /** Gets the value of "outline" */
803 String get outline => this._outline;
804
805 /** Sets the value of "outline" */
806 void set outline(String value) {
807 _outline = value == null ? '' : value;
808 }
809 @Returns('String')
810 @JSName('outline')
811 String _outline;
812
813 /** Gets the value of "outline-color" */
814 String get outlineColor => this._outlineColor;
815
816 /** Sets the value of "outline-color" */
817 void set outlineColor(String value) {
818 _outlineColor = value == null ? '' : value;
819 }
820 @Returns('String')
821 @JSName('outlineColor')
822 String _outlineColor;
823
824 /** Gets the value of "outline-style" */
825 String get outlineStyle => this._outlineStyle;
826
827 /** Sets the value of "outline-style" */
828 void set outlineStyle(String value) {
829 _outlineStyle = value == null ? '' : value;
830 }
831 @Returns('String')
832 @JSName('outlineStyle')
833 String _outlineStyle;
834
835 /** Gets the value of "outline-width" */
836 String get outlineWidth => this._outlineWidth;
837
838 /** Sets the value of "outline-width" */
839 void set outlineWidth(String value) {
840 _outlineWidth = value == null ? '' : value;
841 }
842 @Returns('String')
843 @JSName('outlineWidth')
844 String _outlineWidth;
845
846 /** Gets the value of "overflow" */
847 String get overflow => this._overflow;
848
849 /** Sets the value of "overflow" */
850 void set overflow(String value) {
851 _overflow = value == null ? '' : value;
852 }
853 @Returns('String')
854 @JSName('overflow')
855 String _overflow;
856
857 /** Gets the value of "padding" */
858 String get padding => this._padding;
859
860 /** Sets the value of "padding" */
861 void set padding(String value) {
862 _padding = value == null ? '' : value;
863 }
864 @Returns('String')
865 @JSName('padding')
866 String _padding;
867
868 /** Gets the value of "padding-bottom" */
869 String get paddingBottom => this._paddingBottom;
870
871 /** Sets the value of "padding-bottom" */
872 void set paddingBottom(String value) {
873 _paddingBottom = value == null ? '' : value;
874 }
875 @Returns('String')
876 @JSName('paddingBottom')
877 String _paddingBottom;
878
879 /** Gets the value of "padding-left" */
880 String get paddingLeft => this._paddingLeft;
881
882 /** Sets the value of "padding-left" */
883 void set paddingLeft(String value) {
884 _paddingLeft = value == null ? '' : value;
885 }
886 @Returns('String')
887 @JSName('paddingLeft')
888 String _paddingLeft;
889
890 /** Gets the value of "padding-right" */
891 String get paddingRight => this._paddingRight;
892
893 /** Sets the value of "padding-right" */
894 void set paddingRight(String value) {
895 _paddingRight = value == null ? '' : value;
896 }
897 @Returns('String')
898 @JSName('paddingRight')
899 String _paddingRight;
900
901 /** Gets the value of "padding-top" */
902 String get paddingTop => this._paddingTop;
903
904 /** Sets the value of "padding-top" */
905 void set paddingTop(String value) {
906 _paddingTop = value == null ? '' : value;
907 }
908 @Returns('String')
909 @JSName('paddingTop')
910 String _paddingTop;
911
912 /** Gets the value of "page-break-after" */
913 String get pageBreakAfter => this._pageBreakAfter;
914
915 /** Sets the value of "page-break-after" */
916 void set pageBreakAfter(String value) {
917 _pageBreakAfter = value == null ? '' : value;
918 }
919 @Returns('String')
920 @JSName('pageBreakAfter')
921 String _pageBreakAfter;
922
923 /** Gets the value of "page-break-before" */
924 String get pageBreakBefore => this._pageBreakBefore;
925
926 /** Sets the value of "page-break-before" */
927 void set pageBreakBefore(String value) {
928 _pageBreakBefore = value == null ? '' : value;
929 }
930 @Returns('String')
931 @JSName('pageBreakBefore')
932 String _pageBreakBefore;
933
934 /** Gets the value of "page-break-inside" */
935 String get pageBreakInside => this._pageBreakInside;
936
937 /** Sets the value of "page-break-inside" */
938 void set pageBreakInside(String value) {
939 _pageBreakInside = value == null ? '' : value;
940 }
941 @Returns('String')
942 @JSName('pageBreakInside')
943 String _pageBreakInside;
944
945 /** Gets the value of "position" */
946 String get position => this._position;
947
948 /** Sets the value of "position" */
949 void set position(String value) {
950 _position = value == null ? '' : value;
951 }
952 @Returns('String')
953 @JSName('position')
954 String _position;
955
956 /** Gets the value of "quotes" */
957 String get quotes => this._quotes;
958
959 /** Sets the value of "quotes" */
960 void set quotes(String value) {
961 _quotes = value == null ? '' : value;
962 }
963 @Returns('String')
964 @JSName('quotes')
965 String _quotes;
966
967 /** Gets the value of "right" */
968 String get right => this._right;
969
970 /** Sets the value of "right" */
971 void set right(String value) {
972 _right = value == null ? '' : value;
973 }
974 @Returns('String')
975 @JSName('right')
976 String _right;
977
978 /** Gets the value of "table-layout" */
979 String get tableLayout => this._tableLayout;
980
981 /** Sets the value of "table-layout" */
982 void set tableLayout(String value) {
983 _tableLayout = value == null ? '' : value;
984 }
985 @Returns('String')
986 @JSName('tableLayout')
987 String _tableLayout;
988
989 /** Gets the value of "text-align" */
990 String get textAlign => this._textAlign;
991
992 /** Sets the value of "text-align" */
993 void set textAlign(String value) {
994 _textAlign = value == null ? '' : value;
995 }
996 @Returns('String')
997 @JSName('textAlign')
998 String _textAlign;
999
1000 /** Gets the value of "text-decoration" */
1001 String get textDecoration => this._textDecoration;
1002
1003 /** Sets the value of "text-decoration" */
1004 void set textDecoration(String value) {
1005 _textDecoration = value == null ? '' : value;
1006 }
1007 @Returns('String')
1008 @JSName('textDecoration')
1009 String _textDecoration;
1010
1011 /** Gets the value of "text-indent" */
1012 String get textIndent => this._textIndent;
1013
1014 /** Sets the value of "text-indent" */
1015 void set textIndent(String value) {
1016 _textIndent = value == null ? '' : value;
1017 }
1018 @Returns('String')
1019 @JSName('textIndent')
1020 String _textIndent;
1021
1022 /** Gets the value of "text-transform" */
1023 String get textTransform => this._textTransform;
1024
1025 /** Sets the value of "text-transform" */
1026 void set textTransform(String value) {
1027 _textTransform = value == null ? '' : value;
1028 }
1029 @Returns('String')
1030 @JSName('textTransform')
1031 String _textTransform;
1032
1033 /** Gets the value of "top" */
1034 String get top => this._top;
1035
1036 /** Sets the value of "top" */
1037 void set top(String value) {
1038 _top = value == null ? '' : value;
1039 }
1040 @Returns('String')
1041 @JSName('top')
1042 String _top;
1043
1044 /** Gets the value of "unicode-bidi" */
1045 String get unicodeBidi => this._unicodeBidi;
1046
1047 /** Sets the value of "unicode-bidi" */
1048 void set unicodeBidi(String value) {
1049 _unicodeBidi = value == null ? '' : value;
1050 }
1051 @Returns('String')
1052 @JSName('unicodeBidi')
1053 String _unicodeBidi;
1054
1055 /** Gets the value of "vertical-align" */
1056 String get verticalAlign => this._verticalAlign;
1057
1058 /** Sets the value of "vertical-align" */
1059 void set verticalAlign(String value) {
1060 _verticalAlign = value == null ? '' : value;
1061 }
1062 @Returns('String')
1063 @JSName('verticalAlign')
1064 String _verticalAlign;
1065
1066 /** Gets the value of "visibility" */
1067 String get visibility => this._visibility;
1068
1069 /** Sets the value of "visibility" */
1070 void set visibility(String value) {
1071 _visibility = value == null ? '' : value;
1072 }
1073 @Returns('String')
1074 @JSName('visibility')
1075 String _visibility;
1076
1077 /** Gets the value of "white-space" */
1078 String get whiteSpace => this._whiteSpace;
1079
1080 /** Sets the value of "white-space" */
1081 void set whiteSpace(String value) {
1082 _whiteSpace = value == null ? '' : value;
1083 }
1084 @Returns('String')
1085 @JSName('whiteSpace')
1086 String _whiteSpace;
1087
1088 /** Gets the value of "width" */
1089 String get width => this._width;
1090
1091 /** Sets the value of "width" */
1092 void set width(String value) {
1093 _width = value == null ? '' : value;
1094 }
1095 @Returns('String')
1096 @JSName('width')
1097 String _width;
1098
1099 /** Gets the value of "word-spacing" */
1100 String get wordSpacing => this._wordSpacing;
1101
1102 /** Sets the value of "word-spacing" */
1103 void set wordSpacing(String value) {
1104 _wordSpacing = value == null ? '' : value;
1105 }
1106 @Returns('String')
1107 @JSName('wordSpacing')
1108 String _wordSpacing;
1109
1110 /** Gets the value of "z-index" */
1111 String get zIndex => this._zIndex;
1112
1113 /** Sets the value of "z-index" */
1114 void set zIndex(String value) {
1115 _zIndex = value == null ? '' : value;
1116 }
1117 @Returns('String')
1118 @JSName('zIndex')
1119 String _zIndex;
1120
1121 $endif
129 } 1122 }
130 1123
131 class _CssStyleDeclarationSet extends Object with CssStyleDeclarationBase { 1124 class _CssStyleDeclarationSet extends Object with CssStyleDeclarationBase {
132 final Iterable<Element> _elementIterable; 1125 final Iterable<Element> _elementIterable;
133 Iterable<CssStyleDeclaration> _elementCssStyleDeclarationSetIterable; 1126 Iterable<CssStyleDeclaration> _elementCssStyleDeclarationSetIterable;
134 1127
135 _CssStyleDeclarationSet(this._elementIterable) { 1128 _CssStyleDeclarationSet(this._elementIterable) {
136 _elementCssStyleDeclarationSetIterable = new List.from( 1129 _elementCssStyleDeclarationSetIterable = new List.from(
137 _elementIterable).map((e) => e.style); 1130 _elementIterable).map((e) => e.style);
138 } 1131 }
139 1132
140 String getPropertyValue(String propertyName) => 1133 String getPropertyValue(String propertyName) =>
141 _elementCssStyleDeclarationSetIterable.first.getPropertyValue( 1134 _elementCssStyleDeclarationSetIterable.first.getPropertyValue(
142 propertyName); 1135 propertyName);
143 1136
144 void setProperty(String propertyName, String value, [String priority]) { 1137 void setProperty(String propertyName, String value, [String priority]) {
145 _elementCssStyleDeclarationSetIterable.forEach((e) => 1138 _elementCssStyleDeclarationSetIterable.forEach((e) =>
146 e.setProperty(propertyName, value, priority)); 1139 e.setProperty(propertyName, value, priority));
147 } 1140 }
1141
1142
1143 $if DART2JS
1144 void _setAll(String propertyName, String value) {
1145 value = value == null ? '' : value;
1146 for (Element element in _elementIterable) {
1147 JS('void', '#.style[#] = #', element, propertyName, value);
1148 }
1149 }
1150
1151 /** Sets the value of "background" */
1152 void set background(String value) {
1153 _setAll('background', value);
1154 }
1155
1156 /** Sets the value of "background-attachment" */
1157 void set backgroundAttachment(String value) {
1158 _setAll('backgroundAttachment', value);
1159 }
1160
1161 /** Sets the value of "background-color" */
1162 void set backgroundColor(String value) {
1163 _setAll('backgroundColor', value);
1164 }
1165
1166 /** Sets the value of "background-image" */
1167 void set backgroundImage(String value) {
1168 _setAll('backgroundImage', value);
1169 }
1170
1171 /** Sets the value of "background-position" */
1172 void set backgroundPosition(String value) {
1173 _setAll('backgroundPosition', value);
1174 }
1175
1176 /** Sets the value of "background-repeat" */
1177 void set backgroundRepeat(String value) {
1178 _setAll('backgroundRepeat', value);
1179 }
1180
1181 /** Sets the value of "border" */
1182 void set border(String value) {
1183 _setAll('border', value);
1184 }
1185
1186 /** Sets the value of "border-bottom" */
1187 void set borderBottom(String value) {
1188 _setAll('borderBottom', value);
1189 }
1190
1191 /** Sets the value of "border-bottom-color" */
1192 void set borderBottomColor(String value) {
1193 _setAll('borderBottomColor', value);
1194 }
1195
1196 /** Sets the value of "border-bottom-style" */
1197 void set borderBottomStyle(String value) {
1198 _setAll('borderBottomStyle', value);
1199 }
1200
1201 /** Sets the value of "border-bottom-width" */
1202 void set borderBottomWidth(String value) {
1203 _setAll('borderBottomWidth', value);
1204 }
1205
1206 /** Sets the value of "border-collapse" */
1207 void set borderCollapse(String value) {
1208 _setAll('borderCollapse', value);
1209 }
1210
1211 /** Sets the value of "border-color" */
1212 void set borderColor(String value) {
1213 _setAll('borderColor', value);
1214 }
1215
1216 /** Sets the value of "border-left" */
1217 void set borderLeft(String value) {
1218 _setAll('borderLeft', value);
1219 }
1220
1221 /** Sets the value of "border-left-color" */
1222 void set borderLeftColor(String value) {
1223 _setAll('borderLeftColor', value);
1224 }
1225
1226 /** Sets the value of "border-left-style" */
1227 void set borderLeftStyle(String value) {
1228 _setAll('borderLeftStyle', value);
1229 }
1230
1231 /** Sets the value of "border-left-width" */
1232 void set borderLeftWidth(String value) {
1233 _setAll('borderLeftWidth', value);
1234 }
1235
1236 /** Sets the value of "border-right" */
1237 void set borderRight(String value) {
1238 _setAll('borderRight', value);
1239 }
1240
1241 /** Sets the value of "border-right-color" */
1242 void set borderRightColor(String value) {
1243 _setAll('borderRightColor', value);
1244 }
1245
1246 /** Sets the value of "border-right-style" */
1247 void set borderRightStyle(String value) {
1248 _setAll('borderRightStyle', value);
1249 }
1250
1251 /** Sets the value of "border-right-width" */
1252 void set borderRightWidth(String value) {
1253 _setAll('borderRightWidth', value);
1254 }
1255
1256 /** Sets the value of "border-spacing" */
1257 void set borderSpacing(String value) {
1258 _setAll('borderSpacing', value);
1259 }
1260
1261 /** Sets the value of "border-style" */
1262 void set borderStyle(String value) {
1263 _setAll('borderStyle', value);
1264 }
1265
1266 /** Sets the value of "border-top" */
1267 void set borderTop(String value) {
1268 _setAll('borderTop', value);
1269 }
1270
1271 /** Sets the value of "border-top-color" */
1272 void set borderTopColor(String value) {
1273 _setAll('borderTopColor', value);
1274 }
1275
1276 /** Sets the value of "border-top-style" */
1277 void set borderTopStyle(String value) {
1278 _setAll('borderTopStyle', value);
1279 }
1280
1281 /** Sets the value of "border-top-width" */
1282 void set borderTopWidth(String value) {
1283 _setAll('borderTopWidth', value);
1284 }
1285
1286 /** Sets the value of "border-width" */
1287 void set borderWidth(String value) {
1288 _setAll('borderWidth', value);
1289 }
1290
1291 /** Sets the value of "bottom" */
1292 void set bottom(String value) {
1293 _setAll('bottom', value);
1294 }
1295
1296 /** Sets the value of "caption-side" */
1297 void set captionSide(String value) {
1298 _setAll('captionSide', value);
1299 }
1300
1301 /** Sets the value of "clear" */
1302 void set clear(String value) {
1303 _setAll('clear', value);
1304 }
1305
1306 /** Sets the value of "clip" */
1307 void set clip(String value) {
1308 _setAll('clip', value);
1309 }
1310
1311 /** Sets the value of "color" */
1312 void set color(String value) {
1313 _setAll('color', value);
1314 }
1315
1316 /** Sets the value of "content" */
1317 void set content(String value) {
1318 _setAll('content', value);
1319 }
1320
1321 /** Sets the value of "cursor" */
1322 void set cursor(String value) {
1323 _setAll('cursor', value);
1324 }
1325
1326 /** Sets the value of "direction" */
1327 void set direction(String value) {
1328 _setAll('direction', value);
1329 }
1330
1331 /** Sets the value of "display" */
1332 void set display(String value) {
1333 _setAll('display', value);
1334 }
1335
1336 /** Sets the value of "empty-cells" */
1337 void set emptyCells(String value) {
1338 _setAll('emptyCells', value);
1339 }
1340
1341 /** Sets the value of "font" */
1342 void set font(String value) {
1343 _setAll('font', value);
1344 }
1345
1346 /** Sets the value of "font-family" */
1347 void set fontFamily(String value) {
1348 _setAll('fontFamily', value);
1349 }
1350
1351 /** Sets the value of "font-size" */
1352 void set fontSize(String value) {
1353 _setAll('fontSize', value);
1354 }
1355
1356 /** Sets the value of "font-style" */
1357 void set fontStyle(String value) {
1358 _setAll('fontStyle', value);
1359 }
1360
1361 /** Sets the value of "font-variant" */
1362 void set fontVariant(String value) {
1363 _setAll('fontVariant', value);
1364 }
1365
1366 /** Sets the value of "font-weight" */
1367 void set fontWeight(String value) {
1368 _setAll('fontWeight', value);
1369 }
1370
1371 /** Sets the value of "height" */
1372 void set height(String value) {
1373 _setAll('height', value);
1374 }
1375
1376 /** Sets the value of "left" */
1377 void set left(String value) {
1378 _setAll('left', value);
1379 }
1380
1381 /** Sets the value of "letter-spacing" */
1382 void set letterSpacing(String value) {
1383 _setAll('letterSpacing', value);
1384 }
1385
1386 /** Sets the value of "line-height" */
1387 void set lineHeight(String value) {
1388 _setAll('lineHeight', value);
1389 }
1390
1391 /** Sets the value of "list-style" */
1392 void set listStyle(String value) {
1393 _setAll('listStyle', value);
1394 }
1395
1396 /** Sets the value of "list-style-image" */
1397 void set listStyleImage(String value) {
1398 _setAll('listStyleImage', value);
1399 }
1400
1401 /** Sets the value of "list-style-position" */
1402 void set listStylePosition(String value) {
1403 _setAll('listStylePosition', value);
1404 }
1405
1406 /** Sets the value of "list-style-type" */
1407 void set listStyleType(String value) {
1408 _setAll('listStyleType', value);
1409 }
1410
1411 /** Sets the value of "margin" */
1412 void set margin(String value) {
1413 _setAll('margin', value);
1414 }
1415
1416 /** Sets the value of "margin-bottom" */
1417 void set marginBottom(String value) {
1418 _setAll('marginBottom', value);
1419 }
1420
1421 /** Sets the value of "margin-left" */
1422 void set marginLeft(String value) {
1423 _setAll('marginLeft', value);
1424 }
1425
1426 /** Sets the value of "margin-right" */
1427 void set marginRight(String value) {
1428 _setAll('marginRight', value);
1429 }
1430
1431 /** Sets the value of "margin-top" */
1432 void set marginTop(String value) {
1433 _setAll('marginTop', value);
1434 }
1435
1436 /** Sets the value of "max-height" */
1437 void set maxHeight(String value) {
1438 _setAll('maxHeight', value);
1439 }
1440
1441 /** Sets the value of "max-width" */
1442 void set maxWidth(String value) {
1443 _setAll('maxWidth', value);
1444 }
1445
1446 /** Sets the value of "min-height" */
1447 void set minHeight(String value) {
1448 _setAll('minHeight', value);
1449 }
1450
1451 /** Sets the value of "min-width" */
1452 void set minWidth(String value) {
1453 _setAll('minWidth', value);
1454 }
1455
1456 /** Sets the value of "outline" */
1457 void set outline(String value) {
1458 _setAll('outline', value);
1459 }
1460
1461 /** Sets the value of "outline-color" */
1462 void set outlineColor(String value) {
1463 _setAll('outlineColor', value);
1464 }
1465
1466 /** Sets the value of "outline-style" */
1467 void set outlineStyle(String value) {
1468 _setAll('outlineStyle', value);
1469 }
1470
1471 /** Sets the value of "outline-width" */
1472 void set outlineWidth(String value) {
1473 _setAll('outlineWidth', value);
1474 }
1475
1476 /** Sets the value of "overflow" */
1477 void set overflow(String value) {
1478 _setAll('overflow', value);
1479 }
1480
1481 /** Sets the value of "padding" */
1482 void set padding(String value) {
1483 _setAll('padding', value);
1484 }
1485
1486 /** Sets the value of "padding-bottom" */
1487 void set paddingBottom(String value) {
1488 _setAll('paddingBottom', value);
1489 }
1490
1491 /** Sets the value of "padding-left" */
1492 void set paddingLeft(String value) {
1493 _setAll('paddingLeft', value);
1494 }
1495
1496 /** Sets the value of "padding-right" */
1497 void set paddingRight(String value) {
1498 _setAll('paddingRight', value);
1499 }
1500
1501 /** Sets the value of "padding-top" */
1502 void set paddingTop(String value) {
1503 _setAll('paddingTop', value);
1504 }
1505
1506 /** Sets the value of "page-break-after" */
1507 void set pageBreakAfter(String value) {
1508 _setAll('pageBreakAfter', value);
1509 }
1510
1511 /** Sets the value of "page-break-before" */
1512 void set pageBreakBefore(String value) {
1513 _setAll('pageBreakBefore', value);
1514 }
1515
1516 /** Sets the value of "page-break-inside" */
1517 void set pageBreakInside(String value) {
1518 _setAll('pageBreakInside', value);
1519 }
1520
1521 /** Sets the value of "position" */
1522 void set position(String value) {
1523 _setAll('position', value);
1524 }
1525
1526 /** Sets the value of "quotes" */
1527 void set quotes(String value) {
1528 _setAll('quotes', value);
1529 }
1530
1531 /** Sets the value of "right" */
1532 void set right(String value) {
1533 _setAll('right', value);
1534 }
1535
1536 /** Sets the value of "table-layout" */
1537 void set tableLayout(String value) {
1538 _setAll('tableLayout', value);
1539 }
1540
1541 /** Sets the value of "text-align" */
1542 void set textAlign(String value) {
1543 _setAll('textAlign', value);
1544 }
1545
1546 /** Sets the value of "text-decoration" */
1547 void set textDecoration(String value) {
1548 _setAll('textDecoration', value);
1549 }
1550
1551 /** Sets the value of "text-indent" */
1552 void set textIndent(String value) {
1553 _setAll('textIndent', value);
1554 }
1555
1556 /** Sets the value of "text-transform" */
1557 void set textTransform(String value) {
1558 _setAll('textTransform', value);
1559 }
1560
1561 /** Sets the value of "top" */
1562 void set top(String value) {
1563 _setAll('top', value);
1564 }
1565
1566 /** Sets the value of "unicode-bidi" */
1567 void set unicodeBidi(String value) {
1568 _setAll('unicodeBidi', value);
1569 }
1570
1571 /** Sets the value of "vertical-align" */
1572 void set verticalAlign(String value) {
1573 _setAll('verticalAlign', value);
1574 }
1575
1576 /** Sets the value of "visibility" */
1577 void set visibility(String value) {
1578 _setAll('visibility', value);
1579 }
1580
1581 /** Sets the value of "white-space" */
1582 void set whiteSpace(String value) {
1583 _setAll('whiteSpace', value);
1584 }
1585
1586 /** Sets the value of "width" */
1587 void set width(String value) {
1588 _setAll('width', value);
1589 }
1590
1591 /** Sets the value of "word-spacing" */
1592 void set wordSpacing(String value) {
1593 _setAll('wordSpacing', value);
1594 }
1595
1596 /** Sets the value of "z-index" */
1597 void set zIndex(String value) {
1598 _setAll('zIndex', value);
1599 }
1600
1601 $endif
1602
148 // Important note: CssStyleDeclarationSet does NOT implement every method 1603 // Important note: CssStyleDeclarationSet does NOT implement every method
149 // available in CssStyleDeclaration. Some of the methods don't make so much 1604 // available in CssStyleDeclaration. Some of the methods don't make so much
150 // sense in terms of having a resonable value to return when you're 1605 // sense in terms of having a resonable value to return when you're
151 // considering a list of Elements. You will need to manually add any of the 1606 // considering a list of Elements. You will need to manually add any of the
152 // items in the MEMBERS set if you want that functionality. 1607 // items in the MEMBERS set if you want that functionality.
153 } 1608 }
154 1609
155 abstract class CssStyleDeclarationBase { 1610 abstract class CssStyleDeclarationBase {
156 String getPropertyValue(String propertyName); 1611 String getPropertyValue(String propertyName);
157 void setProperty(String propertyName, String value, [String priority]); 1612 void setProperty(String propertyName, String value, [String priority]);
(...skipping 3075 matching lines...) Expand 10 before | Expand all | Expand 10 after
3233 4688
3234 /** Gets the value of "zoom" */ 4689 /** Gets the value of "zoom" */
3235 String get zoom => 4690 String get zoom =>
3236 getPropertyValue('zoom'); 4691 getPropertyValue('zoom');
3237 4692
3238 /** Sets the value of "zoom" */ 4693 /** Sets the value of "zoom" */
3239 void set zoom(String value) { 4694 void set zoom(String value) {
3240 setProperty('zoom', value, ''); 4695 setProperty('zoom', value, '');
3241 } 4696 }
3242 } 4697 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/css_code_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698