1049 Commits

Author SHA1 Message Date
Gary Qian
ee297aa699
Reland "Engine/LibTxt/dart:ui impl of TextHeightBehavior #15087" (#16155) 2020-01-29 10:52:24 -08:00
Mouad Debbar
379295626d
[web] Text width should never exceed constraint width (#16152) 2020-01-28 16:23:04 -08:00
Dan Field
53baa7aee5
Revert breaking PRs (#16148)
* Revert "Web PargraphStyle TextHeightBehavior integration (#16075)"

This reverts commit 86682a2d09e7d111a5c4fd2156b9971bd65fb693.

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

This reverts commit cbf4536d158e25e372469c242e326c48cc730de7.
2020-01-28 10:40:05 -08:00
Gary Qian
86682a2d09
Web PargraphStyle TextHeightBehavior integration (#16075) 2020-01-27 17:35:40 -08:00
Gary Qian
cbf4536d15
Engine/LibTxt/dart:ui impl of TextHeightBehavior (#15087) 2020-01-27 13:37:11 -08:00
Chinmay Garde
276481c4d3
Move tonic into //flutter/third_party. (#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
f30ff4fcbf
Use 2d matrix for transform to work around Safari clipping bug (#15976) 2020-01-24 20:40:12 -08:00
Nurhan Turgut
2415e9654b
updating the versions of the browsers for flutter web engine unit tests (#15977) 2020-01-24 16:28:21 -08:00
Nurhan Turgut
08d1f2af9f
[web] Calling platform message callback after copy (#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
f43097215c
Cache computed window.physicalSize in a FrameReference (#15955) 2020-01-24 13:21:16 -08:00
Dan Field
89f3471fa7
the the fix (#15973) 2020-01-24 12:43:32 -08:00
Ferhat
b22821a542
Optimize drawRRect to use dom_canvas (#15970) 2020-01-24 11:03:19 -08:00
Ferhat
2ce15cf956
Remove paint apply in draw image (#15969)
https://github.com/flutter/flutter/issues/49132
2020-01-24 10:39:54 -08:00
Ferhat
3d5bbb4371
Implement Canvas drawPoints API for Html backend (#15870) 2020-01-21 16:37:41 -08:00
Ferhat
79f898e61d
Fix RRect hittest optimization to handle malformed corner radius (#15859) 2020-01-21 12:12:14 -08:00
Nurhan Turgut
f38f6a09be
windpws batch script for running felt. it does not have snapshot option (#15746) 2020-01-21 09:30:57 -08:00
Ferhat
8eebf82c74
Fix path.contains failure when devicepixelratio != 1.0 (#15743)
* Fix path contains failure due to devicepixelratio
2020-01-17 21:48:51 -08:00
Ferhat
55f022fc9c
Fix Color API, move toCss to helper functions (#15740)
* Fix Color API, move toCss to helper functions
* Move colorToCssString to engine
2020-01-17 16:05:08 -08:00
Ferhat
98c1aeaa3b
Clipping path fix for browsers that don't use correct units when applying clip-path css using svg (#15712) 2020-01-17 10:41:02 -08:00
Dan Field
5554fe1f3a
fix typo, update path metrics docs (#15715) 2020-01-17 10:02:59 -08:00
Dan Field
1970c0624d
implicit casts and add missing docs (#15698) 2020-01-16 17:03:33 -08:00
chunhtai
1f4c593032 loadfontfromlist should send fontchange message to framework (#14805) 2020-01-16 17:03:04 -08:00
Dan Field
85a8ac4255
Make internal cache vars private (#15699) 2020-01-16 16:10:25 -08:00
Nurhan Turgut
76b36e0512
[web] edge launcher for windows (#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
bcb27fdd6c
[web] Add BoxHeightStyle.strut (#15694) 2020-01-16 11:43:05 -08:00
Harry Terkelsen
6693dd7518
Support animated images in the CanvasKit backend (#15678) 2020-01-16 10:58:24 -08:00
Sebastian Jeltsch
c7d0fb7879 More efficient decoding for down-sampled Flutter images using cache(Width|Height) (#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
8c855dba98
fix text blurriness in HTML-rendered text (#15649)
* fix text blurriness in HTML-rendered text
2020-01-15 14:20:28 -08:00
Mouad Debbar
09d892b3bf [web] Freeze window.defaultRouteName (#15565) 2020-01-15 13:03:03 -08:00
Harry Terkelsen
a67d1d2473
Upgrade to CanvasKit 0.11 (#15677) 2020-01-15 12:37:28 -08:00
Nurhan Turgut
be20fb661a
[web] Exec command copy (#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
bc41ab5139
[web] Add Edge support for Flutter Engine unit-tests. (#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
82a851cf21
Roll src/third_party/dart 83fba7bd54..fe666ce592 (3 commits) (#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
88935ca3c4
Support Clipboard.getData and Clipboard.setData for Flutter for web (#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
94c5b9f7d4 modify test_runner.dart for windows to fix test build errors (#15326) 2020-01-09 14:58:01 -08:00
Mouad Debbar
6162c41d1b [web] Tests for browser history implementation (#15324) 2020-01-09 14:53:03 -08:00
Chris Bracken
23df3e6bcb
Revert "Add support for on/off switch labels when built on iOS 13. (#12467)" (#15370)
Broke a fake implementation of Accessibility features in the framework.
While this change is unlikely to break any users in the wild, this is a
breaking change by the standards set out in our documentation and
should follow the breaking change announcement process. Details can be
found at https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes.

The error in question:

    Missing concrete implementation of 'getter AccessibilityFeatures.onOffSwitchLabels' • packages/flutter_test/test/window_test.dart:252:7 • non_abstract_class_inherits_abstract_member

This reverts commit d12f2a609635d18ee89547131ff0a11eca59266c.
2020-01-09 10:33:51 -08:00
brandondiamond
d12f2a6096 Add support for on/off switch labels when built on iOS 13. (#12467) 2020-01-08 18:26:44 -08:00
Ferhat
74f48cd554
Fix devicepixel ratio reset problem when replaying clip stack (#15327)
* Fix devicepixel ratio reset problem when replaying clip stack
* Simplify setTransform
2020-01-08 17:52:29 -08:00
Ferhat
a669095fce
Enable BackdropFilter for most browsers (#15321) 2020-01-08 17:12:13 -08:00
Nurhan Turgut
9d8a985680 add warning message for clipboard api (#15304) 2020-01-08 16:23:02 -08:00
Mouad Debbar
91a37d8799
Reland "[web] Calculate align offset for each paragraph line (LineMetrics.left)" (#14537) (#15151) 2020-01-08 15:08:12 -08:00
Ferhat
8df69a7e58
Move html window.devicePixelRatio access to EngineWindow and fix WebOS issue (#15315) 2020-01-08 12:52:41 -08:00
Ferhat
4979039ffe
Fix Path.from. (#15268)
* Fix Path.from to deep copy. Add regression test.
2020-01-08 12:48:35 -08:00
Harry Terkelsen
dba9cce137
Throw an exception in Image.toByteData rather than hang forever. (#15152) 2020-01-08 11:20:27 -08:00
Harry Terkelsen
155ee3cb7c
Implement Path.from in the CanvasKit backend (#14468) 2020-01-08 11:19:39 -08:00
Nurhan Turgut
f001ea29f1
adding windows platform to felt. fixing signal (#15111) 2020-01-08 06:30:57 -08:00
Ferhat
27a221d6d0
Refactor BitmapCanvas, lazily allocate canvas, fix image composition bug. (#15153)
* Refactor BitmapCanvas. Fix image compositing bug. Allocate canvas lazily
* Fix recording canvas test by restoring context save
* Update recording canvas test for drawColor to show multiply blend
2020-01-07 15:36:48 -08:00
Ferhat
45bbbd780c
Recover when browser throws on ImageElement.decode due to too many images (#15160) 2020-01-07 12:30:33 -08:00
Mouad Debbar
eb139936eb
[web] Fix right click issues (#15103) 2020-01-03 09:21:04 -08:00