1580 Commits

Author SHA1 Message Date
Ferhat
c81a2ecb58
[web]Update @dart annotation. Change shaders to allocate smaller canvas (#22481) 2020-11-13 13:55:32 -08:00
nturgut
03ff8a4096
TBR: remove the extra values which was overshadowing the test result (#22483)
* remove the extra values which was overshadowing the test result

* increase difference. canvaskit gives different results

* increase difference more. firefox gave 1.7 diff. add comments
2020-11-12 18:24:38 -08:00
LongCatIsLooong
e872177c1f
Exposing ColorFilter to ImageFilter conversion and Compose() (#20309) 2020-11-12 15:34:02 -08:00
Yegor
c712e4d195
make CkContourMeasureIter and CkContourMeasure resurrectable (#22459) 2020-11-12 13:27:39 -08:00
Greg Spencer
9f09ff2455
Reland: "Make PlatformDispatcher.locale and locales return consistent values (#22267)" (#22473)
This reverts commit d37b862, relanding #22267, now that flutter/flutter#70252 has landed to prevent the problems it had the first time.

Here is the original PR description:

For some reason (probably a bad merge on my part), the return values for locale and locales are not the same on web as they are on other platforms for the PlatformDispatcher and SingletonFlutterWindow classes. The web versions are non-nullable and the others are nullable.

This converts them to be the same (non-nullable) values
2020-11-12 13:20:13 -08:00
Jim Graham
d37b86216a
Revert "Make PlatformDispatcher.locale and locales return consistent values (#22267)" (#22461)
This reverts commit dc8864182c531994852a8263f77596a6131ed8fd.
2020-11-11 23:39:59 -08:00
Yegor
cdc44862e7
Make CkPath resurrectable (#22446) 2020-11-11 17:29:01 -08:00
nturgut
4d44b7e7d9
Upgrades to felt (running on multiple modes, multiple backends, single test target option) (#22260)
* testing running the tests on all build modes

* don't run debug mode on other browsers

* fix platform message test failures

* some cleanup. change dispose platform channel message

* adding flags to control the integration tests better with felt

* running tests by target name, selecting web rendering backend

* fix conditions

* carrying some conditions to helper methods. Adding comments

* create a blocked list for failing canvaskit test

* parse parameters before all integration tests

* Give better warning to developers for tests that are blocked for CI

* address some reviwer comments (more remains)

* remove named parameters

* also run with auto mode

* add verbose option

* reduce the number of tests running. skip url_test for now
2020-11-11 17:18:15 -08:00
Greg Spencer
dc8864182c
Make PlatformDispatcher.locale and locales return consistent values (#22267)
For some reason (probably a bad merge on my part), the return values for locale and locales are not the same on web as they are on other platforms for the PlatformDispatcher and SingletonFlutterWindow classes. The web versions are non-nullable and the others are nullable.

This converts them to be the same (non-nullable) values.
2020-11-11 16:30:22 -08:00
Mouad Debbar
5f063f1b3d
[web] Refactor _measureSubstring to better suit rich text measurement (#22443) 2020-11-11 15:50:01 -08:00
Mouad Debbar
468bc3e9ac
[web] Reuse the existing font string builer in TextStyle (#22444) 2020-11-11 15:49:46 -08:00
Mouad Debbar
f62b754e7f
[web] Better data structure to prepare for rich text measurement (#22442) 2020-11-11 15:49:24 -08:00
Yegor
cdb5b2af00
Remove double-referencing from CkImage to SkImage (#22415) 2020-11-11 14:04:02 -08:00
Ferhat
6e15044ef5
[web] Speed up PageView/CustomPainter rendering (#22408) 2020-11-10 14:41:58 -08:00
Yegor
1a13dac529
Simplify API for scheduling Skia object deletions (#22409) 2020-11-10 10:01:39 -08:00
Mouad Debbar
0cb821f263
[web] Restore the ability to set a custom url strategy (#22371) 2020-11-09 22:28:48 -08:00
Yegor
1e3ceb037f
Update pubspecs to null-safe dependencies (#22366)
* update pubspecs to null-safe dependencies

* remove build_runner dep; upgrade quiver

* use analysis_options.yaml to control analysis scope
2020-11-06 17:54:53 -08:00
Ferhat
d6b71fa9b3
[web] Remove as checks (_generalNullableAsCheckImplementation) / pushSurface calls (#22357) 2020-11-06 17:54:06 -08:00
Emmanuel Garcia
7ab39127ee
loadFontFromList returns void instead of string (#22373) 2020-11-06 17:24:02 -08:00
Mouad Debbar
10f06b5abf
[web] Implement style inheritance during paragraph construction (#22365) 2020-11-06 15:44:31 -08:00
Mouad Debbar
d3c0727907
[web] Split the EngineParagraph interface from the legacy implementation (#22307) 2020-11-06 12:23:35 -08:00
Konstantin Scheglov
cf376142ed
Ignore several import_of_legacy_library_into_null_safe (#22326) 2020-11-06 09:55:29 -08:00
Ferhat
6c5f9391a6
[web] Fix recycling same canvas more than once and add assert to detect (#22342) 2020-11-06 00:50:53 -08:00
Ferhat
879525a9f5
Remove sink parameter since _BaseAdapter exposes _callback (#22335) 2020-11-05 19:44:04 -08:00
张风捷特烈
1c2a56ce02
Update painting.dart (#22221) 2020-11-05 15:24:02 -08:00
Ian Hickson
ad79d23358
Refactor platform message logic (#22181) 2020-11-05 15:19:01 -08:00
Ferhat
39f9855c1f
[web] Improve dom canvas speed. Fix density calculation regression in recomputeTransformClip (#22328) 2020-11-05 13:17:03 -08:00
Jason Simmons
e66a720137
Roll the path package in web_ui and web_test_utils to match the version used by the framework (#22309) 2020-11-04 22:23:31 -08:00
Sarbagya Dhaubanjar
deb7c662d2
Updated return-type for PathMetric.extractPath to be non-nullable (#22292) 2020-11-04 14:54:03 -08:00
Ferhat
d5b726985f
[web] Enable Control+MouseWheel browser zoom (#22285) 2020-11-04 12:32:25 -08:00
Mouad Debbar
08cc9e7114
[web] Put the paragraph painting logic in the Paragraph class (#22239) 2020-11-03 21:10:44 -08:00
Yegor
d27ff811b9
Make some errors more idiomatic (#22261) 2020-11-03 12:57:51 -08:00
Mouad Debbar
5fe35fd416
[web] Canoncalize font family on input fields (#22215) 2020-11-03 11:53:04 -08:00
Ferhat
59b01e0e5a
[web] Fix repaint logic for cullrect,transform changes (#22273) 2020-11-03 11:31:48 -08:00
Daco Harkes
ccdb6819ce
WeakPersistentHandle migration (#19843)
and roll Dart to 52783837369de45d3372cb6c6b7cdd63e71cd829.
2020-11-03 13:06:53 +01:00
Yegor
e9c62e7495
do not print in _computePixelDensity (#22257) 2020-11-02 17:32:29 -08:00
Harry Terkelsen
7c8f57c07d
Report error when instantiating CanvasKit network image (#22159) 2020-11-02 14:58:49 -08:00
Ferhat
8defec6e8c
Fix nullability issue with Image.network (#22252) 2020-11-02 11:41:43 -08:00
Yegor
14437d6c00
fix _getArrayBuffer signature (#22251) 2020-11-02 11:12:52 -08:00
Jonah Williams
50dbe85541
[web] fix hot restart type error (#22248) 2020-11-02 08:55:32 -08:00
nturgut
9b34207a14
Fixing semantics borders on mobile web (#21856)
* logging

* fixing positions with wrong a11y borders screenreader-on/mobile browsers

* remove logs from the window class

* work on unit tests

* using reviewer suggestion for translations

* compute bounding matrix

* compute bounding matrix

* addding more comments

* reenable failing test case
2020-10-30 15:28:46 -07:00
Ferhat
1ad676529a
[web] Fixes canvas pixelation and overallocation due to transforms. (#22160) 2020-10-30 09:02:49 -07:00
Devon Carew
8c5b0a6abf
use the dart analyze command to analyze source (#22212) 2020-10-29 18:46:52 -07:00
Siva
baba31e838
Manual Roll of Dart to ba80ed989cc...9c6e76468ca (#22213)
* Manual Roll of Dart from ba80ed989c...9c6e76468c

dart-lang/sdk@ba80ed989c Version 2.11.0-277.0.dev
dart-lang/sdk@619e388a1d Breaking changes for analyzer version 0.41.
dart-lang/sdk@e46c31c24c Version 2.11.0-276.0.dev
dart-lang/sdk@13704520a0 [cfe] Indicate nullability as assignability issue when appropriate
dart-lang/sdk@33b7f1425e Migration: remove unreachable `break` statements
dart-lang/sdk@68fe2649f3 Migration: remove 2 pixel offset from CSS for `.region.informative-region`.
dart-lang/sdk@f506071e34 Add DartType.alias{Element,Arguments} and class TypeAliasElement
dart-lang/sdk@5b2f57d365 Fix changelog
dart-lang/sdk@d459f2244a Enable non-function type alias tests for CFE based tools
dart-lang/sdk@5ac5b710ee Migration --apply-changes implies --no-web-preview
dart-lang/sdk@8abf6c67ad Add test of potentially constant scopes.
dart-lang/sdk@146423c02d Version 2.11.0-275.0.dev
dart-lang/sdk@d38b366eb6 Add quick fix to remove unnecessary null-aware assignments
dart-lang/sdk@1a56b8e7eb Version 2.11.0-274.0.dev
dart-lang/sdk@d5118d5fc8 Reland "[ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional"
dart-lang/sdk@2672eb34f6 Add Flutter plugins to the list of allowed null safety experiments
dart-lang/sdk@30d13109e7 Error on all ignored command line arguments with a named config.
dart-lang/sdk@a983155d44 [vm/ffi] Remove bytecode mode only runtime entries
dart-lang/sdk@5f5c0ec025 Version 2.11.0-273.0.dev
dart-lang/sdk@3c5d1d2575 fix nodes for path error reporting
dart-lang/sdk@0128ffa6d1 Add most of the remaining parser diagnostics to the data file parser
dart-lang/sdk@91be377fda [io/ssl] Avoid redundant handshake call that can break ongoing handshake try-retry sequence.
dart-lang/sdk@774e18d14a Issue 43925. Set the enclosing class for completion.
dart-lang/sdk@061848e97e Cleanup misc remaining references to bytecode
dart-lang/sdk@bc01cb740a [vm] Don't assume fields are already canonical when canonicalizing closures.
dart-lang/sdk@2fd4b4f562 [dart2js, ddc] Emit native null checks in sound mode only
dart-lang/sdk@8b68bb4191 Revert "Revert "[ddc] Move native null-checks to definitions""
dart-lang/sdk@d4c03fbc1b [ddc] Add more descriptive error for native null assertions
dart-lang/sdk@312a572ade [vm/ffi] Fix prepare_flutter_bundle.dart
dart-lang/sdk@31c065ef4c Change frontend server expression evaluation tests to use strong ddc platform sdk
dart-lang/sdk@2fafb4061f Remove LibrariesLog, we don't use it anymore.
dart-lang/sdk@2653b851d3 Version 2.11.0-272.0.dev
dart-lang/sdk@e5dfd38404 check for invalid git and path deps in publishable packages
dart-lang/sdk@f8fdb4be05 Remove return type from addSource().
dart-lang/sdk@7588ed86de Remove bytecode mode from the VM
dart-lang/sdk@c877d5bf3e [pkg/vm_service] remove three deprecation warnings
dart-lang/sdk@2eef1aa1ad Prepare analyzer_cli/ tests for turning Null Safety on by default.
dart-lang/sdk@80f0976e02 [pkg/nnbd_migration] mark package:nnbd_migration as not publishable
dart-lang/sdk@1958d61b02 Issue 43929. Report HintCode.DEPRECATED_MEMBER_USE for Null Safe from Legacy, refactoring.
dart-lang/sdk@68c50f7f92 Migration: re-work test_informationalRegion_containsTraceLinks_separateDrive.
dart-lang/sdk@ee740fae4a [dart2js] Inference of List.generate elements
dart-lang/sdk@c3ddc5c374 [vm/concurrency] Add EventLoopLatencyJson350KB bechmark
dart-lang/sdk@5851f8bc0c [Analyzer] Add a fix for unnecessary_non_null_assertion
dart-lang/sdk@e38d42fc7d [android] Switch to Flutter Android tooling
dart-lang/sdk@ed009afc4c [package:js] Add static errors for invalid extends
dart-lang/sdk@2e99e59369 Fix integration tests for analyzer/ and analysis_server/ in preparation for Null Safety turned on.
dart-lang/sdk@9181570513 Migration: Work around null reference exception with complex type parameters.
dart-lang/sdk@a777d2b798 Sort declarations in api_test.dart
dart-lang/sdk@a99904a45a [vm/nnbd] Explicitly opt-out test helper scripts from null safety to prepare for NNBD turned on
dart-lang/sdk@77a0daeda9 Update to latest package:collection
dart-lang/sdk@f78c40e32a Revert "Reland "[ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional""
dart-lang/sdk@5a3e7bf18f [Dart CLI] Refactor analytics
dart-lang/sdk@7a87580ec4 [vm] Avoid racy access to SafepointRwLock::reader_ids_
dart-lang/sdk@e5184d71b7 Version 2.11.0-271.0.dev
dart-lang/sdk@7d764a6b3a Get the observatory tests correctly opting out of sound null safety.
dart-lang/sdk@38e3414748 analyzer_plugin: Prepare tests for Null safety flag flip.
dart-lang/sdk@e9bf10bda0 Version 2.11.0-270.0.dev
dart-lang/sdk@56947222cc Fixes for analysis_server/ tests for Windows.
dart-lang/sdk@7a60fd3fd2 Fix Glob creation, PubspecValidator dependencyPath.
dart-lang/sdk@a5d4511847 Reland "[ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional"
dart-lang/sdk@6360dcbecb Version 2.11.0-269.0.dev
dart-lang/sdk@14e4d5fb48 [Tests] - Explicitly opt out vm/dart_2/splay_test.dart
dart-lang/sdk@20b8b1c0cf [vm/concurrency] Introduce a read lock acquisition of program_lock.
dart-lang/sdk@76118806bd [dart:io / Service] Rename State class to _State to avoid class name conflicts with Flutter
dart-lang/sdk@e2cc75e847 Fix the offset used when reporting errors inside of string literals
dart-lang/sdk@29c7474845 Add a test for accessing type arguments
dart-lang/sdk@297fb8606a Un-hide the dart migrate command from stable.
dart-lang/sdk@dac61ff879 Remove a message for pre-nnbd sdks.
dart-lang/sdk@05af48a5df Version 2.11.0-268.0.dev
dart-lang/sdk@a074c793b8 Rename to resolveTestCode() and resolveTestFile().
dart-lang/sdk@47a2ab2866 Prepare to publish analyzer 0.40.5 and _fe_analyzer_shared 12.0.0.
dart-lang/sdk@af8413d8e9 [vm/concurrency] Add write lock acquisiton when updating Class direct_subclasses.
dart-lang/sdk@4f630a9a16 [typed_data] Remove specific Errors from docs
dart-lang/sdk@d9d7324b27 Issue 43777. Update analysis_server/ tests to run when Null Safety is enabled by default in 2.12
dart-lang/sdk@3e856b8ace [vm/concurrency] Allow concurrent access to invocation dispatcher cache
dart-lang/sdk@e8ff7f9d29 Version 2.11.0-267.0.dev
dart-lang/sdk@c45d52b62a Rework the parser to parse code fragments rather than value generators
dart-lang/sdk@34cedb980c [kernel] Make Procedure.kind final
dart-lang/sdk@50d36afc34 [release] Add release notes for 2.10.3
dart-lang/sdk@2928af2b12 [kernel] Remove unused Class.level, ClassLevel enum and shift Library.flags down
dart-lang/sdk@ff60518cad [kernel] Remove getChildFromMember from CanonicalName
dart-lang/sdk@741bb5ec4e [kernel] Change library nnbd bit encoding slightly
dart-lang/sdk@ae5fc78992 [kernel] Remove 'addMember'

* Adjust comment.
2020-10-29 17:07:35 -07:00
张风捷特烈
fe85f946db
Update painting.dart (#22195) 2020-10-29 15:28:02 -07:00
Harry Terkelsen
38f6665bda
Set strut font to Roboto if the given font hasn't been registered (#22129) 2020-10-29 12:43:30 -07:00
Ferhat
fd94c863d5
Fix for firefox custom clipping (#22182) 2020-10-29 12:08:02 -07:00
Greg Spencer
ce1dd11f51
Standardize macro names for dartdoc macros (#22180) 2020-10-29 12:03:04 -07:00
Ferhat
e4dffc1070
[web] Fix scroll wheel line delta on Firefox. (#21928) 2020-10-29 11:06:37 -07:00
Ferhat
247139a8c8
[web] Fix transform not invalidating path bounds causing debugValidate failure (#22172) 2020-10-29 11:04:46 -07:00