723 Commits

Author SHA1 Message Date
nturgut
b7cd3f8e70
Revert "Re-merge Switch web-render option default to auto. Add documentation (#23187)" (#23246)
This reverts commit 08d5c33b02996e3384f48f9160ed2047b5be4c66.
2020-12-22 12:02:26 -08:00
nturgut
08d5c33b02
Re-merge Switch web-render option default to auto. Add documentation (#23187) 2020-12-21 09:56:02 -08:00
Zachary Anderson
67cb0f382e
Revert "[web] Switch web-render option default to auto (#23090)" (#23161)
This reverts commit 50e7d89163418b73be4b376ac96a335856da1224.
2020-12-17 18:22:36 -08:00
Mouad Debbar
d941aefa61
[web] Rich text painting on bitmap canvas (#23136) 2020-12-17 18:19:02 -08:00
Paul Berry
2ef2c86162
Fix engine in preparation for implementing https://github.com/dart-lang/language/issues/1274 (#23131)
When https://github.com/dart-lang/language/issues/1274 (Infer
non-nullability from local boolean variables) is implemented, flow
analysis will detect that code like this no longer needs to perform a
null check:

    final bool hasIdentityTransform =
        transform == null || isIdentityFloat32ListTransform(transform);
    ...
    if (!hasIdentityTransform) {
      ... transform! ... // Null check unnecessary
    }

To avoid a build failure due to the unnecessary null check, we need to
temporarily write it in a way that we can ignore it.  Once the feature
is complete and rolled into flutter, I'll remove the null check
entirely.
2020-12-17 11:59:07 -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
Ferhat
50e7d89163
[web] Switch web-render option default to auto (#23090) 2020-12-16 16:43:13 -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
3d3e16e303
upgrade Firefox to 83 (#22829) 2020-12-15 12:12:06 -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
Jim Graham
bb81b954b9
Allow Tile mode for blur filter and add new decal TileMode (#22982)
Add a new TileMode.decal enum value and allow TileMode in ImagerFilter.blur() constructor
2020-12-10 14:37:17 -08:00
nturgut
3a30ae3d5c
Fix ios voiceover (for safari >13.4) (#22965)
* fixes voice over for higher ios-safari versions

* change enable conditions for webkit

* adding click event for removal. adding unit tests

* run the mobile semantics enabler test on mobile browsers

* remove test method that gave different result on LUCI.(further inv. needed)
2020-12-10 11:59:44 -08:00
Ferhat
4797b06652
[web] Fix drag failure when RMB pointer up event is not received (#22946) 2020-12-10 10:32:04 -08:00
Ferhat
91ec9451dd
[web] Optimize BitmapCanvas. Fixes overallocation of canvas elements (#22856) 2020-12-10 09:08:29 -08:00
Harry Terkelsen
fb486d9d90
Fix platform view transforms in CanvasKit (#22945) 2020-12-09 16:13:02 -08:00
Mouad Debbar
7e5ac8bb3f
[web] Cache CSS font string instead of the style object (#22939) 2020-12-09 16:08:03 -08:00
nturgut
2948fee1bf
[web] For Firefox focusing on the DOM element after blur propagates (#22953)
* For Firefox focusing on the DOM element after blur propagates

* modify the unit tests. remove webkit skip

* change async testing to a more common usage
2020-12-09 16:07:06 -08:00
nturgut
8518a5bbe6
update browser changing docs (#22968) 2020-12-09 15:13:55 -08:00
Mouad Debbar
da5b0f9b36
[web] Default styles for rich text (#22941) 2020-12-08 15:22:20 -08:00
Mouad Debbar
df30ffef4f
[web] Fix edge cases when force-breaking lines (#22910) 2020-12-08 13:30:41 -08:00
Yegor
c31dc58918
[canvaskit] fix TransformLayer.preroll (#22890) 2020-12-08 12:04:58 -08:00
nturgut
2951317570
[web] sharding change is merged. re-enable tests (#22884)
* sharding change is merged. re-enable tests

* fix file name for image loading. re-block auto
2020-12-08 09:54:10 -08:00
Mouad Debbar
a3ee6150e1
[web] Handle long text and ellipsis in rich text (#22873) 2020-12-07 13:28:14 -08:00
Yegor
ff87b1d767
copy the glibc fix to felt (#22878) 2020-12-04 13:25:39 -08:00
Yegor
47add1dc32
re-enable pointer events inside platform views (#22874) 2020-12-04 13:25:22 -08:00
Mouad Debbar
6a5971dac7
[web] Initial rich measurement implementation (#22779) 2020-12-03 16:33:03 -08:00
Yegor
c774bb257e
memoize the fallback SkPaint in paragraph (#22848) 2020-12-03 15:26:23 -08:00
Yegor
37738353cd
Make CkPicture resurrectable (#22807)
* Make CkPicture resurrectable

* disable goldens on Firefox

* add non-recording canvas test; fix Firefox test
2020-12-03 13:13:44 -08:00
nturgut
e71c6f4d7e
leaving only html tests (#22846) 2020-12-03 12:33:27 -08:00
Ferhat
e5f510f7d3
[web] Fix event transform between mousedown/up due to mouse move event (#22813) 2020-12-03 09:04:36 -08:00
Yegor
b63e911472
Better handle image codec instantiation failure (#22809) 2020-12-02 12:27:11 -08:00
Lasse R.H. Nielsen
105004dd2d
Stop using the List constructor. (#22793) 2020-12-02 11:53:01 -08:00
Yegor
644dd65a34
Temporarily reduce e2e test matrix to stop flaky web engine builds (#22824)
* reduce e2e test matrix

* add issue link
2020-12-02 11:10:54 -08:00
Greg Spencer
d2ad4419bb
Fix PlatformDispatcher.locale to return something meaningful when there are no locales. (#22608)
Returns an "undefined" locale (language code "und") from PlatformDispatcher.locale when no locales are defined.
2020-12-01 09:54:56 -08:00
Ferhat
3101dff34a
[web] Optimize Matrix4.identity (#22622) 2020-11-30 16:29:20 -08:00