30246 Commits

Author SHA1 Message Date
Seigo Nonaka
ad9cb5909a Introduce FontFamily::hasVariationSelector
This CL introduces new method hasVariationSelector into FontFamily but it
is not used in production code. So no behavior changes are expected.

This CL contains the following changes:
- Introduce hasVariationSelector which returns true if the corresponding
  font has a glyph for a code point and variation selector pair.
- Introduce purgeHbFontCache since hb_face_t won't be released by
  keeping hb_font_t.
- Introduce unit tests with self-built font.

Change-Id: I659a6d03d9ec446b409e1fba2758452abb9f44fa
2015-10-12 18:53:45 +09:00
Adam Barth
2e22817fdb Reattach fitness to the build
We can build Fitness again now that playfair has been updated to account for
the package:flutter rename.
2015-10-12 00:24:24 -07:00
Adam Barth
5d443b8d15 Rev pub packages 2015-10-09 23:09:22 -07:00
Adam Barth
ec61fd8b0b Import dart:ui as ui (instead of as sky) 2015-10-09 20:55:54 -07:00
Adam Barth
3155cb7135 Rename package:sky to package:flutter 2015-10-09 20:44:52 -07:00
Adam Barth
8294952fd0 Rename dart:sky to dart:ui 2015-10-09 19:27:13 -07:00
Adam Barth
a6bf275be2 Fix updater pubspec 2015-10-09 18:56:16 -07:00
Adam Barth
5f4928ffc6 Rev pub packages 2015-10-09 14:43:32 -07:00
Adam Barth
9e9b854d73 Roll Dart SDK 2015-10-09 12:36:21 -07:00
Hixie
e79687d6f8 Remove workarounds that avoided 'super' in mixins
Dart supports this properly now.
2015-10-09 11:24:50 -07:00
Adam Barth
2f05e0d5c9 Rename App to MaterialApp
MaterialApp assumes that you're using material design.

Also move radial reaction and fix imports for stats box.
2015-10-09 10:27:22 -07:00
Adam Barth
c877708568 Split material design widgets out of widgets.dart
These are now part of material.dart.
2015-10-09 10:07:06 -07:00
Adam Barth
c86282eecc Rev pub package 2015-10-09 09:32:16 -07:00
Adam Barth
4e41b4483a Merge pull request #1503 from abarth/simplify_scaffold
Simplify Scaffold
2015-10-06 10:09:35 -07:00
Adam Barth
87631faae2 Simplify Scaffold
Rather than using a custom render object, we can just use a Stack.
2015-10-06 10:06:17 -07:00
Adam Barth
830e6e85e0 Rev pub package 2015-10-06 09:45:20 -07:00
Hixie
df719bde8d Fix Focus
Focus.at() and company should be on Focus, not FocusState.

_notifyDescendants() was using the wrong runtimeType.

Let InheritedWidget update the descendants during build.

When you setState() during build, assert that you're not
markNeedsBuild()ing someone who isn't a descendant.

Typo in Widget.toString().
2015-10-05 16:41:50 -07:00
Hixie
27b76c00ad Simplify the usage of Navigator's routes argument
(These are changes cherry-picked from in-flight branches since they are
more independent and could be helpful even without those changes.)

- Change RouteBuilder's signature to take a single argument in which the
  other fields are placed, so that we can keep iterating on those
  arguments without having to break compatibility each time. Also, this
  makes defining route builders much simpler (only one argument to
  ignore rather than a variable number).

- Expose the next performance to RouteBuilders, since sometimes the
  route itself might not be where it's used.

- Allow BuildContext to be used to walk children, just like it can for
  ancestors

- Allow BuildContext to be used to get the Widget of the current
  BuildContext

- Allow StatefulComponentElement to be referenced with a type
  specialisation so that you don't have to cast when you know what the
  type you're dealing with actually is.
2015-10-05 13:59:30 -07:00
Adam Barth
000bf4106f Merge pull request #1479 from mdakin/simplfy_digger
Simplfy resetting board and mine generation.
2015-10-04 15:21:53 -07:00
Mehmet Akin
bc6bbee6e3 Fix indent. 2015-10-03 22:56:30 +02:00
Mehmet Akin
3eafa823a7 Simplfy resetting board and mine generation. 2015-10-03 22:22:30 +02:00
Adam Barth
d1a10b10ba Use }) : super consistently
Fixes #1372
2015-10-02 23:12:03 -07:00
Adam Barth
7d6e2df861 Rev pub package 2015-10-01 15:44:54 -07:00
Keisuke Kuroyanagi
89e185c3a8 Merge "Refactoring: Introduce helper class to iterate runs." 2015-10-01 20:11:50 +00:00
Chinmay Garde
bf2f48f1e1 Merge pull request #1420 from johnmccutchan/roll_dart
Roll the Dart runtime forward
2015-10-01 11:14:55 -07:00
Adam Barth
1f396b3c69 Make fn3 the default widget framework 2015-10-01 09:48:35 -07:00
Adam Barth
697094988f Merge pull request #1416 from mdakin/minedigger2
Fix bounds checking error I introduced in previour cl, Address style …
2015-10-01 08:30:36 -07:00
Raph Levien
af68d9ae49 Merge "Explicitly set utf-8 encoding for hyb file verification" 2015-10-01 06:36:47 +00:00
Raph Levien
179d763488 Explicitly set utf-8 encoding for hyb file verification
Not all platforms default to UTF-8 encoding, so we set it explicitly.
This patch should fix build breakages resulting from failed verification
of binary hyb files for hyphenation patterns.

