252 Commits

Author SHA1 Message Date
P.Y. Laligand
6fcb45991d Move //dart to //third_party/dart. (#4245) 2017-10-19 01:20:38 -07:00
Jason Simmons
e50693b19c Export the SkClipOp argument in Canvas.clipRect (#4243) 2017-10-18 16:39:19 -07:00
Yegor
23f5ccd25c Add alwaysUse24HourFormat and textScaleFactor (#4202)
* systems/settings channel split

* merge textScaleFactor and alwaysUse24HourFormat into flutter/settings channel

* add debugOverrideAlwaysUse24HourFormat

* implement textScaleFactor on iOS

* address comments

* remove debugOverrideAlwaysUse24HourFormat

* clang-format
2017-10-18 16:13:43 -07:00
Siva
5003703330 Fix for issue 12526 (#4218)
* Fix for issue 12526

Ensure that child isolates do not clear the dart_ui_state_ field present in the dart controller.

The commit dd1e0b59ec implemented code to reset the dart_ui_state_ back to null when an isolate was being shutdown to ensure there was no use after free issues when the main isolate exeutes Isolate.current.kill() it however it was also clearning the field when a child isolate was shutdown causing SEGVs later.

* Address code format issues.
2017-10-17 14:47:09 -07:00
Chinmay Garde
f1d3d84ffe Expose SkPath::arcTo and SkPath::rArcTo to Dart. (#4222) 2017-10-17 13:53:12 -07:00
P.Y. Laligand
5fae5d52cf Allow the project to be mapped to a location other than //flutter. (#4203)
This is for Fuchsia where we would like it to be located at //third_party/flutter.
2017-10-13 17:00:58 -07:00
Jason Simmons
6f4eb92020 libtxt: support the use_test_font flag required by framework tests (#4216)
This registers a test font manager that maps all fonts to the Ahem font
2017-10-13 11:31:35 -07:00
Jason Simmons
bcf606afee Remove unnecessary assert in drawAtlas (#4213)
Fixes https://github.com/flutter/flutter/issues/12513
2017-10-13 11:31:24 -07:00
Jason Simmons
b3167a06d5 Remove use of a SceneBuilder member after deletion (#4209)
ClearDartWrapper will delete this SceneBuilder, causing deletion of the
LayerBuilder
2017-10-12 13:50:17 -07:00
Jason Simmons
b84e114b8b libtxt: fix some typos (#4206) 2017-10-12 11:51:50 -07:00
Chinmay Garde
0b8efb62a6 Make flow::LayerBuilder virtual and plug in the default layer builder. (#4199) 2017-10-11 16:26:18 -07:00
Jason Simmons
199620a57b libtxt: support right-to-left text (#4198) 2017-10-11 16:15:57 -07:00
Chinmay Garde
1793f494a3 Move layer tree construction into flow::LayerBuilder so alternate builders can be plugged in. (#4197) 2017-10-11 12:25:55 -07:00
Alexander Aprelev
a91e7b0c8b Revert "Change kernel platform generation dependency name (#4189)" (#4192)
This reverts commit 83224fb6012c893b78c75e87184d3877c088394a.
2017-10-10 13:34:28 -07:00
Alexander Aprelev
83224fb601 Change kernel platform generation dependency name (#4189)
* Change kernel platform generation dependency name

* Include vmservice which is needed by gen_snapshot for Flutter release build
2017-10-10 13:24:04 -07:00
Alexander Aprelev
a9390e6fdc Revert "Revert "Roll dart to pick up change where platform.dill was removed (#4180)" (#4185)" (#4186)
This reverts commit a89f46696d4bc16d814f6697f46e9514b1193b0e.

Doing the synchronized roll of Dart into engine as well as into Fuchsia
to prevent Fuchsia breakage.
2017-10-09 11:18:59 -07:00
Adam Barth
a89f46696d Revert "Roll dart to pick up change where platform.dill was removed (#4180)" (#4185)
This reverts commit 37f571ee09b24f0248e3ab5d530acdb8ec2db018.
2017-10-09 09:13:13 -07:00
Alexander Aprelev
37f571ee09 Roll dart to pick up change where platform.dill was removed (#4180)
* Roll dart to pick up change where platform.dill was removed

* Fix flutter patch sdk generation

* Update license hash. No changes to license text.

* Roll dart to pick up a fix for zero-rebuild problem

* Update license hash
2017-10-09 07:29:21 -07:00
Zachary Anderson
be547d66c2 Remove daed --assert_initializer flag (#4181) 2017-10-06 14:54:08 -07:00
Jason Simmons
e1aa86739b Provide an entropy source to the Dart engine (#4161)
This is required by the _CryptoUtils class used by the recently repackaged
Dart HTTP libraries
2017-10-02 12:40:29 -07:00
gspencergoog
b2a7f4bf8f Add support for system text scale factor. (#4124)
Adds support for system text scale factor, including hooks for Android system settings changes.  iOS hooks will be added in another PR.
2017-09-29 13:19:06 -07:00
Michael Goderbauer
bdfedcc26f Add overlaps method to Rect (#4150)
* Add overlaps method to Rect

* review comment
2017-09-27 17:42:44 -07:00
Adam Barth
160a98c2b2 Update paths to Fuchsia libraries (#4147)
These libraries are in Topaz now.
2017-09-27 13:45:49 -07:00
Ian Hickson
ccf9859b0d Clamp overflows in Color.lerp. (#4141)
Previously, cases like:

```dart
Color.lerp(const Color(0xFF00FF7F), const Color(0xFF00FFFF), 1.1)
```

...would result in unexpected effects (in this instance, lerping
between these colors with a curve that overshoots would take what
should be a simple animation from pale green to blue and add some
flickering bright green whenever it overshoots).
2017-09-26 11:11:09 -07:00
Jason Simmons
a7e14ea474 libtxt: refactor glyph position calculation (#4134)
* Remove padding values in line_heights and glyph_position_x.  Each value
  in glyph_position_x now represents an actual glyph in the layout.

* Remove code intended to handle extra characters beyond the end of the
  last line.  The LineBreaker should ensure that the end of the last run
  matches the end of the last line.

* Return the upstream/downstream affinity of the cursor position in
  GetGlyphPositionAtCoordinate.

* Account for the space at the end of a word wrapped line in
  GetGlyphPositionAtCoordinate / GetCoordinatesForGlyphPosition
2017-09-22 15:15:59 -07:00
P.Y. Laligand
fc3cb8fb3b Adjust to new location of lib/tonic. (#4132) 2017-09-21 14:30:28 -07:00
Ian McKellar
dd1e0b59ec Support cleaner Dart isolate shutdown handling. (#4121)
If an isolate shuts down (for example if an app calls
Isolate.current.kill()), the UIDartState* on DartController will refer
to a freed object. This wires through notification that the is shutting
down through to the DartController so it can clean up appropriately.

This also makes gives the vm-service isolate an UIDartState* so that
the shutdown callback can behave correctly.
2017-09-19 12:11:05 -07:00
Ian Hickson
82fb559566 Add operators to Radius (#4117)
This will make it easier to implement BorderRadius RTL in a manner consistent with EdgeInsets.
2017-09-15 14:52:38 -07:00
George Kulakowski
550d0c6490 Rename Magenta to Zircon, along with associated abbreviations (#4114) 2017-09-14 22:49:46 -07:00
Alexander Aprelev
0e8ffa24e0 Reverting to unblock engine roll (#4109)
* Revert "Make Travis happy again (#4101)"

This reverts commit c99b2559df05f4b5f547d26bb0a61d88809f5564.

* Revert "Support cleaner Dart isolate shutdown handling. (#4096)"

This reverts commit 05751f7be993316057d772e8334a783537e10e26.
2017-09-14 12:10:11 -07:00
Ian McKellar
05751f7be9 Support cleaner Dart isolate shutdown handling. (#4096)
If an isolate shuts down (for example if an app calls
Isolate.current.kill()), the UIDartState* on DartController will refer
to a freed object. This wires through notification that the is shutting
down through to the DartController so it can clean up appropriately.
2017-09-13 10:29:21 -07:00
Michael Goderbauer
08961f8ec5 Format all c-like sources with clang-format (#4088)
* format

* license script adaptions

* updated licenses

* review comments
2017-09-12 15:36:20 -07:00
George Kulakowski
6502090278 Fix remaining ftl->fxl conversions (#4091)
* Fix remaining ftl->fxl conversions

The previous scripting pass at this did not account for objective c file endings

* Update tonic DEPS reference to the post-fxl version
2017-09-11 16:31:18 -07:00
George Kulakowski
3aa7522c11 Rename ftl to fxl in Fuchsia specific code (#4090) 2017-09-11 15:58:48 -07:00
Michael Goderbauer
afcc1d1e1f a11y improvements for iOS (#4079)
* Various iOS a11y fixes

* undo

* review comments

* review comments
2017-09-11 14:44:17 -07:00
Adam Barth
2a13951fa9 Update paths for //application move (#4085) 2017-09-11 14:40:03 -07:00
Ian McKellar
0558644e66 Remove package:lib.fidl.dart/core.dart (#4082) 2017-09-08 16:24:48 -07:00
Adam Barth
457f92ba48 Update paths for Mozart move (#4081) 2017-09-08 15:24:16 -07:00
Ian Hickson
2d7c30033d Pass TextDirection to ParagraphBuilder. (#4001) (#4019) 2017-09-07 15:37:25 -07:00
Ian McKellar
0047b71aaf Updates for the dart:fidl.internal rename and split. (#4070)
Now it references dart:zircon and dart:fuchsia.
2017-09-06 15:33:43 -07:00
P.Y. Laligand
277abef91f Removed reference to lib.widgets. (#4050) 2017-09-01 19:26:06 -07:00
Jason Simmons
1c6433fab4 Ellipsizing implementation for libtxt (#4048) 2017-09-01 14:17:04 -07:00
Chinmay Garde
a0f9084f48 Wire up support for multiple font managers in txt::FontCollection. (#4042) 2017-09-01 11:56:38 -07:00
Adam Barth
73554a1c32 Add //garnet (#4043)
This repository contains FTL now in the Fuchsia build.
2017-08-31 16:47:13 -07:00
Adam Barth
70f6251f21 Update gn path for FIDL move (#4023)
We're moving the FIDL library to a new path. This patch updates the GN
dependency.
2017-08-30 12:53:03 -07:00
Ian Hickson
60bce44c9f Implement i18n features in the a11y API. (#4029) 2017-08-28 16:12:39 -07:00
Jason Simmons
0fc962f0dc Rebase the libtxt integration by @GaryQian onto the current engine head (#4022)
See https://github.com/flutter/engine/pull/3964
2017-08-28 13:01:15 -07:00
Carlo Bernaschina
f5371156d2 Remove dependency from VM isolate name convention (#4007)
Dart_DebugName should be used just to make debug outputs more readable.

We remove the dependency from this API and form the UIDartState debug
name in the engine using the predefined format:
<script_uri>$main-<main_port>

This will allow the engine to change the format of the isolate name
without breaking the engine.
Related https://codereview.chromium.org/3004563003/
2017-08-25 11:11:52 -07:00
mikejurka
3e245ae812 Fix crash when removing stories. (#4003)
Ensure that a Mozart EntityNode (that corresponds
to an ExportNode) is always released on the
Rasterizer thread.

MZ-259
2017-08-23 17:32:19 -07:00
Ian Hickson
49d06b3860 Revert "Pass TextDirection to ParagraphBuilder. (#4001)" (#4004)
This reverts commit 86591145a320f2978c3f4c742c972a32bb8cb02a.
2017-08-23 11:14:26 -07:00