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

Issue 1162023004: Update BoxDecoration and RenderParagraph to use sky.Color instead of int. (Closed)

Created:
5 years, 6 months ago by Matt Perry
Modified:
5 years, 6 months ago
Reviewers:
Hixie, abarth-chromium
CC:
abarth-chromium, gregsimon, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
git@github.com:/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Update BoxDecoration and RenderParagraph to use sky.Color instead of int. Also add operator==, hashCode, toString, and some basic Color constants to Color. R=abarth@chromium.org, ianh@google.com Committed: https://chromium.googlesource.com/external/mojo/+/9b2e3a2a7839fb9a206ffa71e84f3c5c9f0f4c1e

Patch Set 1 #

Patch Set 2 : . #

Total comments: 13

Patch Set 3 : review #

Total comments: 2

Patch Set 4 : test expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -59 lines) Patch
M sky/engine/core/painting/Color.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M sky/examples/fn2/container.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M sky/examples/raw/render_paragraph.dart View 1 2 4 chunks +7 lines, -7 lines 0 comments Download
M sky/examples/raw/sector_layout.dart View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M sky/examples/raw/transform.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sky/examples/stocks2/lib/stock_app.dart View 2 1 chunk +1 line, -1 line 0 comments Download
M sky/sdk/lib/framework/components2/icon.dart View 2 1 chunk +1 line, -1 line 0 comments Download
M sky/sdk/lib/framework/components2/tool_bar.dart View 1 chunk +1 line, -1 line 0 comments Download
M sky/sdk/lib/framework/rendering/box.dart View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M sky/sdk/lib/framework/rendering/paragraph.dart View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M sky/tests/raw/box_layout.dart View 2 1 chunk +2 lines, -2 lines 0 comments Download
M sky/tests/raw/box_layout-expected.txt View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M sky/tests/raw/render_box.dart View 2 1 chunk +1 line, -1 line 0 comments Download
M sky/tests/raw/render_box-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sky/tests/raw/render_flex.dart View 2 4 chunks +13 lines, -13 lines 0 comments Download
M sky/tests/raw/render_flex-expected.txt View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M sky/tests/resources/display_list.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (5 generated)
Matt Perry
5 years, 6 months ago (2015-06-03 18:35:33 UTC) #2
kulakowski
https://codereview.chromium.org/1162023004/diff/20001/sky/engine/core/painting/Color.dart File sky/engine/core/painting/Color.dart (right): https://codereview.chromium.org/1162023004/diff/20001/sky/engine/core/painting/Color.dart#newcode31 sky/engine/core/painting/Color.dart:31: String toString() => "Color($_value)"; "Color(0x${_value.toRadixString(16)})" might be nicer. Though ...
5 years, 6 months ago (2015-06-03 19:29:52 UTC) #4
abarth-chromium
LGTM but Ianh as a comment for you https://codereview.chromium.org/1162023004/diff/20001/sky/examples/fn2/container.dart File sky/examples/fn2/container.dart (right): https://codereview.chromium.org/1162023004/diff/20001/sky/examples/fn2/container.dart#newcode21 sky/examples/fn2/container.dart:21: decoration: ...
5 years, 6 months ago (2015-06-03 19:31:19 UTC) #6
eseidel
https://codereview.chromium.org/1162023004/diff/20001/sky/engine/core/painting/Color.dart File sky/engine/core/painting/Color.dart (right): https://codereview.chromium.org/1162023004/diff/20001/sky/engine/core/painting/Color.dart#newcode11 sky/engine/core/painting/Color.dart:11: static const Color black = const Color(0xFF000000); I wouldn't ...
5 years, 6 months ago (2015-06-03 19:32:20 UTC) #8
Hixie
https://codereview.chromium.org/1162023004/diff/20001/sky/engine/core/painting/Color.dart File sky/engine/core/painting/Color.dart (right): https://codereview.chromium.org/1162023004/diff/20001/sky/engine/core/painting/Color.dart#newcode15 sky/engine/core/painting/Color.dart:15: static const Color blue = const Color(0xFF0000FF); I don't ...
5 years, 6 months ago (2015-06-03 19:35:11 UTC) #10
Hixie
https://codereview.chromium.org/1162023004/diff/20001/sky/tests/raw/render_flex.dart File sky/tests/raw/render_flex.dart (right): https://codereview.chromium.org/1162023004/diff/20001/sky/tests/raw/render_flex.dart#newcode68 sky/tests/raw/render_flex.dart:68: renderBlock.add(new RenderSolidColor(const sky.Color(0x7700FFFF), desiredSize: new sky.Size(50.0, 100.0))); This is ...
5 years, 6 months ago (2015-06-03 20:12:59 UTC) #11
Matt Perry
PTAL https://codereview.chromium.org/1162023004/diff/20001/sky/engine/core/painting/Color.dart File sky/engine/core/painting/Color.dart (right): https://codereview.chromium.org/1162023004/diff/20001/sky/engine/core/painting/Color.dart#newcode11 sky/engine/core/painting/Color.dart:11: static const Color black = const Color(0xFF000000); On ...
5 years, 6 months ago (2015-06-03 20:17:01 UTC) #12
Hixie
> Are you OK with the Paint.toString displaying Paint(Color(0x00F00BA4)) ? Yeah that's totally fine. In ...
5 years, 6 months ago (2015-06-03 20:24:54 UTC) #13
Hixie
https://codereview.chromium.org/1162023004/diff/40001/sky/engine/core/painting/Color.dart File sky/engine/core/painting/Color.dart (right): https://codereview.chromium.org/1162023004/diff/40001/sky/engine/core/painting/Color.dart#newcode18 sky/engine/core/painting/Color.dart:18: bool operator ==(other) => other is Color && _value ...
5 years, 6 months ago (2015-06-03 20:25:07 UTC) #14
Matt Perry
Updated the test expectations. https://codereview.chromium.org/1162023004/diff/40001/sky/engine/core/painting/Color.dart File sky/engine/core/painting/Color.dart (right): https://codereview.chromium.org/1162023004/diff/40001/sky/engine/core/painting/Color.dart#newcode18 sky/engine/core/painting/Color.dart:18: bool operator ==(other) => other ...
5 years, 6 months ago (2015-06-03 20:37:32 UTC) #15
Hixie
On 2015/06/03 at 20:37:32, mpcomplete wrote: > Updated the test expectations. > > https://codereview.chromium.org/1162023004/diff/40001/sky/engine/core/painting/Color.dart > ...
5 years, 6 months ago (2015-06-03 20:52:57 UTC) #16
Hixie
lgtm
5 years, 6 months ago (2015-06-03 20:53:54 UTC) #17
Matt Perry
5 years, 6 months ago (2015-06-03 20:57:09 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
9b2e3a2a7839fb9a206ffa71e84f3c5c9f0f4c1e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698