370 Commits

Author SHA1 Message Date
Ferhat
a242dd866b
[web] Fix shadows for arbitrary paths on PhysicalShape (#23830) 2021-01-22 14:22:17 -08:00
Harry Terkelsen
5b9cd44b1a
Automatically download Noto fonts as backup fonts in CanvasKit mode (#23728)
* Revert "Revert "[CanvasKit] Automatically fall back to Noto fonts (#23096)" (#23357)"

This reverts commit f9f4d0168dc6e03324844db942a4bca717ebb2e0.

* WIP

* Use an Interval Tree to store the unicode ranges for the Noto Fonts

* Update licenses

* Remove debug print statements

* Respond to comments

* Fix analysis error

* Add tests

* Respond to comments

* Fix test

* Update goldens lock

* Skip screenshot test on Safari

* Skip CanvasKit tests on iOS Safari

* Move CanvasKit initialization so it doesn't run on iOS Safari
2021-01-21 12:58:33 -08:00
Ferhat
6a6c8af18d
[web] Make null paint color consistent with mobile&desktop (#23778) 2021-01-20 13:53:38 -08:00
Ferhat
82aac14cfb
[web] Fix drawPoints api crash when strokeWidth is not specified. (#23773) 2021-01-20 11:39:06 -08:00
chunhtai
c97bdae2a0
update browser history switching (#23471) 2021-01-20 09:34:02 -08:00
Ferhat
2b994d5d16
[web] Fix shadow rendering using boxshadow due to webkit repaint area bug (#23769) 2021-01-20 09:29:03 -08:00
Yegor
688578e687
[canvaskit] fix addPlaceholder JS bindings; add paragraph test (#23685) 2021-01-20 09:19:02 -08:00
Greg Spencer
df5f3b086c
Implement handling of framework-handled key events (#23655) 2021-01-19 16:44:01 -08:00
Mouad Debbar
30f7e9f55e
[web] Reland: Enable the new rich paragraph implementation (#23696) 2021-01-15 10:57:15 -08:00
Mouad Debbar
3fd4c63fab
[web] Fix letter spacing for rich paragraphs (#23683) 2021-01-14 12:37:41 -08:00
Ferhat
3f691f07ba
[web] Fix semantic node order for webkit (#23601) 2021-01-14 11:36:50 -08:00
Mouad Debbar
9d75996c1b
Revert "[web] Enable the new rich paragraph implementation (#23162)" (#23687)
This reverts commit 51dd6aa034700b0603a8a2fe222836c798cef9a2.
2021-01-14 10:00:13 -08:00
Mouad Debbar
d7b25f9a33
[web] Reland: Enable the new rich paragraph implementation (#23659) 2021-01-13 16:14:02 -08:00
Mouad Debbar
22bbc3c3e0
[web] Fix text cutoff when rendering paragraphs on DomCanvas (#23638) 2021-01-13 13:39:01 -08:00
Yegor
3a89dff758
Switch to directional shadows (#23459)
* Switch to directional shadows

* update goldens
2021-01-13 12:29:58 -08:00
Mouad Debbar
4814b157d1
[web] Fix layout exception when text is null (#23653) 2021-01-13 11:54:02 -08:00
Zachary Anderson
859494fb40
Revert "[web] Enable the new rich paragraph implementation (#23162)" (#23651)
This reverts commit 51dd6aa034700b0603a8a2fe222836c798cef9a2.
2021-01-13 10:02:01 -08:00
Yegor
d2b8154790
[canvaskit] apply invser scale on the left (#23550) 2021-01-12 13:27:46 -08:00
Mouad Debbar
51dd6aa034
[web] Enable the new rich paragraph implementation (#23162) 2021-01-11 20:20:00 -08:00
Harry Terkelsen
62a1e8eed3
Roll CanvasKit to 0.22 (#23348) 2021-01-11 18:18:38 -08:00
Mouad Debbar
497dcb5c2a
[web] Apply font-family and other styles to the paragraph element (#23596) 2021-01-11 15:34:01 -08:00
Yegor
2bcb01b80c
Add flt-renderer and flt-build-mode debug attributes to <body> (#23430)
* add flt-renderer and flt-build-mode debug attributes to <body>
* explicitly specify renderer in tests
2021-01-08 18:45:45 -08:00
Mouad Debbar
a68c169850
[web] Fix more tests that are specific to DomParagraph (#23551) 2021-01-08 16:30:35 -08:00
Mouad Debbar
cbda3c08ea
[web] Fix tests in preparation for enabling new rich paragraph implementation (#23515) 2021-01-08 14:20:05 -08:00
Mouad Debbar
2bcca6c6cd
[web] Draw shadows for text in rich paragraphs (#23470) 2021-01-07 13:03:26 -08:00
Mouad Debbar
599a0728f9
[web] Placeholders for rich paragraphs (#23160) 2021-01-06 14:31:19 -08:00
Jason Simmons
c4e79d7eb9
Update the web profiler_test to wrap benchmark callbacks with allowInterop (#23439)
This is now required by js_util.setProperty
(see d683f33f5b)
2021-01-05 18:15:18 -08:00
nturgut
c01b5caab9
[web] fixing text editing for autofill with semantics (#23361)
* fixing text editing for autofill with semantics

* fix tests. add tests. unskip tests

* removing new. adding issue to comment
2021-01-05 12:08:09 -08:00
Harry Terkelsen
f9f4d0168d
Revert "[CanvasKit] Automatically fall back to Noto fonts (#23096)" (#23357)
This reverts commit eff27c74bf8c74781786f3c3724347e12764018a.

Reason for revert: Incorrect logic breaks Gallery
2020-12-30 16:16:51 -08:00
Harry Terkelsen
eff27c74bf
[CanvasKit] Automatically fall back to Noto fonts (#23096) 2020-12-29 13:29:29 -08:00
nturgut
06f9654c67
fixes text area transitions both for mobile and desktop (#23256)
* fixes text area transitions both for mobile and desktop

* add a fix for safari desktop

* remove focus related changes

* change text editing a11y tests. enable them in all browsers

* remove unused variables

* remove debug print
2020-12-28 11:15:14 -08:00
Mouad Debbar
d941aefa61
[web] Rich text painting on bitmap canvas (#23136) 2020-12-17 18:19:02 -08:00
Mouad Debbar
ade75e08f6
[web] Rich paragraph getPositionForOffset (#23133) 2020-12-17 11:27:34 -08:00
Mouad Debbar
19950f576e
[web] Rich paragraph getBoxesForRange (#23098) 2020-12-16 18:09:48 -08:00
Mouad Debbar
acad21c190
[web] Tests for rich paragraph DOM (#23097) 2020-12-16 17:05:04 -08:00
Yegor
fd6b409f95
Fix recursive access to SkImage in image resurrector (#23115) 2020-12-16 14:31:24 -08:00
Ferhat
b080bdf56f
Prevent recycling of canvas multiple times (#23089) 2020-12-15 16:42:40 -08:00
Mouad Debbar
730ad8601b
[web] Calculate height and baseline for rich text (#23064) 2020-12-15 15:48:34 -08:00
Yegor
3d4c021fbd
[canvaskit] cache and reuse platform view overlays (#23061) 2020-12-15 14:57:05 -08:00
Yegor
d0b6e4269f
[canvaskit] improve image error handling and messaging (#22951) 2020-12-14 14:46:15 -08:00
Mouad Debbar
8ead1df40b
[web] Align offset for lines of rich text (#23043) 2020-12-14 13:23:03 -08:00
Mouad Debbar
5d0310fd7f
[web] Separate the height ruler from the other rulers (#22964) 2020-12-14 13:13:02 -08:00
Harry Terkelsen
360a16ad75
CanvasKit fix embedded view clipping (#22937) 2020-12-14 13:08:03 -08:00
Harry Terkelsen
405b105fe8
Pass angles for SweepGradient in degrees, not radians (#21677) 2020-12-11 16:54:54 -08:00
Harry Terkelsen
25293df2eb
Implement pushColorFilter in CanvasKit (#22838)
* Implement pushColorFilter in CanvasKit

* Add test

* Update goldens lock
2020-12-11 16:54:28 -08:00
Yegor
3cdb6de239
[canvaskit] reuse canvases when window resizes (#22966) 2020-12-11 15:05:11 -08:00
Mouad Debbar
3a035ee044
[web] Add complex rich text test cases and fix them (#22948) 2020-12-11 11:28:49 -08:00
Mouad Debbar
7bdaf3795b
[web] Introduce flag to enable new rich text implementation (#22942) 2020-12-11 09:28:37 -08:00
Mouad Debbar
14c8c24456
[web] Fix regression in foreground style (#22999) 2020-12-10 16:30:09 -08:00
David Iglesias
50d830a1ac
[web] Do not reset 'cursor' in PersistedPlatformView. (#22977) 2020-12-10 16:03:02 -08:00