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

Unified Diff: lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 10540110: Put width before height in element constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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:
Download patch
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | lib/html/frog/html_frog.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index 6974d3b125d772d4f775f488272c88850208e900..a6f7a434f687227d69372ec7c36ed618f992edd0 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -21121,10 +21121,10 @@ class _Elements {
return _e;
}
- factory CanvasElement([int height, int width]) {
+ factory CanvasElement([int width, int height]) {
CanvasElement _e = _document.$dom_createElement("canvas");
- if (height != null) _e.height = height;
if (width != null) _e.width = width;
+ if (height != null) _e.height = height;
return _e;
}
@@ -21203,11 +21203,11 @@ class _Elements {
return _e;
}
- factory ImageElement([String src, int height, int width]) {
+ factory ImageElement([String src, int width, int height]) {
ImageElement _e = _document.$dom_createElement("img");
if (src != null) _e.src = src;
- if (height != null) _e.height = height;
if (width != null) _e.width = width;
+ if (height != null) _e.height = height;
return _e;
}
@@ -24831,7 +24831,7 @@ interface CSSValueList extends CSSValue {
/// @domName HTMLCanvasElement
interface CanvasElement extends Element default _Elements {
- CanvasElement([int height, int width]);
+ CanvasElement([int width, int height]);
/** @domName HTMLCanvasElement.height */
int height;
@@ -28891,7 +28891,7 @@ interface ImageData {
/// @domName HTMLImageElement
interface ImageElement extends Element default _Elements {
- ImageElement([String src, int height, int width]);
+ ImageElement([String src, int width, int height]);
/** @domName HTMLImageElement.align */
String align;
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | lib/html/frog/html_frog.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698