Index: tools/dom/src/CssRectangle.dart |
diff --git a/tools/dom/src/CssRectangle.dart b/tools/dom/src/CssRectangle.dart |
index 440bebe7ff54e5ad10e3ac9731464287c1eaa80c..e82ddd9d9f5872c326e96c822ebbf9dff715f3a1 100644 |
--- a/tools/dom/src/CssRectangle.dart |
+++ b/tools/dom/src/CssRectangle.dart |
@@ -27,7 +27,7 @@ class _ContentCssRect extends CssRect { |
* `height` function in jQuery and the calculated `height` CSS value, |
* converted to a num in pixels. |
*/ |
- set height(newHeight) { |
+ void set height(newHeight) { |
if (newHeight is Dimension) { |
if (newHeight.value < 0) newHeight = new Dimension.px(0); |
_element.style.height = newHeight.toString(); |
@@ -45,7 +45,7 @@ class _ContentCssRect extends CssRect { |
* and the calculated |
* `width` CSS value, converted to a dimensionless num in pixels. |
*/ |
- set width(newWidth) { |
+ void set width(newWidth) { |
if (newWidth is Dimension) { |
if (newWidth.value < 0) newWidth = new Dimension.px(0); |
_element.style.width = newWidth.toString(); |
@@ -80,7 +80,7 @@ class _ContentCssListRect extends _ContentCssRect { |
* function in jQuery and the calculated `height` CSS value, converted to a |
* num in pixels. |
*/ |
- set height(newHeight) { |
+ void set height(newHeight) { |
_elementList.forEach((e) => e.contentEdge.height = newHeight); |
} |
@@ -90,7 +90,7 @@ class _ContentCssListRect extends _ContentCssRect { |
* This is equivalent to the `width` function in jQuery and the calculated |
* `width` CSS value, converted to a dimensionless num in pixels. |
*/ |
- set width(newWidth) { |
+ void set width(newWidth) { |
_elementList.forEach((e) => e.contentEdge.width = newWidth); |
} |
} |
@@ -197,7 +197,7 @@ abstract class CssRect extends MutableRectangle<num> { |
* |
* Note that only the content height can actually be set via this method. |
*/ |
- set height(newHeight) { |
+ void set height(newHeight) { |
throw new UnsupportedError("Can only set height for content rect."); |
} |
@@ -211,7 +211,7 @@ abstract class CssRect extends MutableRectangle<num> { |
* |
* Note that only the content width can be set via this method. |
*/ |
- set width(newWidth) { |
+ void set width(newWidth) { |
throw new UnsupportedError("Can only set width for content rect."); |
} |