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

Unified Diff: tools/dom/src/CssRectangle.dart

Issue 1327083002: Revert "Patched in Dartium JsInterop" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/systemnative.py ('k') | tools/dom/src/Html5NodeValidator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.");
}
« no previous file with comments | « tools/dom/scripts/systemnative.py ('k') | tools/dom/src/Html5NodeValidator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698