Change-Id: I65ac4536d3436586c2633e2b57554fc6ff16d3a8
2015-09-30 23:26:54 -07:00
Raph Levien
d277bd3287 Merge "Binary format for hyphenation patterns" 2015-10-01 04:53:44 +00:00
Raph Levien
96df754284 Binary format for hyphenation patterns
In the current state, hyphenation in all languages than Sanskrit seems
to work (case-folding edge cases). Thus, we just disable Sanskrit.
Packed tries are implemented, but not the finite state machine
(space/speed tradeoff).

This commit contains a throw-away test app, which runs on the host.
I think I want to replace it with unit tests, but I'm including it in
the CL because it's useful during development.

Bug: 21562869
Bug: 21826930
Bug: 23317038
Bug: 23317904

Change-Id: I7479a565a4a062fa319651c2c14c0fa18c5ceaea
2015-09-30 21:37:31 -07:00
John McCutchan
3f52f82dec Roll the Dart runtime forward 2015-09-30 15:22:04 -07:00
Matt Perry
be4e738254 Merge pull request #1414 from mpcomplete/use.changes.2
Implement working UpdateTask in Dart
2015-09-30 18:15:12 -04:00
Matt Perry
62bd083e14 Implement working UpdateTask in Dart
Dart code now supports the full flow that the C++ code used to: version check,
download, replace app bundle. Bonus: the Dart code is much easier to follow,
thanks to async/await!

This is part 2 of a 3-part change. The first part added new mojom
interfaces, PathService and UpdateService, to the sky_services package.
2015-09-30 18:13:11 -04:00
Adam Barth
a6bc8cf906 Merge pull request #1410 from abarth/flutter_dev
s/sky-dev/flutter-dev/
2015-09-30 14:35:05 -07:00
mdakin
61e7fd41af Fix bounds checking error I introduced in previour cl, Address style issues. 2015-09-30 23:15:55 +02:00
Adam Barth
4cced2adf1 s/sky-dev/flutter-dev/ 2015-09-30 13:20:43 -07:00
Adam Barth
b222bfd52e Remove BuildContext argument to initState
This argument isn't needed anymore now that State has a getter for context.
2015-09-30 13:15:46 -07:00
Chinmay Garde
ce4c630881 Merge pull request #1406 from chinmaygarde/master
Make path to PlistBuddy in the Xcode harness script for symbolicating the binary absolute
2015-09-30 12:08:58 -07:00
Adam Barth
ab0183d434 Rev pub package 2015-09-30 12:07:40 -07:00
Matt Perry
b1b214c770 Add new mojom interfaces PathService and UpdateService.
These will be used by the updater package.
2015-09-30 14:28:49 -04:00
Chinmay Garde
2f7585793d Make path to PlistBuddy in the Xcode harness script for symbolicating the binary absolute. 2015-09-30 11:02:20 -07:00
mdakin
431d88d653 Fix alignment of mine counts, simplfy code a bit. 2015-09-30 15:11:42 +02:00
Seigo Nonaka
52dfb07bde Extract hb_face_t object cache mechanism from Layout.cpp.
This CL does following things:
- Extract hb_face_t object cache mechanism from Layout.cpp to be able to
  use it from other cpp file, especially from FontFamily.cpp.
  To address Bug 11256006 and Bug 17759267, need to touch
  hb_face_t from FontFamily.
- Make hb_face_t cache mechanism thread-safe.
- Add unit tests for HbFaceCache test cases.

Bug: 11256006
Bug: 17759267
Change-Id: Ic183634ef34326793bd9a32167236611d0af34d6
2015-09-30 17:36:44 +09:00
Seigo Nonaka
0bf06e0c74 Merge "Introduce unit tests for FontCollection::itemize." 2015-09-30 03:33:13 +00:00
Keisuke Kuroyanagi
f6aa09df27 Refactoring: Introduce helper class to iterate runs.
This doesn't change current behavior. It's a preparation
for the following CLs.

Bug: 22408712
Change-Id: Ic018422254aa3904655f499194caad74f0c0fc5d
2015-09-29 16:05:15 -07:00
Devon Carew
9fcf95f31f customize the generated dartdoc like flutter.io 2015-09-26 23:19:25 -07:00
Adam Barth
348cb2009e Address review comments from @hixie 2015-09-26 20:18:16 -07:00
Adam Barth
7617feed0c Port hello_world to fn3 2015-09-26 13:18:20 -07:00
Adam Barth
5846ffec57 Port address_book to fn3 2015-09-26 13:16:33 -07:00