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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/css_code_generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
index 1b47c7dc69dddd0a34c678ead2b1ef50ebd90735..921a1898ee361245e3f0f2941b78d425f3d1c68b 100644
--- a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
+++ b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
@@ -11,7 +11,7 @@
part of $LIBRARYNAME;
-$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS) class $CLASSNAME $EXTENDS with
+$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME $EXTENDS with
$(CLASSNAME)Base $IMPLEMENTS {
factory $CLASSNAME() => new CssStyleDeclaration.css('');
@@ -126,25 +126,1480 @@ $else
static bool get supportsTransitions => true;
$endif
$!MEMBERS
-}
+$if DART2JS
-class _CssStyleDeclarationSet extends Object with CssStyleDeclarationBase {
- final Iterable<Element> _elementIterable;
- Iterable<CssStyleDeclaration> _elementCssStyleDeclarationSetIterable;
+ /** Gets the value of "background" */
+ String get background => this._background;
- _CssStyleDeclarationSet(this._elementIterable) {
- _elementCssStyleDeclarationSetIterable = new List.from(
- _elementIterable).map((e) => e.style);
+ /** Sets the value of "background" */
+ void set background(String value) {
+ _background = value == null ? '' : value;
}
+ @Returns('String')
+ @JSName('background')
+ String _background;
+
+ /** Gets the value of "background-attachment" */
+ String get backgroundAttachment => this._backgroundAttachment;
- String getPropertyValue(String propertyName) =>
- _elementCssStyleDeclarationSetIterable.first.getPropertyValue(
- propertyName);
+ /** Sets the value of "background-attachment" */
+ void set backgroundAttachment(String value) {
+ _backgroundAttachment = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('backgroundAttachment')
+ String _backgroundAttachment;
+
+ /** Gets the value of "background-color" */
+ String get backgroundColor => this._backgroundColor;
- void setProperty(String propertyName, String value, [String priority]) {
- _elementCssStyleDeclarationSetIterable.forEach((e) =>
- e.setProperty(propertyName, value, priority));
+ /** Sets the value of "background-color" */
+ void set backgroundColor(String value) {
+ _backgroundColor = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('backgroundColor')
+ String _backgroundColor;
+
+ /** Gets the value of "background-image" */
+ String get backgroundImage => this._backgroundImage;
+
+ /** Sets the value of "background-image" */
+ void set backgroundImage(String value) {
+ _backgroundImage = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('backgroundImage')
+ String _backgroundImage;
+
+ /** Gets the value of "background-position" */
+ String get backgroundPosition => this._backgroundPosition;
+
+ /** Sets the value of "background-position" */
+ void set backgroundPosition(String value) {
+ _backgroundPosition = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('backgroundPosition')
+ String _backgroundPosition;
+
+ /** Gets the value of "background-repeat" */
+ String get backgroundRepeat => this._backgroundRepeat;
+
+ /** Sets the value of "background-repeat" */
+ void set backgroundRepeat(String value) {
+ _backgroundRepeat = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('backgroundRepeat')
+ String _backgroundRepeat;
+
+ /** Gets the value of "border" */
+ String get border => this._border;
+
+ /** Sets the value of "border" */
+ void set border(String value) {
+ _border = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('border')
+ String _border;
+
+ /** Gets the value of "border-bottom" */
+ String get borderBottom => this._borderBottom;
+
+ /** Sets the value of "border-bottom" */
+ void set borderBottom(String value) {
+ _borderBottom = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderBottom')
+ String _borderBottom;
+
+ /** Gets the value of "border-bottom-color" */
+ String get borderBottomColor => this._borderBottomColor;
+
+ /** Sets the value of "border-bottom-color" */
+ void set borderBottomColor(String value) {
+ _borderBottomColor = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderBottomColor')
+ String _borderBottomColor;
+
+ /** Gets the value of "border-bottom-style" */
+ String get borderBottomStyle => this._borderBottomStyle;
+
+ /** Sets the value of "border-bottom-style" */
+ void set borderBottomStyle(String value) {
+ _borderBottomStyle = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderBottomStyle')
+ String _borderBottomStyle;
+
+ /** Gets the value of "border-bottom-width" */
+ String get borderBottomWidth => this._borderBottomWidth;
+
+ /** Sets the value of "border-bottom-width" */
+ void set borderBottomWidth(String value) {
+ _borderBottomWidth = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderBottomWidth')
+ String _borderBottomWidth;
+
+ /** Gets the value of "border-collapse" */
+ String get borderCollapse => this._borderCollapse;
+
+ /** Sets the value of "border-collapse" */
+ void set borderCollapse(String value) {
+ _borderCollapse = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderCollapse')
+ String _borderCollapse;
+
+ /** Gets the value of "border-color" */
+ String get borderColor => this._borderColor;
+
+ /** Sets the value of "border-color" */
+ void set borderColor(String value) {
+ _borderColor = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderColor')
+ String _borderColor;
+
+ /** Gets the value of "border-left" */
+ String get borderLeft => this._borderLeft;
+
+ /** Sets the value of "border-left" */
+ void set borderLeft(String value) {
+ _borderLeft = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderLeft')
+ String _borderLeft;
+
+ /** Gets the value of "border-left-color" */
+ String get borderLeftColor => this._borderLeftColor;
+
+ /** Sets the value of "border-left-color" */
+ void set borderLeftColor(String value) {
+ _borderLeftColor = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderLeftColor')
+ String _borderLeftColor;
+
+ /** Gets the value of "border-left-style" */
+ String get borderLeftStyle => this._borderLeftStyle;
+
+ /** Sets the value of "border-left-style" */
+ void set borderLeftStyle(String value) {
+ _borderLeftStyle = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderLeftStyle')
+ String _borderLeftStyle;
+
+ /** Gets the value of "border-left-width" */
+ String get borderLeftWidth => this._borderLeftWidth;
+
+ /** Sets the value of "border-left-width" */
+ void set borderLeftWidth(String value) {
+ _borderLeftWidth = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderLeftWidth')
+ String _borderLeftWidth;
+
+ /** Gets the value of "border-right" */
+ String get borderRight => this._borderRight;
+
+ /** Sets the value of "border-right" */
+ void set borderRight(String value) {
+ _borderRight = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderRight')
+ String _borderRight;
+
+ /** Gets the value of "border-right-color" */
+ String get borderRightColor => this._borderRightColor;
+
+ /** Sets the value of "border-right-color" */
+ void set borderRightColor(String value) {
+ _borderRightColor = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderRightColor')
+ String _borderRightColor;
+
+ /** Gets the value of "border-right-style" */
+ String get borderRightStyle => this._borderRightStyle;
+
+ /** Sets the value of "border-right-style" */
+ void set borderRightStyle(String value) {
+ _borderRightStyle = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderRightStyle')
+ String _borderRightStyle;
+
+ /** Gets the value of "border-right-width" */
+ String get borderRightWidth => this._borderRightWidth;
+
+ /** Sets the value of "border-right-width" */
+ void set borderRightWidth(String value) {
+ _borderRightWidth = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderRightWidth')
+ String _borderRightWidth;
+
+ /** Gets the value of "border-spacing" */
+ String get borderSpacing => this._borderSpacing;
+
+ /** Sets the value of "border-spacing" */
+ void set borderSpacing(String value) {
+ _borderSpacing = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderSpacing')
+ String _borderSpacing;
+
+ /** Gets the value of "border-style" */
+ String get borderStyle => this._borderStyle;
+
+ /** Sets the value of "border-style" */
+ void set borderStyle(String value) {
+ _borderStyle = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderStyle')
+ String _borderStyle;
+
+ /** Gets the value of "border-top" */
+ String get borderTop => this._borderTop;
+
+ /** Sets the value of "border-top" */
+ void set borderTop(String value) {
+ _borderTop = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderTop')
+ String _borderTop;
+
+ /** Gets the value of "border-top-color" */
+ String get borderTopColor => this._borderTopColor;
+
+ /** Sets the value of "border-top-color" */
+ void set borderTopColor(String value) {
+ _borderTopColor = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderTopColor')
+ String _borderTopColor;
+
+ /** Gets the value of "border-top-style" */
+ String get borderTopStyle => this._borderTopStyle;
+
+ /** Sets the value of "border-top-style" */
+ void set borderTopStyle(String value) {
+ _borderTopStyle = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderTopStyle')
+ String _borderTopStyle;
+
+ /** Gets the value of "border-top-width" */
+ String get borderTopWidth => this._borderTopWidth;
+
+ /** Sets the value of "border-top-width" */
+ void set borderTopWidth(String value) {
+ _borderTopWidth = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderTopWidth')
+ String _borderTopWidth;
+
+ /** Gets the value of "border-width" */
+ String get borderWidth => this._borderWidth;
+
+ /** Sets the value of "border-width" */
+ void set borderWidth(String value) {
+ _borderWidth = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('borderWidth')
+ String _borderWidth;
+
+ /** Gets the value of "bottom" */
+ String get bottom => this._bottom;
+
+ /** Sets the value of "bottom" */
+ void set bottom(String value) {
+ _bottom = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('bottom')
+ String _bottom;
+
+ /** Gets the value of "caption-side" */
+ String get captionSide => this._captionSide;
+
+ /** Sets the value of "caption-side" */
+ void set captionSide(String value) {
+ _captionSide = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('captionSide')
+ String _captionSide;
+
+ /** Gets the value of "clear" */
+ String get clear => this._clear;
+
+ /** Sets the value of "clear" */
+ void set clear(String value) {
+ _clear = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('clear')
+ String _clear;
+
+ /** Gets the value of "clip" */
+ String get clip => this._clip;
+
+ /** Sets the value of "clip" */
+ void set clip(String value) {
+ _clip = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('clip')
+ String _clip;
+
+ /** Gets the value of "color" */
+ String get color => this._color;
+
+ /** Sets the value of "color" */
+ void set color(String value) {
+ _color = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('color')
+ String _color;
+
+ /** Gets the value of "content" */
+ String get content => this._content;
+
+ /** Sets the value of "content" */
+ void set content(String value) {
+ _content = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('content')
+ String _content;
+
+ /** Gets the value of "cursor" */
+ String get cursor => this._cursor;
+
+ /** Sets the value of "cursor" */
+ void set cursor(String value) {
+ _cursor = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('cursor')
+ String _cursor;
+
+ /** Gets the value of "direction" */
+ String get direction => this._direction;
+
+ /** Sets the value of "direction" */
+ void set direction(String value) {
+ _direction = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('direction')
+ String _direction;
+
+ /** Gets the value of "display" */
+ String get display => this._display;
+
+ /** Sets the value of "display" */
+ void set display(String value) {
+ _display = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('display')
+ String _display;
+
+ /** Gets the value of "empty-cells" */
+ String get emptyCells => this._emptyCells;
+
+ /** Sets the value of "empty-cells" */
+ void set emptyCells(String value) {
+ _emptyCells = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('emptyCells')
+ String _emptyCells;
+
+ /** Gets the value of "font" */
+ String get font => this._font;
+
+ /** Sets the value of "font" */
+ void set font(String value) {
+ _font = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('font')
+ String _font;
+
+ /** Gets the value of "font-family" */
+ String get fontFamily => this._fontFamily;
+
+ /** Sets the value of "font-family" */
+ void set fontFamily(String value) {
+ _fontFamily = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('fontFamily')
+ String _fontFamily;
+
+ /** Gets the value of "font-size" */
+ String get fontSize => this._fontSize;
+
+ /** Sets the value of "font-size" */
+ void set fontSize(String value) {
+ _fontSize = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('fontSize')
+ String _fontSize;
+
+ /** Gets the value of "font-style" */
+ String get fontStyle => this._fontStyle;
+
+ /** Sets the value of "font-style" */
+ void set fontStyle(String value) {
+ _fontStyle = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('fontStyle')
+ String _fontStyle;
+
+ /** Gets the value of "font-variant" */
+ String get fontVariant => this._fontVariant;
+
+ /** Sets the value of "font-variant" */
+ void set fontVariant(String value) {
+ _fontVariant = value == null ? '' : value;
}
+ @Returns('String')
+ @JSName('fontVariant')
+ String _fontVariant;
+
+ /** Gets the value of "font-weight" */
+ String get fontWeight => this._fontWeight;
+
+ /** Sets the value of "font-weight" */
+ void set fontWeight(String value) {
+ _fontWeight = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('fontWeight')
+ String _fontWeight;
+
+ /** Gets the value of "height" */
+ String get height => this._height;
+
+ /** Sets the value of "height" */
+ void set height(String value) {
+ _height = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('height')
+ String _height;
+
+ /** Gets the value of "left" */
+ String get left => this._left;
+
+ /** Sets the value of "left" */
+ void set left(String value) {
+ _left = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('left')
+ String _left;
+
+ /** Gets the value of "letter-spacing" */
+ String get letterSpacing => this._letterSpacing;
+
+ /** Sets the value of "letter-spacing" */
+ void set letterSpacing(String value) {
+ _letterSpacing = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('letterSpacing')
+ String _letterSpacing;
+
+ /** Gets the value of "line-height" */
+ String get lineHeight => this._lineHeight;
+
+ /** Sets the value of "line-height" */
+ void set lineHeight(String value) {
+ _lineHeight = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('lineHeight')
+ String _lineHeight;
+
+ /** Gets the value of "list-style" */
+ String get listStyle => this._listStyle;
+
+ /** Sets the value of "list-style" */
+ void set listStyle(String value) {
+ _listStyle = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('listStyle')
+ String _listStyle;
+
+ /** Gets the value of "list-style-image" */
+ String get listStyleImage => this._listStyleImage;
+
+ /** Sets the value of "list-style-image" */
+ void set listStyleImage(String value) {
+ _listStyleImage = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('listStyleImage')
+ String _listStyleImage;
+
+ /** Gets the value of "list-style-position" */
+ String get listStylePosition => this._listStylePosition;
+
+ /** Sets the value of "list-style-position" */
+ void set listStylePosition(String value) {
+ _listStylePosition = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('listStylePosition')
+ String _listStylePosition;
+
+ /** Gets the value of "list-style-type" */
+ String get listStyleType => this._listStyleType;
+
+ /** Sets the value of "list-style-type" */
+ void set listStyleType(String value) {
+ _listStyleType = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('listStyleType')
+ String _listStyleType;
+
+ /** Gets the value of "margin" */
+ String get margin => this._margin;
+
+ /** Sets the value of "margin" */
+ void set margin(String value) {
+ _margin = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('margin')
+ String _margin;
+
+ /** Gets the value of "margin-bottom" */
+ String get marginBottom => this._marginBottom;
+
+ /** Sets the value of "margin-bottom" */
+ void set marginBottom(String value) {
+ _marginBottom = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('marginBottom')
+ String _marginBottom;
+
+ /** Gets the value of "margin-left" */
+ String get marginLeft => this._marginLeft;
+
+ /** Sets the value of "margin-left" */
+ void set marginLeft(String value) {
+ _marginLeft = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('marginLeft')
+ String _marginLeft;
+
+ /** Gets the value of "margin-right" */
+ String get marginRight => this._marginRight;
+
+ /** Sets the value of "margin-right" */
+ void set marginRight(String value) {
+ _marginRight = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('marginRight')
+ String _marginRight;
+
+ /** Gets the value of "margin-top" */
+ String get marginTop => this._marginTop;
+
+ /** Sets the value of "margin-top" */
+ void set marginTop(String value) {
+ _marginTop = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('marginTop')
+ String _marginTop;
+
+ /** Gets the value of "max-height" */
+ String get maxHeight => this._maxHeight;
+
+ /** Sets the value of "max-height" */
+ void set maxHeight(String value) {
+ _maxHeight = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('maxHeight')
+ String _maxHeight;
+
+ /** Gets the value of "max-width" */
+ String get maxWidth => this._maxWidth;
+
+ /** Sets the value of "max-width" */
+ void set maxWidth(String value) {
+ _maxWidth = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('maxWidth')
+ String _maxWidth;
+
+ /** Gets the value of "min-height" */
+ String get minHeight => this._minHeight;
+
+ /** Sets the value of "min-height" */
+ void set minHeight(String value) {
+ _minHeight = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('minHeight')
+ String _minHeight;
+
+ /** Gets the value of "min-width" */
+ String get minWidth => this._minWidth;
+
+ /** Sets the value of "min-width" */
+ void set minWidth(String value) {
+ _minWidth = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('minWidth')
+ String _minWidth;
+
+ /** Gets the value of "outline" */
+ String get outline => this._outline;
+
+ /** Sets the value of "outline" */
+ void set outline(String value) {
+ _outline = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('outline')
+ String _outline;
+
+ /** Gets the value of "outline-color" */
+ String get outlineColor => this._outlineColor;
+
+ /** Sets the value of "outline-color" */
+ void set outlineColor(String value) {
+ _outlineColor = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('outlineColor')
+ String _outlineColor;
+
+ /** Gets the value of "outline-style" */
+ String get outlineStyle => this._outlineStyle;
+
+ /** Sets the value of "outline-style" */
+ void set outlineStyle(String value) {
+ _outlineStyle = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('outlineStyle')
+ String _outlineStyle;
+
+ /** Gets the value of "outline-width" */
+ String get outlineWidth => this._outlineWidth;
+
+ /** Sets the value of "outline-width" */
+ void set outlineWidth(String value) {
+ _outlineWidth = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('outlineWidth')
+ String _outlineWidth;
+
+ /** Gets the value of "overflow" */
+ String get overflow => this._overflow;
+
+ /** Sets the value of "overflow" */
+ void set overflow(String value) {
+ _overflow = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('overflow')
+ String _overflow;
+
+ /** Gets the value of "padding" */
+ String get padding => this._padding;
+
+ /** Sets the value of "padding" */
+ void set padding(String value) {
+ _padding = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('padding')
+ String _padding;
+
+ /** Gets the value of "padding-bottom" */
+ String get paddingBottom => this._paddingBottom;
+
+ /** Sets the value of "padding-bottom" */
+ void set paddingBottom(String value) {
+ _paddingBottom = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('paddingBottom')
+ String _paddingBottom;
+
+ /** Gets the value of "padding-left" */
+ String get paddingLeft => this._paddingLeft;
+
+ /** Sets the value of "padding-left" */
+ void set paddingLeft(String value) {
+ _paddingLeft = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('paddingLeft')
+ String _paddingLeft;
+
+ /** Gets the value of "padding-right" */
+ String get paddingRight => this._paddingRight;
+
+ /** Sets the value of "padding-right" */
+ void set paddingRight(String value) {
+ _paddingRight = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('paddingRight')
+ String _paddingRight;
+
+ /** Gets the value of "padding-top" */
+ String get paddingTop => this._paddingTop;
+
+ /** Sets the value of "padding-top" */
+ void set paddingTop(String value) {
+ _paddingTop = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('paddingTop')
+ String _paddingTop;
+
+ /** Gets the value of "page-break-after" */
+ String get pageBreakAfter => this._pageBreakAfter;
+
+ /** Sets the value of "page-break-after" */
+ void set pageBreakAfter(String value) {
+ _pageBreakAfter = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('pageBreakAfter')
+ String _pageBreakAfter;
+
+ /** Gets the value of "page-break-before" */
+ String get pageBreakBefore => this._pageBreakBefore;
+
+ /** Sets the value of "page-break-before" */
+ void set pageBreakBefore(String value) {
+ _pageBreakBefore = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('pageBreakBefore')
+ String _pageBreakBefore;
+
+ /** Gets the value of "page-break-inside" */
+ String get pageBreakInside => this._pageBreakInside;
+
+ /** Sets the value of "page-break-inside" */
+ void set pageBreakInside(String value) {
+ _pageBreakInside = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('pageBreakInside')
+ String _pageBreakInside;
+
+ /** Gets the value of "position" */
+ String get position => this._position;
+
+ /** Sets the value of "position" */
+ void set position(String value) {
+ _position = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('position')
+ String _position;
+
+ /** Gets the value of "quotes" */
+ String get quotes => this._quotes;
+
+ /** Sets the value of "quotes" */
+ void set quotes(String value) {
+ _quotes = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('quotes')
+ String _quotes;
+
+ /** Gets the value of "right" */
+ String get right => this._right;
+
+ /** Sets the value of "right" */
+ void set right(String value) {
+ _right = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('right')
+ String _right;
+
+ /** Gets the value of "table-layout" */
+ String get tableLayout => this._tableLayout;
+
+ /** Sets the value of "table-layout" */
+ void set tableLayout(String value) {
+ _tableLayout = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('tableLayout')
+ String _tableLayout;
+
+ /** Gets the value of "text-align" */
+ String get textAlign => this._textAlign;
+
+ /** Sets the value of "text-align" */
+ void set textAlign(String value) {
+ _textAlign = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('textAlign')
+ String _textAlign;
+
+ /** Gets the value of "text-decoration" */
+ String get textDecoration => this._textDecoration;
+
+ /** Sets the value of "text-decoration" */
+ void set textDecoration(String value) {
+ _textDecoration = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('textDecoration')
+ String _textDecoration;
+
+ /** Gets the value of "text-indent" */
+ String get textIndent => this._textIndent;
+
+ /** Sets the value of "text-indent" */
+ void set textIndent(String value) {
+ _textIndent = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('textIndent')
+ String _textIndent;
+
+ /** Gets the value of "text-transform" */
+ String get textTransform => this._textTransform;
+
+ /** Sets the value of "text-transform" */
+ void set textTransform(String value) {
+ _textTransform = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('textTransform')
+ String _textTransform;
+
+ /** Gets the value of "top" */
+ String get top => this._top;
+
+ /** Sets the value of "top" */
+ void set top(String value) {
+ _top = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('top')
+ String _top;
+
+ /** Gets the value of "unicode-bidi" */
+ String get unicodeBidi => this._unicodeBidi;
+
+ /** Sets the value of "unicode-bidi" */
+ void set unicodeBidi(String value) {
+ _unicodeBidi = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('unicodeBidi')
+ String _unicodeBidi;
+
+ /** Gets the value of "vertical-align" */
+ String get verticalAlign => this._verticalAlign;
+
+ /** Sets the value of "vertical-align" */
+ void set verticalAlign(String value) {
+ _verticalAlign = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('verticalAlign')
+ String _verticalAlign;
+
+ /** Gets the value of "visibility" */
+ String get visibility => this._visibility;
+
+ /** Sets the value of "visibility" */
+ void set visibility(String value) {
+ _visibility = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('visibility')
+ String _visibility;
+
+ /** Gets the value of "white-space" */
+ String get whiteSpace => this._whiteSpace;
+
+ /** Sets the value of "white-space" */
+ void set whiteSpace(String value) {
+ _whiteSpace = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('whiteSpace')
+ String _whiteSpace;
+
+ /** Gets the value of "width" */
+ String get width => this._width;
+
+ /** Sets the value of "width" */
+ void set width(String value) {
+ _width = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('width')
+ String _width;
+
+ /** Gets the value of "word-spacing" */
+ String get wordSpacing => this._wordSpacing;
+
+ /** Sets the value of "word-spacing" */
+ void set wordSpacing(String value) {
+ _wordSpacing = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('wordSpacing')
+ String _wordSpacing;
+
+ /** Gets the value of "z-index" */
+ String get zIndex => this._zIndex;
+
+ /** Sets the value of "z-index" */
+ void set zIndex(String value) {
+ _zIndex = value == null ? '' : value;
+ }
+ @Returns('String')
+ @JSName('zIndex')
+ String _zIndex;
+
+$endif
+}
+
+class _CssStyleDeclarationSet extends Object with CssStyleDeclarationBase {
+ final Iterable<Element> _elementIterable;
+ Iterable<CssStyleDeclaration> _elementCssStyleDeclarationSetIterable;
+
+ _CssStyleDeclarationSet(this._elementIterable) {
+ _elementCssStyleDeclarationSetIterable = new List.from(
+ _elementIterable).map((e) => e.style);
+ }
+
+ String getPropertyValue(String propertyName) =>
+ _elementCssStyleDeclarationSetIterable.first.getPropertyValue(
+ propertyName);
+
+ void setProperty(String propertyName, String value, [String priority]) {
+ _elementCssStyleDeclarationSetIterable.forEach((e) =>
+ e.setProperty(propertyName, value, priority));
+ }
+
+
+$if DART2JS
+ void _setAll(String propertyName, String value) {
+ value = value == null ? '' : value;
+ for (Element element in _elementIterable) {
+ JS('void', '#.style[#] = #', element, propertyName, value);
+ }
+ }
+
+ /** Sets the value of "background" */
+ void set background(String value) {
+ _setAll('background', value);
+ }
+
+ /** Sets the value of "background-attachment" */
+ void set backgroundAttachment(String value) {
+ _setAll('backgroundAttachment', value);
+ }
+
+ /** Sets the value of "background-color" */
+ void set backgroundColor(String value) {
+ _setAll('backgroundColor', value);
+ }
+
+ /** Sets the value of "background-image" */
+ void set backgroundImage(String value) {
+ _setAll('backgroundImage', value);
+ }
+
+ /** Sets the value of "background-position" */
+ void set backgroundPosition(String value) {
+ _setAll('backgroundPosition', value);
+ }
+
+ /** Sets the value of "background-repeat" */
+ void set backgroundRepeat(String value) {
+ _setAll('backgroundRepeat', value);
+ }
+
+ /** Sets the value of "border" */
+ void set border(String value) {
+ _setAll('border', value);
+ }
+
+ /** Sets the value of "border-bottom" */
+ void set borderBottom(String value) {
+ _setAll('borderBottom', value);
+ }
+
+ /** Sets the value of "border-bottom-color" */
+ void set borderBottomColor(String value) {
+ _setAll('borderBottomColor', value);
+ }
+
+ /** Sets the value of "border-bottom-style" */
+ void set borderBottomStyle(String value) {
+ _setAll('borderBottomStyle', value);
+ }
+
+ /** Sets the value of "border-bottom-width" */
+ void set borderBottomWidth(String value) {
+ _setAll('borderBottomWidth', value);
+ }
+
+ /** Sets the value of "border-collapse" */
+ void set borderCollapse(String value) {
+ _setAll('borderCollapse', value);
+ }
+
+ /** Sets the value of "border-color" */
+ void set borderColor(String value) {
+ _setAll('borderColor', value);
+ }
+
+ /** Sets the value of "border-left" */
+ void set borderLeft(String value) {
+ _setAll('borderLeft', value);
+ }
+
+ /** Sets the value of "border-left-color" */
+ void set borderLeftColor(String value) {
+ _setAll('borderLeftColor', value);
+ }
+
+ /** Sets the value of "border-left-style" */
+ void set borderLeftStyle(String value) {
+ _setAll('borderLeftStyle', value);
+ }
+
+ /** Sets the value of "border-left-width" */
+ void set borderLeftWidth(String value) {
+ _setAll('borderLeftWidth', value);
+ }
+
+ /** Sets the value of "border-right" */
+ void set borderRight(String value) {
+ _setAll('borderRight', value);
+ }
+
+ /** Sets the value of "border-right-color" */
+ void set borderRightColor(String value) {
+ _setAll('borderRightColor', value);
+ }
+
+ /** Sets the value of "border-right-style" */
+ void set borderRightStyle(String value) {
+ _setAll('borderRightStyle', value);
+ }
+
+ /** Sets the value of "border-right-width" */
+ void set borderRightWidth(String value) {
+ _setAll('borderRightWidth', value);
+ }
+
+ /** Sets the value of "border-spacing" */
+ void set borderSpacing(String value) {
+ _setAll('borderSpacing', value);
+ }
+
+ /** Sets the value of "border-style" */
+ void set borderStyle(String value) {
+ _setAll('borderStyle', value);
+ }
+
+ /** Sets the value of "border-top" */
+ void set borderTop(String value) {
+ _setAll('borderTop', value);
+ }
+
+ /** Sets the value of "border-top-color" */
+ void set borderTopColor(String value) {
+ _setAll('borderTopColor', value);
+ }
+
+ /** Sets the value of "border-top-style" */
+ void set borderTopStyle(String value) {
+ _setAll('borderTopStyle', value);
+ }
+
+ /** Sets the value of "border-top-width" */
+ void set borderTopWidth(String value) {
+ _setAll('borderTopWidth', value);
+ }
+
+ /** Sets the value of "border-width" */
+ void set borderWidth(String value) {
+ _setAll('borderWidth', value);
+ }
+
+ /** Sets the value of "bottom" */
+ void set bottom(String value) {
+ _setAll('bottom', value);
+ }
+
+ /** Sets the value of "caption-side" */
+ void set captionSide(String value) {
+ _setAll('captionSide', value);
+ }
+
+ /** Sets the value of "clear" */
+ void set clear(String value) {
+ _setAll('clear', value);
+ }
+
+ /** Sets the value of "clip" */
+ void set clip(String value) {
+ _setAll('clip', value);
+ }
+
+ /** Sets the value of "color" */
+ void set color(String value) {
+ _setAll('color', value);
+ }
+
+ /** Sets the value of "content" */
+ void set content(String value) {
+ _setAll('content', value);
+ }
+
+ /** Sets the value of "cursor" */
+ void set cursor(String value) {
+ _setAll('cursor', value);
+ }
+
+ /** Sets the value of "direction" */
+ void set direction(String value) {
+ _setAll('direction', value);
+ }
+
+ /** Sets the value of "display" */
+ void set display(String value) {
+ _setAll('display', value);
+ }
+
+ /** Sets the value of "empty-cells" */
+ void set emptyCells(String value) {
+ _setAll('emptyCells', value);
+ }
+
+ /** Sets the value of "font" */
+ void set font(String value) {
+ _setAll('font', value);
+ }
+
+ /** Sets the value of "font-family" */
+ void set fontFamily(String value) {
+ _setAll('fontFamily', value);
+ }
+
+ /** Sets the value of "font-size" */
+ void set fontSize(String value) {
+ _setAll('fontSize', value);
+ }
+
+ /** Sets the value of "font-style" */
+ void set fontStyle(String value) {
+ _setAll('fontStyle', value);
+ }
+
+ /** Sets the value of "font-variant" */
+ void set fontVariant(String value) {
+ _setAll('fontVariant', value);
+ }
+
+ /** Sets the value of "font-weight" */
+ void set fontWeight(String value) {
+ _setAll('fontWeight', value);
+ }
+
+ /** Sets the value of "height" */
+ void set height(String value) {
+ _setAll('height', value);
+ }
+
+ /** Sets the value of "left" */
+ void set left(String value) {
+ _setAll('left', value);
+ }
+
+ /** Sets the value of "letter-spacing" */
+ void set letterSpacing(String value) {
+ _setAll('letterSpacing', value);
+ }
+
+ /** Sets the value of "line-height" */
+ void set lineHeight(String value) {
+ _setAll('lineHeight', value);
+ }
+
+ /** Sets the value of "list-style" */
+ void set listStyle(String value) {
+ _setAll('listStyle', value);
+ }
+
+ /** Sets the value of "list-style-image" */
+ void set listStyleImage(String value) {
+ _setAll('listStyleImage', value);
+ }
+
+ /** Sets the value of "list-style-position" */
+ void set listStylePosition(String value) {
+ _setAll('listStylePosition', value);
+ }
+
+ /** Sets the value of "list-style-type" */
+ void set listStyleType(String value) {
+ _setAll('listStyleType', value);
+ }
+
+ /** Sets the value of "margin" */
+ void set margin(String value) {
+ _setAll('margin', value);
+ }
+
+ /** Sets the value of "margin-bottom" */
+ void set marginBottom(String value) {
+ _setAll('marginBottom', value);
+ }
+
+ /** Sets the value of "margin-left" */
+ void set marginLeft(String value) {
+ _setAll('marginLeft', value);
+ }
+
+ /** Sets the value of "margin-right" */
+ void set marginRight(String value) {
+ _setAll('marginRight', value);
+ }
+
+ /** Sets the value of "margin-top" */
+ void set marginTop(String value) {
+ _setAll('marginTop', value);
+ }
+
+ /** Sets the value of "max-height" */
+ void set maxHeight(String value) {
+ _setAll('maxHeight', value);
+ }
+
+ /** Sets the value of "max-width" */
+ void set maxWidth(String value) {
+ _setAll('maxWidth', value);
+ }
+
+ /** Sets the value of "min-height" */
+ void set minHeight(String value) {
+ _setAll('minHeight', value);
+ }
+
+ /** Sets the value of "min-width" */
+ void set minWidth(String value) {
+ _setAll('minWidth', value);
+ }
+
+ /** Sets the value of "outline" */
+ void set outline(String value) {
+ _setAll('outline', value);
+ }
+
+ /** Sets the value of "outline-color" */
+ void set outlineColor(String value) {
+ _setAll('outlineColor', value);
+ }
+
+ /** Sets the value of "outline-style" */
+ void set outlineStyle(String value) {
+ _setAll('outlineStyle', value);
+ }
+
+ /** Sets the value of "outline-width" */
+ void set outlineWidth(String value) {
+ _setAll('outlineWidth', value);
+ }
+
+ /** Sets the value of "overflow" */
+ void set overflow(String value) {
+ _setAll('overflow', value);
+ }
+
+ /** Sets the value of "padding" */
+ void set padding(String value) {
+ _setAll('padding', value);
+ }
+
+ /** Sets the value of "padding-bottom" */
+ void set paddingBottom(String value) {
+ _setAll('paddingBottom', value);
+ }
+
+ /** Sets the value of "padding-left" */
+ void set paddingLeft(String value) {
+ _setAll('paddingLeft', value);
+ }
+
+ /** Sets the value of "padding-right" */
+ void set paddingRight(String value) {
+ _setAll('paddingRight', value);
+ }
+
+ /** Sets the value of "padding-top" */
+ void set paddingTop(String value) {
+ _setAll('paddingTop', value);
+ }
+
+ /** Sets the value of "page-break-after" */
+ void set pageBreakAfter(String value) {
+ _setAll('pageBreakAfter', value);
+ }
+
+ /** Sets the value of "page-break-before" */
+ void set pageBreakBefore(String value) {
+ _setAll('pageBreakBefore', value);
+ }
+
+ /** Sets the value of "page-break-inside" */
+ void set pageBreakInside(String value) {
+ _setAll('pageBreakInside', value);
+ }
+
+ /** Sets the value of "position" */
+ void set position(String value) {
+ _setAll('position', value);
+ }
+
+ /** Sets the value of "quotes" */
+ void set quotes(String value) {
+ _setAll('quotes', value);
+ }
+
+ /** Sets the value of "right" */
+ void set right(String value) {
+ _setAll('right', value);
+ }
+
+ /** Sets the value of "table-layout" */
+ void set tableLayout(String value) {
+ _setAll('tableLayout', value);
+ }
+
+ /** Sets the value of "text-align" */
+ void set textAlign(String value) {
+ _setAll('textAlign', value);
+ }
+
+ /** Sets the value of "text-decoration" */
+ void set textDecoration(String value) {
+ _setAll('textDecoration', value);
+ }
+
+ /** Sets the value of "text-indent" */
+ void set textIndent(String value) {
+ _setAll('textIndent', value);
+ }
+
+ /** Sets the value of "text-transform" */
+ void set textTransform(String value) {
+ _setAll('textTransform', value);
+ }
+
+ /** Sets the value of "top" */
+ void set top(String value) {
+ _setAll('top', value);
+ }
+
+ /** Sets the value of "unicode-bidi" */
+ void set unicodeBidi(String value) {
+ _setAll('unicodeBidi', value);
+ }
+
+ /** Sets the value of "vertical-align" */
+ void set verticalAlign(String value) {
+ _setAll('verticalAlign', value);
+ }
+
+ /** Sets the value of "visibility" */
+ void set visibility(String value) {
+ _setAll('visibility', value);
+ }
+
+ /** Sets the value of "white-space" */
+ void set whiteSpace(String value) {
+ _setAll('whiteSpace', value);
+ }
+
+ /** Sets the value of "width" */
+ void set width(String value) {
+ _setAll('width', value);
+ }
+
+ /** Sets the value of "word-spacing" */
+ void set wordSpacing(String value) {
+ _setAll('wordSpacing', value);
+ }
+
+ /** Sets the value of "z-index" */
+ void set zIndex(String value) {
+ _setAll('zIndex', value);
+ }
+
+$endif
+
// Important note: CssStyleDeclarationSet does NOT implement every method
// available in CssStyleDeclaration. Some of the methods don't make so much
// sense in terms of having a resonable value to return when you're
« 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