1689 Commits

Author SHA1 Message Date
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
Yegor
7ba7d74b5c
use the profile build of CanvasKit in --profile mode (#23592) 2021-01-13 12:02:12 -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
Jason Simmons
f1278d0e71
Link SkShaper/SkParagraph into the engine by default (#23626) 2021-01-12 15:49: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
Ferhat
2dee0d2f07
Convert mousewheel+Control events to pointerdata on non MacOS as well (#23597) 2021-01-11 15:11:23 -08:00
Chinmay Garde
cb2a81e1c2
During image decoding, avoid using smart pointers for DartWrappables that cross thread-boundaries. (#23503) 2021-01-08 20:54:02 -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
Michael Goderbauer
40a262b67c
Update outdated links (#23513) 2021-01-08 10:14:01 -08:00
Mouad Debbar
2bcca6c6cd
[web] Draw shadows for text in rich paragraphs (#23470) 2021-01-07 13:03:26 -08:00
Jason Simmons
83732f262c
Provide a runtime switch for selecting SkParagraph text layout (#23474) 2021-01-07 12:59:03 -08:00
Mouad Debbar
599a0728f9
[web] Placeholders for rich paragraphs (#23160) 2021-01-06 14:31:19 -08:00
Ferhat
8222475ece
[web] Reland - Switch web-render option default to auto (#23454) 2021-01-06 10:00:52 -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
Ferhat
e056a449e7
Revert "[web] Reland - Switch web-render option default to auto (#23313)" (#23321)
This reverts commit 9c7c83306f1c25e066c98761cac560ec252a7b02.
2020-12-28 16:27:10 -08:00
Ferhat
318ae78b0e
[web] Prevent recycling canvas twice due to paint queue (#23315) 2020-12-28 12:26:38 -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
Ferhat
9c7c83306f
[web] Reland - Switch web-render option default to auto (#23313) 2020-12-28 11:10:38 -08:00
Dan Field
892034dc6a
cache closures from hooks.dart (#23230) 2020-12-28 09:34:13 -08:00
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
Dan Field
5a2244c581
Reland path volatility tracker, disabling it if deterministic rendering is requested (#23226)
* Reland path volatility tracker (#23063)" (#23220)

This reverts commit fceef3aaa9d156e8ec3f4a079c142921882f70d8.

* allow disabling based on whether deterministic rendering is needed
2020-12-22 08:25:20 -08:00
Dan Field
fceef3aaa9
Revert "Reland path volatility tracker (#23063)" (#23220)
This reverts commit 205d2b8e188be518c313c9b537429b566d36fa35.
2020-12-21 13:53:18 -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
Siva
76310c4264
Add missing sdk constriant in pubspec.yaml files. (#23124)
* Add missing sdk constriants in pubspec.yaml files.

* Update tools/android_lint/pubspec.yaml

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2020-12-17 09:45:26 -08:00
Mouad Debbar
19950f576e
[web] Rich paragraph getBoxesForRange (#23098) 2020-12-16 18:09:48 -08:00
Chris Bracken
27ebbc4bf3
Rename PointerState.isDown as per style guide (#23120)
Renames from isDown to is_down in accordance with the C++ style guide.
2020-12-16 17:09:18 -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
Chris Bracken
69d7e8eb91
Correct button state on synthetic pointer events (#23111)
This corrects the button state emitted on synthetic pointer move and
hover events generated by the engine.

When an embedder notifies the engine of a pointer up or down event, and
the pointer's position has changed since the last move or hover event,
`PointerDataPacketConverter` generates a synthetic move or hover to
notify the framework of the change in position. In these cases, the
current event from the embedder contains the new button state *after*
the pointer up/down event, but the move/hover needs to be synthesized
such that it occurs *before* the pointer up/down, with the previous
button state.

This patch stores the button state after each pointer down, up, move, or
hover event such that it can be used by the next event if a synthetic
event must be issued.

The bug in the previous logic was revealed by the release of macOS 11
(Big Sur), which appears to issue move events between mouse down and
mouse up, which did not use to be the case.

This fixes https://github.com/flutter/flutter/issues/64961, which is the
desktop-specific tracking bug for the more general Big Sur mouse click
umbrella issue https://github.com/flutter/flutter/issues/71190.
2020-12-16 11:57:42 -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
Dan Field
205d2b8e18
Reland path volatility tracker (#23063)
* Revert "Revert "Set SkPath::setIsVolatile based on whether the path survives at least two frames (#22620)" (#23044)"

This reverts commit 4f914253bd7cd2a5cca3fd97213df37494e9bf37.

* Fix tracing
2020-12-14 17:21:55 -08:00