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

Issue 1224223004: Fix test failures from AnimatedContainer patch. (Closed)

Created:
5 years, 5 months ago by Matt Perry
Modified:
5 years, 5 months ago
Reviewers:
abarth-chromium, Hixie
CC:
abarth-chromium, gregsimon, jackson_old, 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

Fix test failures from AnimatedContainer patch. - Needed to move properties into AnimatedContainer to create a full BoxDecoration. - Updated test expectations because backgroundColor animates now. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/8e0b6ac898ff213e820eedbcfcc83c983181cf87

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+878 lines, -957 lines) Patch
M sky/sdk/lib/widgets/animated_container.dart View 1 3 chunks +11 lines, -1 line 0 comments Download
M sky/sdk/lib/widgets/material.dart View 1 3 chunks +8 lines, -15 lines 2 comments Download
M sky/tests/examples/sector-expected.txt View 1 7 chunks +474 lines, -516 lines 0 comments Download
M sky/tests/examples/stocks-expected.txt View 1 4 chunks +90 lines, -102 lines 0 comments Download
M sky/tests/examples/styled_text-expected.txt View 1 1 chunk +97 lines, -99 lines 0 comments Download
M sky/tests/examples/tabs-expected.txt View 1 2 chunks +115 lines, -121 lines 0 comments Download
M sky/tests/widgets/buttons-expected.txt View 1 3 chunks +24 lines, -30 lines 0 comments Download
M sky/tests/widgets/dialog-expected.txt View 1 1 chunk +17 lines, -19 lines 0 comments Download
M sky/tests/widgets/syncs1-expected.txt View 1 6 chunks +42 lines, -54 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Matt Perry
https://codereview.chromium.org/1224223004/diff/1/sky/sdk/lib/widgets/material.dart File sky/sdk/lib/widgets/material.dart (right): https://codereview.chromium.org/1224223004/diff/1/sky/sdk/lib/widgets/material.dart#newcode39 sky/sdk/lib/widgets/material.dart:39: ..backgroundColor = new AnimatedColor(_getBackgroundColor(type, color)) One thing I'm worried ...
5 years, 5 months ago (2015-07-09 19:17:21 UTC) #2
abarth-chromium
lgtm https://codereview.chromium.org/1224223004/diff/1/sky/sdk/lib/widgets/material.dart File sky/sdk/lib/widgets/material.dart (right): https://codereview.chromium.org/1224223004/diff/1/sky/sdk/lib/widgets/material.dart#newcode39 sky/sdk/lib/widgets/material.dart:39: ..backgroundColor = new AnimatedColor(_getBackgroundColor(type, color)) On 2015/07/09 at ...
5 years, 5 months ago (2015-07-09 19:19:00 UTC) #3
Matt Perry
Committed patchset #3 (id:40001) manually as 8e0b6ac898ff213e820eedbcfcc83c983181cf87 (presubmit successful).
5 years, 5 months ago (2015-07-09 19:26:43 UTC) #4
Hixie
What's the delta of the tests from before your initial change to after this change? ...
5 years, 5 months ago (2015-07-09 20:58:40 UTC) #6
Matt Perry
5 years, 5 months ago (2015-07-09 21:03:13 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/1224223004/diff/40001/sky/sdk/lib/widgets/mat...
File sky/sdk/lib/widgets/material.dart (right):

https://codereview.chromium.org/1224223004/diff/40001/sky/sdk/lib/widgets/mat...
sky/sdk/lib/widgets/material.dart:34: if (level == null) level = 0;
On 2015/07/09 20:58:40, Hixie wrote:
> This constructor is getting out of control. Widget constructors have to be
> super-cheap because we run them every frame. We need a better solution here.

Is there a method that gets called after construction when we know we're going
to keep a Widget?

Though, if we're worried about the cost of constructing new objects each frame,
is this really much worse than before? The entire Widget hierarchy gets rebuilt
when Widget.build is called.

Powered by Google App Engine
This is Rietveld 408576698