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

Issue 1215163003: Random cleanup of various Dart things in our tree. (Closed)

Created:
5 years, 5 months ago by Hixie
Modified:
5 years, 5 months ago
CC:
abarth-chromium, Aaron Boodman, ben+mojo_chromium.org, darin (slow to review), gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Random cleanup of various Dart things in our tree. I ran this and fixed some of the warnings flagged: cd ~/dev/mojo/src/sky && find engine/core/painting sdk/example sdk/lib -type f -name '*.dart' | perl -nE 'chomp; local $/ = undef; open(FILE, $_); my $file = <FILE>; print $file; next if $file =~ /^part of/om; say "import \"$_\";"' > all.dart && shelldb analyze all.dart 2>&1 | grep -v 'sky/all.dart' Then I loaded the affected examples and fixed any bugs I found from running them. Major change to SDK: - Fix RenderPadding to get a valid size when it has no child (it was previously sizing itself too small by the padding amount). Minor changes, mostly to examples: - Fix the 'part of' lines in sky_shell_dart_controller_service_isolate to match the library name given in main.dart. - Remove unused imports in various places. - Fix example/game/lib/texture.dart to use the new Rect creation APIs. - Remove unused code in example/mine_digger/lib/main.dart. - Fix example/raw/hello_world.dart to use the new Size.center API. - Fix example/rendering/baseline.dart and example/rendering/justify_content.dart to have readable text. - Fix compile error in example/rendering/transform.dart. - Extend the debugDoesMeetConstraints() method to print useful information when it will be used to fire an assert. - Remove a warning about abstract methods on RenderView that would for some reason only sometimes get flagged by the analyzer. R=abarth@chromium.org, jackson@google.com Committed: https://chromium.googlesource.com/external/mojo/+/f2b8c4eb0e66a28ea91300eb14e47173af834ced

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -30 lines) Patch
M sky/engine/core/script/dart_service_isolate/loader.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sky/engine/core/script/dart_service_isolate/resources.dart View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/script/dart_service_isolate/server.dart View 1 chunk +1 line, -1 line 0 comments Download
M sky/sdk/example/game/lib/sprites.dart View 2 chunks +0 lines, -2 lines 0 comments Download
M sky/sdk/example/game/lib/texture.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sky/sdk/example/game/main.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M sky/sdk/example/mine_digger/lib/main.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sky/sdk/example/raw/hello_world.dart View 2 chunks +1 line, -2 lines 0 comments Download
M sky/sdk/example/rendering/baseline.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M sky/sdk/example/rendering/justify_content.dart View 2 chunks +4 lines, -3 lines 0 comments Download
M sky/sdk/example/rendering/shadowed_box.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sky/sdk/example/rendering/transform.dart View 1 chunk +1 line, -1 line 0 comments Download
M sky/sdk/lib/mojo/asset_bundle.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sky/sdk/lib/rendering/box.dart View 3 chunks +17 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
abarth-chromium
lgtm
5 years, 5 months ago (2015-06-30 19:01:26 UTC) #2
jackson
lgtm
5 years, 5 months ago (2015-06-30 19:02:53 UTC) #4
Hixie
5 years, 5 months ago (2015-06-30 19:03:55 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
f2b8c4eb0e66a28ea91300eb14e47173af834ced (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698