173 Commits

Author SHA1 Message Date
Nurhan Turgut
7922bc80e9
[web] adding firefox unit tests to font loading (#14467)
* adding firefox unit tests to font loading

* reviewer suggestions
2019-12-13 07:28:27 -08:00
Yegor
18c89f1cf6
[web][refactor] Split html and canvaskit classes more (#14320)
* Split surface and canvaskit classes more

* fix licenses

* address comments
2019-12-12 13:20:49 -08:00
Nurhan Turgut
f650bcaf77
Refactoring text editing. Strategy pattern is used to handle different browser/operating system and a11y behavior. (#14131)
* adding the default text editing strategy

* [DRAFT] Refactoring text editing. Strategy pattern is used to handle different browser/operating system and a11y behaviour. Unit tests are missing. Documentation needs updating.

* addressing PR comments

* addressing PR comments. Fixing documentation

* fixing persistenttextediting element which is used in a11y mode

* removing texteditingelement and using texteditingstrategy from hybridtextediting. fixing the unit tests. fixing comments

* fix unit tests

* add todos for firefox tests

* fixing chrome/android a11y issue
2019-12-12 11:18:02 -08:00
Alexander Aprelev
0081e8c516
Remove unused _TypeNone enum field. (#14440)
* Remove unused field
* Similarly remove _TypeNone from web_ui
2019-12-12 09:43:44 -08:00
Dwayne Slater
80d80ff6e6
Add ability to control dithering on Paint (#13868) 2019-12-11 14:53:50 -08:00
Kaushik Iska
3e55f64c4f
[web] Update build_web_compilers to 2.7.1 (#14305)
* [web] Update build_web_compilers to 2.7.1

This was causing problems with the dart compiler location
for web.

The compiler seems to be present in out/host_debug_unopt/dart-sdk/lib/dev_compiler/kernel/amd/dart_sdk.js as opposed to out/host_debug_unopt/dart-sdk/lib/dev_compiler/amd/dart_sdk.js

* also update build_runner
2019-12-10 16:12:53 -08:00
Nurhan Turgut
deb8e57135
Fix for tab not working (#14165)
* some logs

* Masking moddifier state for lock keys if the key code is not the same as the modifier. this fixes tab issue happening when numlock/capslock is on.

* removing modifier state for locks

* addresing pr comments'
2019-12-10 14:55:46 -08:00
Harry Terkelsen
434f6f9c87
Add support for platform views in the CanvasKit backend (#14263)
* Add support for platform views in the CanvasKit backend

* Respond to comments

* Update license file
2019-12-09 17:59:50 -08:00
Nurhan Turgut
2805da9e5d
Enable web engine unit tests on Firefox (#14267)
* Enable web engine unit tests on Firefox

* addressing PR comments

* addressing PR comments

* fix the version name on the lock file
2019-12-09 16:27:14 -08:00
Harry Terkelsen
3a2ec830ed
Use the versioned canvaskit from unpkg. (#14264)
The one from particles.skia.org is not intended for production use.
2019-12-09 14:28:13 -08:00
Harry Terkelsen
a614c0a2d4
Convert radians to degrees in canvaskit backend for drawArc (#14163) 2019-12-09 11:00:44 -08:00
Nurhan Turgut
91ef612ee0
[web] [tests] Changing configurations for firefox (#14148)
* Changing configurations for firefox

* remove headless

* change comments on configurations files

* remove unused boolean
2019-12-05 15:17:34 -08:00
Mouad Debbar
0506c65f59
[web] DOM text measurement return a LineMetrics list if single-line (#14138) 2019-12-05 12:15:03 -08:00
Ferhat
90c42f4ca6
Fix firefox detection to fix app startup for other browsers (#14145) 2019-12-05 10:48:55 -08:00
David Worsham
d117ac979c
Wire up Opacity on Fuchsia, round 2 (#14024)
* Remove erroneous ChildView opacity

* Wire frame metrics through contexts

* Maintain layer stack inside of SceneBuilder

* Remove EnsureSingleChild

* Centralize system-composite and elevation logic

* Wire up OpacityLayer to Scenic
2019-12-04 19:29:31 -08:00
Yegor
5d9509ae05
[web][felt] fix source map path (#14134) 2019-12-04 13:28:23 -08:00
Mouad Debbar
8d1c59811c
[web] Fix text measurement when constraint width is infinite (#14132) 2019-12-04 13:27:14 -08:00
chunhtai
3e6d6bc612
add pointer data santizing in flutter web engine (#14082) 2019-12-03 18:41:36 -08:00
Casey Hillers
6179380243
Update fallback to Roboto url to be HTTPS (#14086) 2019-12-03 12:25:53 -08:00
Harry Terkelsen
8d6fa7e85c
Fallback to Roboto if no suitable font is found (#14061) 2019-11-27 17:20:28 -08:00
Nurhan Turgut
4bdd15cd54
more tests for enabling semantics (#14060)
* more tests for enabling semantics

* addressing pr comments
2019-11-27 14:53:48 -08:00
Mouad Debbar
bc07e6a239
[web] Initial support for LineMetrics (#13985) 2019-11-27 12:56:44 -08:00
Nurhan Turgut
268107d2fc
fixing the method call for testing semantics (#14056) 2019-11-27 10:39:16 -08:00
Nurhan Turgut
e3e5f8dabc
Adding support for enabling semantics on desktop (#14003)
* DRAFT: adding support for enabling semantics on desktop

* Working solution for desktop.

* Refactoring class structure. Removing unrelated comments.

* Fixing enabling semantics from dom_renderer

* Adding unit tests.Fixing failing cases. More refactoring.

* more work on tests.

* Fixing licences

* addressing PR comments
2019-11-26 18:59:26 -08:00
Harry Terkelsen
7b07be61b9
Refactor CanvasKit backend in preparation for platform views (#13935)
* SkCanvas -> SkLayerCanvas

SkRecordingCanvas -> SkCanvas

* Move files

* WIP on canvas refactor

* Refactor CanvasKit backend

* fix tests

* update licenses

* Respond to PR comments
2019-11-25 18:21:45 -08:00
Jonah Williams
298e053bdc
Add support for FontLoader API for the web (#13999) 2019-11-25 11:07:13 -08:00
Mouad Debbar
72e167e47d
[web] Fix bug in rich text layout (#13981) 2019-11-22 12:20:16 -08:00
Ferhat
7e68097cc1
[web] Fix line-height for Firefox (#13960) 2019-11-21 13:04:51 -08:00
Mouad Debbar
f6a3eb9d19
[web] Allow users to enable canvas text measurement (#13929) 2019-11-21 12:37:07 -08:00
Mouad Debbar
96fc607b8a
[web] Refactor text editing to handle any order of platform messages gracefully (#13741) 2019-11-21 12:36:53 -08:00
Ferhat
ff448c307f
Fix edge detection for correct dom_renderer reset (#13940) 2019-11-20 08:56:56 -08:00
Nurhan Turgut
df55ed4c5b
[web] Flutter for web autocorrect support (#13922)
* support for autocorrect

* fixing the unit tests. Note there is no unit tests for the autocorrect since the unit tests do not run on webkit

* addressing PR comments

* fix typo
2019-11-20 06:47:09 -08:00
Jim Graham
ffcd8564a2
Imagefilter wrapper object (#13711)
Make ImageFilter objects comparable and printable.

This will help in areas in the Widget and RenderObject trees which try to avoid marking objects for updates if a setter is called with the same value (previously all ImageFilter objects would compare as not equal and appear to be new values).
2019-11-19 13:43:06 -08:00
Harry Terkelsen
f240462bbf
Implement basic text rendering support in CanvasKit backend (#13903)
* Implement basic text rendering support in CanvasKit backend

* Update licenses

* Address PR comments
2019-11-19 12:37:28 -08:00
Nurhan Turgut
333a8058c6
Changing test runner and platform to be browser independent (#13869)
* changes to add firefox as one of the browser options to test_platform and test_runner

* Creating a supported_browsers file to put all the different browser related maps and utilities

* Remove accidentaly forgotten commented out lines. Clear imports

* fix error in screenshot handler

* Addressing PR comments.

* addressing PR comments part 2:
2019-11-19 12:18:10 -08:00
Jonah Williams
c812a62b88
allow ignoring toString, hashCode, and == in api_conform_test (#13907) 2019-11-19 10:21:31 -08:00
chunhtai
132d38cd22
Moves pointer event sanitizing to engine. (#13697)
* Moves pointer event sanitizing to engine

* fix comment format

* fix formatting

* addressing comment

* fix format

* fix format

* addressing comment
2019-11-19 09:48:25 -08:00
Kate Lovett
f4fba66c2f
Adding opacity -> alpha method to Color class (#13902) 2019-11-19 09:48:04 -08:00
Ferhat
84ed7be371
[web] Implement PathMetrics.length (#13909)
* Implement PathMetrics.length, add tests
2019-11-19 09:41:11 -08:00
Ferhat
73e1fb21fc
Fix withIn matcher distance function lookup (#13904) 2019-11-18 16:00:01 -08:00
Ferhat
e85d92197f
Fix single line bitmap canvas text shadow (#13901) 2019-11-18 13:42:48 -08:00
Harry Terkelsen
77c3512ec8
Implement the rest of ui.Path methods for CanvasKit (#13851)
- the relative path methods
- Path.combine
2019-11-14 11:08:34 -08:00
Ferhat
562dd0394b
[web] Change canvas sibling transforms to 3d with z=0 to get around canvas rendering bug. (#13860)
* Change off canvas element transforms to 3d with z=0
* update matrix4 call to call 3d version
2019-11-14 11:03:05 -08:00
Mouad Debbar
3a89662ca1
[web] Fix selectable text rendering (#13802) 2019-11-14 00:12:56 -08:00
Ferhat
b6a0fb77ed
[web] Fix blendmode for images (#13809)
* Fix blendmode for images
2019-11-13 13:09:16 -08:00
chunhtai
1f1e2ba58e
reland add lifecycle enum (#13767)
This reverts commit 8ebb318401344793daa10c3bec97c34891cf7cc8.
2019-11-13 11:26:25 -08:00
Gary Qian
b358dc58fb
Remove extra shadows from Web Engine EngineParagraphStyle (#13805) 2019-11-13 11:13:46 -08:00
Yegor
dee42b4ead
implement radial gradient in canvaskit backend (#13796) 2019-11-12 10:56:07 -08:00
Clement Skau
db23a6cabf Adds missing comma in EngineParagraphStyle.toString() (#13795) 2019-11-12 17:00:54 +01:00
Ferhat
679a4369b2
[web] Implement TextStyle.shadows (#13769)
* Add shadows to Engine classes
* add text shadow test
* update golden locks file, update ui.ParagraphStyle, fix issues
* Change maxDiffRate for mac clients
2019-11-12 00:05:00 -08:00