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

Issue 25623002: Move Point and Rect over to dart:math, to be re-exported by dart:html. (Closed)

Created:
7 years, 2 months ago by Emily Fortuna
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, kevmoo-old, Jennifer Messerly
Visibility:
Public.

Description

Move Point and Rect over to dart:math, to be re-exported by dart:html. BUG= R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=28184

Patch Set 1 : #

Total comments: 44

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -1191 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 12 chunks +39 lines, -264 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 15 chunks +39 lines, -264 lines 0 comments Download
M sdk/lib/html/html_common/html_common.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/html/html_common/html_common_dart2js.dart View 1 chunk +0 lines, -1 line 0 comments Download
D sdk/lib/html/html_common/jenkins_smi_hash.dart View 1 chunk +0 lines, -42 lines 0 comments Download
A + sdk/lib/math/jenkins_smi_hash.dart View 1 2 chunks +3 lines, -4 lines 0 comments Download
M sdk/lib/math/math.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/math/math_sources.gypi View 1 1 chunk +3 lines, -0 lines 0 comments Download
A sdk/lib/math/point.dart View 1 1 chunk +80 lines, -0 lines 0 comments Download
A sdk/lib/math/rectangle.dart View 1 1 chunk +169 lines, -0 lines 0 comments Download
M tests/html/canvasrenderingcontext2d_test.dart View 7 chunks +11 lines, -11 lines 0 comments Download
M tests/html/client_rect_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/html/element_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/html/point_test.dart View 1 chunk +0 lines, -125 lines 0 comments Download
M tests/html/rect_test.dart View 1 chunk +0 lines, -159 lines 0 comments Download
M tests/html/svgelement_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
A + tests/lib/math/point_test.dart View 3 chunks +7 lines, -10 lines 0 comments Download
A + tests/lib/math/rectangle_test.dart View 1 6 chunks +51 lines, -53 lines 0 comments Download
M tools/dom/scripts/generator.py View 2 chunks +3 lines, -2 lines 0 comments Download
M tools/dom/src/CssRectangle.dart View 1 chunk +4 lines, -3 lines 0 comments Download
D tools/dom/src/Point.dart View 1 chunk +0 lines, -72 lines 0 comments Download
D tools/dom/src/Rectangle.dart View 1 chunk +0 lines, -158 lines 0 comments Download
M tools/dom/templates/html/dart2js/html_dart2js.darttemplate View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tools/dom/templates/html/dartium/html_dartium.darttemplate View 1 2 chunks +2 lines, -2 lines 1 comment Download
M tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate View 2 chunks +7 lines, -7 lines 0 comments Download
M tools/dom/templates/html/impl/impl_ClientRect.darttemplate View 1 chunk +2 lines, -4 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Element.darttemplate View 1 1 chunk +4 lines, -2 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Screen.darttemplate View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Emily Fortuna
https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/point.dart File sdk/lib/math/point.dart (right): https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/point.dart#newcode63 sdk/lib/math/point.dart:63: Point<T> ceil() => new Point<T>(x.ceil(), y.ceil()); One could argue ...
7 years, 2 months ago (2013-10-01 23:12:21 UTC) #1
floitsch
LGTM with comments and a few nits. https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/jenkins_smi_hash.dart File sdk/lib/math/jenkins_smi_hash.dart (right): https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/jenkins_smi_hash.dart#newcode23 sdk/lib/math/jenkins_smi_hash.dart:23: // TODO: ...
7 years, 2 months ago (2013-10-02 08:54:09 UTC) #2
kevmoo-old
DBR - but a very serious one, IMHO https://codereview.chromium.org/25623002/diff/9001/tools/dom/templates/html/dart2js/html_dart2js.darttemplate File tools/dom/templates/html/dart2js/html_dart2js.darttemplate (right): https://codereview.chromium.org/25623002/diff/9001/tools/dom/templates/html/dart2js/html_dart2js.darttemplate#newcode59 tools/dom/templates/html/dart2js/html_dart2js.darttemplate:59: export ...
7 years, 2 months ago (2013-10-02 14:31:47 UTC) #3
Emily Fortuna
https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/jenkins_smi_hash.dart File sdk/lib/math/jenkins_smi_hash.dart (right): https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/jenkins_smi_hash.dart#newcode23 sdk/lib/math/jenkins_smi_hash.dart:23: // TODO: Bug 11617- This class should be optimized ...
7 years, 2 months ago (2013-10-02 18:32:39 UTC) #4
Emily Fortuna
Committed patchset #2 manually as r28184 (presubmit successful).
7 years, 2 months ago (2013-10-02 21:54:19 UTC) #5
Ivan Posva
Delayed DBCs. -Ivan https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/rectangle.dart File sdk/lib/math/rectangle.dart (right): https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/rectangle.dart#newcode9 sdk/lib/math/rectangle.dart:9: abstract class RectangleBase<T extends num> { ...
7 years, 2 months ago (2013-10-08 17:28:43 UTC) #6
Emily Fortuna
7 years, 2 months ago (2013-10-08 17:53:32 UTC) #7
Message was sent while issue was closed.
On 2013/10/08 17:28:43, Ivan Posva wrote:
> Delayed DBCs.
> 
> -Ivan
> 
> https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/rectangle.dart
> File sdk/lib/math/rectangle.dart (right):
> 
>
https://codereview.chromium.org/25623002/diff/9001/sdk/lib/math/rectangle.dar...
> sdk/lib/math/rectangle.dart:9: abstract class RectangleBase<T extends num> {
> Why is this RectangleBase class exported? Do you expect other subclasses?
> 
>
https://codereview.chromium.org/25623002/diff/54001/tools/dom/templates/html/...
> File tools/dom/templates/html/dartium/html_dartium.darttemplate (right):
> 
>
https://codereview.chromium.org/25623002/diff/54001/tools/dom/templates/html/...
> tools/dom/templates/html/dartium/html_dartium.darttemplate:53: export
> 'dart:math' show Rectangle, RectangleBase, Point;
> Why did RectangleBase survive here, but not in the dart2js template?

Hi Ivan, This version of the CL ended up getting rolled back. Here's the latest
version that actually ended up getting committed and I believe addresses your
questions: https://codereview.chromium.org//25808002 I'm removing
"RectangleBase" from the dartium darttemplate in a separate CL.

Powered by Google App Engine
This is Rietveld 408576698