962 Commits

Author SHA1 Message Date
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
Brian Osman
1a96087747
Update to newer path fill-type API in Skia (#14070) 2019-12-03 11:57:54 -05: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
Jason Simmons
c7ec5bbc1c
Convert images to raster on the GPU thread for Image.toByteData (#13647)
If the image is a cross-context image that might be read from the GPU thread
during onscreen rendering, then it is not safe to read it concurrently from
the IO thread as part of Image.toByteData.

If the GPU thread does not have a graphics context, then fall back to
converting the image on the IO thread.

Fixes https://github.com/flutter/flutter/issues/30697
2019-11-25 14:44:57 -08:00
Jonah Williams
298e053bdc
Add support for FontLoader API for the web (#13999) 2019-11-25 11:07:13 -08:00
Brian Osman
388f814d0e
Use new SkPathDirection enum, previous one is deprecated (#14005) 2019-11-25 14:03:16 -05:00
gaaclarke
97a23a80e1
Made a way to turn off the OpenGL operations on the IO thread for backgrounded apps (#13908) 2019-11-22 14:08:33 -08:00
Mouad Debbar
72e167e47d
[web] Fix bug in rich text layout (#13981) 2019-11-22 12:20:16 -08:00
gaaclarke
89e395853c
Refactor to passing functions by const ref (#13975)
Moved our code to passing functions by const ref
2019-11-22 12:20:02 -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
Gary Qian
b3463e3580
getLineBoundary edge condition use <= instead of < (#13881) 2019-11-15 15:14:03 -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
Jason Simmons
f5c002254b
Use Skia's matchStyleCSS3 to find bundled asset typefaces matching a font style (#13848)
This will improve font matching in SkParagraph for fonts that are bundled as
assets within the app.  Libtxt was using Minikin's FontFamily class to select
the closest matching font, but SkParagraph will rely on the matchStyle
implementation in the asset font manager.
2019-11-13 17:44:25 -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
Ferhat
1a7bf8578d
Move Path and PathMetrics from canvas.dart into their own files. No delta (#13772)
* Move Path and PathMetrics into their own files. No delta
* update file list in licenses_flutter
2019-11-11 21:27:15 -08:00
Harry Terkelsen
e150bf3305
Take devicePixelRatio into account when drawing shadows (#13786)
* Take devicePixelRatio into account when drawing shadows

This fixes a bug where shadows were offset in CanvasKit

* Respond to review comments
2019-11-11 18:20:08 -08:00
Harry Terkelsen
63e8c6275e
Add ImageFilter and BackdropFilter to CanvasKit backend (#13768)
* Implement ImageFilter.blur and BackdropFilter

* update licenses file

* Respond to review comments
2019-11-11 17:20:45 -08:00
Harry Terkelsen
726e8f54db
Add Helvetica and sans-serif as fallback font families (#13784)
* Add Helvetica and sans-serif as fallback font families

This prevents us from using an ugly serif default font when the
requested font isn't available.

* Use Arial when not on iOS
2019-11-11 16:54:28 -08:00