1045 Commits

Author SHA1 Message Date
Harry Terkelsen
f2839e3a3f Various fixes in CanvasKit (flutter/engine#16433)
- Enable dynamically loaded fonts
- Fix addOval
- Fix getBoxesForRange for negative ranges
2020-02-06 14:51:12 -08:00
Ferhat
0b3f68c172 Reset width/height before deallocation for Safari allocation bug. (flutter/engine#16469) 2020-02-06 12:30:27 -08:00
Mouad Debbar
efca62703f Reland #16206: "[web] Correct getPositionForOffset for multi-line paragraphs" (flutter/engine#16365) 2020-02-05 19:53:03 -08:00
Yegor
617582e744 fix bad reference to maxDiffRatePercent (flutter/engine#16440)
* fix bad reference to maxDiffRatePercent

* back to 10%
2020-02-05 18:49:10 -08:00
Yegor
e101a7c901 use percent for golden diff rates; tighten the values (flutter/engine#16430) 2020-02-05 15:53:45 -08:00
Ferhat
a00b502efa [web] Fixes incorrect transform when context save and transforms are deferred. (flutter/engine#16412)
* Fix transform order in clipStack replay
2020-02-05 15:02:34 -08:00
Gary Qian
1069df1834 Add docs (flutter/engine#16368) 2020-02-04 13:53:02 -08:00
vsmenon
4c9598cdbe Fix runtime type errors when running with canvaskit (flutter/engine#16312)
* fix runtime type errors when running with canvaskit
2020-02-04 10:32:51 -08:00
Mouad Debbar
950eb2447f [web][felt] If full dart-sdk isn't available, install it (flutter/engine#16341) 2020-02-03 15:06:24 -08:00
Chinmay Garde
426c48aaac Remove all uses of the redundant flutter_root variable. (flutter/engine#16311)
This was only necessary when the Engine had to build in multiple buildroots
where the sources where checked out at different paths relative to the
buildroot. This is no longer the case and there are already cases GN rules
have been written that mix and match variable usage with the direct
specification of the path to the Flutter sources relative to the sole buildroot.
2020-01-31 21:49:48 -08:00
Yegor
fe7cbf64b1 Use bundled Roboto in all tests (flutter/engine#16218)
* Use bundled Roboto in all tests
2020-01-30 17:31:32 -08:00
Jason Simmons
15192d0659 Revert "[web] Correct getPositionForOffset for multi-line paragraphs (#16206)" (flutter/engine#16268)
This reverts commit 14b7e813bbbc1fa2c2d4f8f9a8079da941f90a82.

This caused a regression in a framework test (material/text_field_splash_test.dart)
2020-01-30 16:06:35 -08:00
Kaushik Iska
3ef33c151d [fuchsia] Fix the import for dart_api.h (flutter/engine#16269) 2020-01-30 14:55:15 -08:00
Kaushik Iska
e44e10df9a [fuchsia] SceneHostBindings are no longer thread locals (flutter/engine#16262)
Prior to this change SceneHostBindinds was a ThreadLocal but the
intention was for it to be IsolateLocal. Given that dart
could collect this map on a non-UI thread this caused
use-after-free issues.

This change fixes it by making it keyed on isolate and koid
this is not the ideal solution, this would exist on
dart isolate group data struct. Given that Fuchsia is moving
to use the embedder API, the decision to use this temporary
work around was made.

fixes https://github.com/flutter/flutter/issues/49738
2020-01-30 14:36:36 -08:00
Mouad Debbar
14b7e813bb [web] Correct getPositionForOffset for multi-line paragraphs (flutter/engine#16206) 2020-01-30 10:21:15 -08:00
Gary Qian
20ab007c56 Reland "Engine/LibTxt/dart:ui impl of TextHeightBehavior #15087" (flutter/engine#16155) 2020-01-29 10:52:24 -08:00
Mouad Debbar
17ee584750 [web] Text width should never exceed constraint width (flutter/engine#16152) 2020-01-28 16:23:04 -08:00
Dan Field
b392f1e3bd Revert breaking PRs (flutter/engine#16148)
* Revert "Web PargraphStyle TextHeightBehavior integration (#16075)"

This reverts commit a152c9df009f74b3f52c46845e618b8ddcf3eaa7.

* Revert "Engine/LibTxt/dart:ui impl of TextHeightBehavior (#15087)"

This reverts commit e6f6d2a3c2fe333a85c8997d755ca91594e80544.
2020-01-28 10:40:05 -08:00
Gary Qian
a152c9df00 Web PargraphStyle TextHeightBehavior integration (flutter/engine#16075) 2020-01-27 17:35:40 -08:00
Gary Qian
e6f6d2a3c2 Engine/LibTxt/dart:ui impl of TextHeightBehavior (flutter/engine#15087) 2020-01-27 13:37:11 -08:00
Chinmay Garde
93d67baf2b Move tonic into //flutter/third_party. (flutter/engine#15895)
Tonic used to be used by multiple consumers outside of Flutter Engine. Due to
this, it has an unnecessary abstraction layer as well as utilities duplicated in
FML and other engine subsystems. The sole user of Tonic is now the Flutter
Engine. It is intended that the Flutter Engine team now owns this subsystem,
remove unnecessary utilities and document the headers. This is the first step in
the transition. No history is being imported as the initial history was already
lost in the transition of this component to fuchsia.googlesource. As this
component was unmaintained there, I could see no additional value in importing
the history of the patches there.

No functional change. Just moved the repo from //third_party to
//flutter/third_party and updates GN refs.
2020-01-25 17:01:56 -08:00
Ferhat
7a94b6e104 Use 2d matrix for transform to work around Safari clipping bug (flutter/engine#15976) 2020-01-24 20:40:12 -08:00
Nurhan Turgut
9fe323f5e0 updating the versions of the browsers for flutter web engine unit tests (flutter/engine#15977) 2020-01-24 16:28:21 -08:00
Nurhan Turgut
076cf25e37 [web] Calling platform message callback after copy (flutter/engine#15950)
* Calling platform message callback after copy

* addressing pr comments

* adding unit tests to clipbpard.dart
2020-01-24 15:35:03 -08:00
Yegor
3f4a2380cd Cache computed window.physicalSize in a FrameReference (flutter/engine#15955) 2020-01-24 13:21:16 -08:00
Dan Field
62a99c60c5 the the fix (flutter/engine#15973) 2020-01-24 12:43:32 -08:00
Ferhat
74e67d3c35 Optimize drawRRect to use dom_canvas (flutter/engine#15970) 2020-01-24 11:03:19 -08:00
Ferhat
4fcba4abfd Remove paint apply in draw image (flutter/engine#15969)
https://github.com/flutter/flutter/issues/49132
2020-01-24 10:39:54 -08:00
Ferhat
328ff31301 Implement Canvas drawPoints API for Html backend (flutter/engine#15870) 2020-01-21 16:37:41 -08:00
Ferhat
e4501f8cba Fix RRect hittest optimization to handle malformed corner radius (flutter/engine#15859) 2020-01-21 12:12:14 -08:00
Nurhan Turgut
8397831dd2 windpws batch script for running felt. it does not have snapshot option (flutter/engine#15746) 2020-01-21 09:30:57 -08:00
Ferhat
26e037d5fa Fix path.contains failure when devicepixelratio != 1.0 (flutter/engine#15743)
* Fix path contains failure due to devicepixelratio
2020-01-17 21:48:51 -08:00
Ferhat
924ac79e5f Fix Color API, move toCss to helper functions (flutter/engine#15740)
* Fix Color API, move toCss to helper functions
* Move colorToCssString to engine
2020-01-17 16:05:08 -08:00
Ferhat
924f12ee44 Clipping path fix for browsers that don't use correct units when applying clip-path css using svg (flutter/engine#15712) 2020-01-17 10:41:02 -08:00
Dan Field
06076f78c3 fix typo, update path metrics docs (flutter/engine#15715) 2020-01-17 10:02:59 -08:00
Dan Field
44c0db9c57 implicit casts and add missing docs (flutter/engine#15698) 2020-01-16 17:03:33 -08:00
chunhtai
0955ec77b3 loadfontfromlist should send fontchange message to framework (flutter/engine#14805) 2020-01-16 17:03:04 -08:00
Dan Field
0eb30b4fcd Make internal cache vars private (flutter/engine#15699) 2020-01-16 16:10:25 -08:00
Nurhan Turgut
8ca3dd95d8 [web] edge launcher for windows (flutter/engine#15690)
* edge launcher for windows

* addressing PR comments

* url mistake

* remove uncessary import

* initialization error fix

* format
2020-01-16 14:48:13 -08:00
Jason Simmons
3de56d8153 [web] Add BoxHeightStyle.strut (flutter/engine#15694) 2020-01-16 11:43:05 -08:00
Harry Terkelsen
3561d52417 Support animated images in the CanvasKit backend (flutter/engine#15678) 2020-01-16 10:58:24 -08:00
Sebastian Jeltsch
8a1db8726a More efficient decoding for down-sampled Flutter images using cache(Width|Height) (flutter/engine#15372)
When down-scaling images, decode encoded images into smaller images
closer to the target size before finally down-scaling them to their
target size. For very large images this can avoid inflating the image
into its full size first before throwing it away. This can help to
significantly reduce peak memory utilization.

On a tangent, we could be even more efficient, if we'd interpret the
cache(Width|Height) as sizing hints.

I also opportunistically added warnings, I don't think a "caching" API
should support scaling images up or changing their aspect ratio.
2020-01-16 10:13:04 -08:00
Yegor
8b63cb5933 fix text blurriness in HTML-rendered text (flutter/engine#15649)
* fix text blurriness in HTML-rendered text
2020-01-15 14:20:28 -08:00
Mouad Debbar
8f125958e2 [web] Freeze window.defaultRouteName (flutter/engine#15565) 2020-01-15 13:03:03 -08:00
Harry Terkelsen
117972971f Upgrade to CanvasKit 0.11 (flutter/engine#15677) 2020-01-15 12:37:28 -08:00
Nurhan Turgut
c3b73f9ee6 [web] Exec command copy (flutter/engine#15675)
* clipboard support with range

* changing the implementation to work on Safari

* addressing PR comments

* changing value back to text

* when textarea.value is used select was also working
2020-01-15 12:17:01 -08:00
Nurhan Turgut
cdf45aa737 [web] Add Edge support for Flutter Engine unit-tests. (flutter/engine#15641)
* Add Edge support for Flutter Engine unit-tests. This does not include the launcher

* Add mapping from browser name to platform.

* remove ie from supported browser maps
2020-01-14 16:44:44 -08:00
Ben Konyi
0bd7ad2ab0 Roll src/third_party/dart 83fba7bd54..fe666ce592 (3 commits) (flutter/engine#15619)
fe666ce Report unused public static members of private classes by Sam Rawlins · 14 hours ago
43ceb5c Revert "De-dup js_util between ddc and dart2js" by Vijay Menon · 15 hours ago
04e2c97 NNBD preview: Fix the position of the navigation by Sam Rawlins · 17 hours ago
83fba7b [ VM ] Move vmservice_io code from runtime/bin to dart:_internal/vm/bin by Ben Konyi · 18 hours ago
c0b1a0a Switch analyzer perf to using analyzer Packages. by Konstantin Shcheglov · 18 hours ago
5b391ba [tests] Break the monolithic async* tests into multiple files by Nicholas Shahan · 19 hours ago
980a200 [vm/vmservice] Make sure writing service info file is awaited by Alexander Markov · 19 hours ago
7997162 Fix getHover test on Windows. by Konstantin Shcheglov · 19 hours ago
301a3a2 Fix incorrect .packages files in DAS tests. by Konstantin Shcheglov · 19 hours ago
c41812b Incremental work in the completion_metrics.dart file. by Jaime Wren · 19 hours ago
5169a52 Use @patch for List.of factory constructor by Stephen Adams · 20 hours ago
2a7789d De-dup js_util between ddc and dart2js by Vijay Menon · 20 hours ago
aaaaa47 [dartjs] Remove unsound `contains` method from AbstractValueDomain. by Mayank Patke · 20 hours ago
fd9d3f9 relevance test re-structure by pq · 20 hours ago
5d96b23 [dartdevc] Fix analysis error in runtime library by Nicholas Shahan · 20 hours ago
2c121e4 Migration: modify pass through edit plans to integrate up the tree stepwise. by Paul Berry · 21 hours ago
6669849 Initial commit with some work starting the metrics collection around code completion metrics gathering. by Jaime Wren · 21 hours ago
c6d6eed Include type arguments when converting to a stateful widget (issue 40095) by Brian Wilkerson · 22 hours ago
b9c5798 Support latest analyzer in analyzer_plugin by Simon Binder · 22 hours ago
16f07ea Revert "Use nullable context type for operand of null-check operator." by Konstantin Shcheglov · 23 hours ago
c8f2683 Add a reason to the MakeNullable change and plumb it through to the AtomicEdit by Brian Wilkerson · 23 hours ago
5357052 [vm/compiler] Fix handling of function types in type tests for type parameters by Alexander Markov · 23 hours ago
8a1a4e7 Add flag to specify which null-safety semantics to use for codegen by Sigmund Cherem · 23 hours ago
b3c6af3 [vm/compiler] Introduce base class for instance calls in IL by Alexander Markov · 24 hours ago
67f3cf3 Revert "[vm, gc] Sweep non-executable large pages concurrently." by Ryan Macnak · 24 hours ago
00a6b52 Test that invocation of a method on a nullable interface type prefers nullable extension. by Konstantin Shcheglov · 24 hours ago
b5f4351 Move ABSTRACT_SUPER_MEMBER_REFERENCE tests. by Konstantin Shcheglov · 25 hours ago
ca31f1d Refactor FunctionExpressionInvocationResolver to support Never. by Konstantin Shcheglov · 25 hours ago
4495c2b [vm, gc] Run weak processing in parallel for old-space GCs. by Ryan Macnak · 26 hours ago
2dd37b6 Add findPackagesFrom(). by Konstantin Shcheglov · 27 hours ago
abe7c1a When NNBD, use nullable iterable type for null-aware spreads. by Konstantin Shcheglov · 27 hours ago
6f1bcee Extract ifNull resolution in BinaryExpressionResolver. by Konstantin Shcheglov · 27 hours ago
9c9c283 [vm, gc] Remove dead allocation stats code. by Ryan Macnak · 27 hours ago
a4207fd [vm/aot] Avoid loading the code register (in bare-AOT) and zeroing IC data reg (in AOT) for closure calls by Martin Kustermann · 33 hours ago base
4cb8816 [gardening] Also ignore OSError in verify_http_timeline_test. by Teagan Strickland · 34 hours ago
d1e11f0 Enable prefer_final_fields in three packages by Brian Wilkerson · 2 days ago
856a270 Use nullable context type for operand of null-check operator. by Konstantin Shcheglov · 2 days ago
da6696b Use analyzer Packages. by Konstantin Shcheglov · 2 days ago
5b1065a Enable avoid_init_to_null in analysis_server by Brian Wilkerson · 2 days ago
99cdbee Use getDisplayString() for hover. by Konstantin Shcheglov · 2 days ago
04b5bd9 Extract null check in PostfixExpressionResolver. by Konstantin Shcheglov · 2 days ago
ac8a2a6 Enable avoid_init_to_null in analyzer_plugin by Brian Wilkerson · 2 days ago
f1c81da Add a fix for unnecessary_null_in_of_null_operators by Brian Wilkerson · 2 days ago
9254683 Remove packageMap and hasFlutterDependency from Workspace interface. by Konstantin Shcheglov · 2 days ago
ecebc29 Do negation resolution in one method. by Konstantin Shcheglov · 2 days ago
489c0be Extract PostfixExpressionResolver. by Konstantin Shcheglov · 2 days ago
113f034 completion manager test harness by pq · 2 days ago
7ed7bff Fix some hints caused by previous CL and add some failing tests by Brian Wilkerson · 3 days ago
2020-01-14 12:06:56 -08:00
Nurhan Turgut
25cc166ede Support Clipboard.getData and Clipboard.setData for Flutter for web (flutter/engine#15455)
* copy/paste solution for chrome. copy solution for firefox. using clipboardAPI.

* addressing PR comments

* update licences file
2020-01-11 09:42:40 -08:00
Nurhan Turgut
0e59dd9f6d modify test_runner.dart for windows to fix test build errors (flutter/engine#15326) 2020-01-09 14:58:01 -08:00