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

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

Issue 18034021: Fixing analyzer warnings on overloading == but not get hashCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 316bca75b916b78bbf57994c6b1cf81fc7b88867..2c7c9c3dccd3bb7bfad6ad310b6e9cfb86f20dbc 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -26189,6 +26189,9 @@ class _ClientRect extends NativeFieldWrapperClass1 implements Rect {
height == other.height;
}
+ int get hashCode => JenkinsSmiHash.hash4(left.hashCode, top.hashCode,
+ width.hashCode, height.hashCode);
+
/**
* Computes the intersection of this rectangle and the rectangle parameter.
* Returns null if there is no intersection.
@@ -29613,6 +29616,8 @@ class Point {
return x == other.x && y == other.y;
}
+ int get hashCode => JenkinsSmiHash.hash2(x.hashCode, y.hashCode);
+
Point operator +(Point other) {
return new Point(x + other.x, y + other.y);
}
@@ -29735,6 +29740,9 @@ class Rect {
height == other.height;
}
+ int get hashCode => JenkinsSmiHash.hash4(left.hashCode, top.hashCode,
+ width.hashCode, height.hashCode);
+
/**
* Computes the intersection of this rectangle and the rectangle parameter.
* Returns null if there is no intersection.

Powered by Google App Engine
This is Rietveld 408576698