14539 Commits

Author SHA1 Message Date
skia-flutter-autoroll
cfecd4a5cf Roll Dart SDK from fc82eeed7df3 to 8be6a08153cc (1 revision) (flutter/engine#22002)
https://dart.googlesource.com/sdk.git/+log/fc82eeed7df3..8be6a08153cc

2020-10-20 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.11.0-238.0.dev

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-sdk-flutter-engine
Please CC dart-vm-team@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md
2020-10-20 12:16:45 -07:00
Greg Spencer
22f99901e4 Revert "Reland: Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (#21979)" (flutter/engine#22004)
This reverts commit 410db6115268fe6d7561adf68d0fb04adf314c43 because it causes some failures in web tests.
2020-10-20 11:42:01 -07:00
skia-flutter-autoroll
73c6189c55 Roll Skia from 51dc28505fb9 to 1c823674d957 (8 revisions) (flutter/engine#21995) 2020-10-20 10:22:01 -07:00
Wu Zhong
8c77ec7238 [iOS] Fixes leaks of presses key message (flutter/engine#21987)
Related PR: #20972
2020-10-20 10:15:44 -07:00
Greg Spencer
410db61152 Reland: Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (flutter/engine#21979)
This re-lands #21163, which was reverted in #21513

Now that flutter/flutter#67359 has landed, this change will no longer cause spaces (and other shortcuts) to be ignored in text fields if there is no action associated with the intent, even if there is a shortcut key mapping to an intent.

Here's the original PR description:

This switches from using dispatchKeyEvent to using dispatchKeyEventPreIme so that keys can be intercepted before they reach the IME and be handled by the framework.

It also now intercepts key events sent to InputConnection.sendKeyEvent, as some IMEs do (e.g. the Hacker's Keyboard), and sends the to Flutter before sending them to the IME (which it now only does if they are not handled by the framework).

This fixes the problem where pressing TAB on a hardware keyboard sends the tab to both the text field and to the focus traversal system.

Note that we still can't intercept all keystrokes given to a soft keyboard, only those which the soft keyboard decides to send to InputConnection.sendKeyEvent.
2020-10-20 10:14:31 -07:00
Jonah Williams
97b83448f6 [null-safety] fix soundness of Paragraph._addPlaceholder (flutter/engine#21994) 2020-10-20 09:57:59 -07:00
skia-flutter-autoroll
7b9356f615 Roll Dart SDK from 902538ea56d5 to fc82eeed7df3 (1 revision) (flutter/engine#21981) 2020-10-20 09:52:02 -07:00
skia-flutter-autoroll
50c3a4ee2f Roll Skia from 4964300530d3 to 51dc28505fb9 (5 revisions) (flutter/engine#21993) 2020-10-20 09:02:03 -07:00
skia-flutter-autoroll
ea4df4465d Roll Skia from a25c0619b5ef to 4964300530d3 (2 revisions) (flutter/engine#21990) 2020-10-20 07:37:02 -07:00
skia-flutter-autoroll
cac364e4f7 Roll Skia from ac1ded033136 to a25c0619b5ef (2 revisions) (flutter/engine#21989) 2020-10-20 06:12:02 -07:00
skia-flutter-autoroll
01a0c5e72e Roll Fuchsia Linux SDK from dcMRY8S12... to lPMs_KwnU... (flutter/engine#21988) 2020-10-20 05:57:02 -07:00
Damian Wrobel
16f0aff1a2 Fix linking issue (missing wayland-client library) (flutter/engine#21408)
As fl_renderer_wayland.cc uses directly some of the wayland-client
related functions it should also add this library as a dependency.
2020-10-20 05:47:40 -07:00
Clement Skau
559463b492 Enable lazy-async-stacks by-default in all modes (Take 4) (flutter/engine#21802) 2020-10-20 10:31:15 +02:00
Zachary Anderson
287d19398b Revert "[web] Fix image gap due to svg element without position attribute (#21939)" (flutter/engine#21986)
This reverts commit 13441fa711439808a4d9b4472714364f902de355.
2020-10-19 23:54:07 -07:00
Jonah Williams
3800b018d9 [null-safety] fix Scene.toImage declaration (flutter/engine#21983) 2020-10-19 22:52:19 -07:00
skia-flutter-autoroll
b76ca878fc Roll Skia from 27f7fe32f49b to ac1ded033136 (15 revisions) (flutter/engine#21984) 2020-10-19 22:52:01 -07:00
Ferhat
13441fa711 [web] Fix image gap due to svg element without position attribute (flutter/engine#21939) 2020-10-19 22:15:06 -07:00
Ferhat
3e8771c0d8 [web] Implement sweep gradient (flutter/engine#21873) 2020-10-19 22:14:42 -07:00
skia-flutter-autoroll
881acb9d95 Roll Fuchsia Mac SDK from MR_bRfe8I... to pZ9FgVZTK... (flutter/engine#21982) 2020-10-19 21:47:02 -07:00
Chinmay Garde
927393d54b Fix native constructor of list of zircon handles and remove unused list factory specializations. (flutter/engine#21980) 2020-10-19 19:42:01 -07:00
Ferhat
12845a6dde [web] Fix 3d transforms for html backend (flutter/engine#21499)
* Workaround for canvas element lacking support for 3d setTransform

* update golden test

* Add webkit workaround

* Implement DOM rendering for perspective

* cleanup

* update goldens lock

* Add check for shader and filtermask for dom use

* Fix svg viewBox. Move zIndex check to bitmap canvas

* Fix null check warning

* Fix scene_builder zIndex=-1 test to force canvas usage

* Add blendmode handling for DOM mode

* Update maxdiff and golden locks

* Remove unused import

* Add drawcolor/drawpaint test. Fix bounds for drawColor/drawPaint

* update golden locks

* adjust drawColor for dpr

* Update test to use canvas

* Fix toDataUrl NNBD

* Update Picture.toImage to use canvas to obstain image data

* Remove write:true from golden calls

* Add fill-rule for _pathToSvgElement

* Update golden locks

* Fix sceneBuilder pushClip / add missing clipBehaviour

* Fix test now that clipping works correctly

* move overflow handling for tests into DOMClip.addOverflow

* Add clipRect to test to keep render inside bitmap canvas area

* Update compositing test, fix drawColor coordinates

* update golden locks

* Skip test for matchGolden infra fail

* update golden lock

* merge

* update maxdiff for text over canvas

* update golden diff

* update paint spread bounds maxdiff

* update paint spread maxDiff
2020-10-19 17:27:27 -07:00
skia-flutter-autoroll
0dfa5ed7f4 Roll Dart SDK from 5c59a47beda7 to 902538ea56d5 (2 revisions) (flutter/engine#21978) 2020-10-19 17:17:02 -07:00
skia-flutter-autoroll
46ee82fbca Roll Fuchsia Linux SDK from ZJHmp3INU... to dcMRY8S12... (flutter/engine#21976) 2020-10-19 16:37:02 -07:00
Jenn Magder
ebc513283f Revert "[ios] Refactor IOSSurface factory and unify surface creation (#21877)" (flutter/engine#21970) 2020-10-19 16:32:03 -07:00
Chris Bracken
939c3de58a Define SK_VULKAN for clang-tidy runs (flutter/engine#21927)
When linting flutter/vulkan/vulkan_window.cc, the call to
GrDirectContext::MakeVulkan is undefined when SK_VULKAN is not defined,
triggering a lint error.

Bug: https://github.com/flutter/flutter/issues/68331
2020-10-19 16:31:07 -07:00
Jason Simmons
546df582bb Forward font collection APIs to the SkParagraph font collection (flutter/engine#21734) 2020-10-19 16:27:03 -07:00
Chris Bracken
617f0096e3 Add multi-step input method support for Linux (flutter/engine#21897)
This implements the Gtk hooks required to support multi-step input
methods on Linux. This builds on the support for composing regions
(preedit region in Gtk terminology) added to TextInputModel in
https://github.com/flutter/engine/pull/21682.

Specifically, the following changes are included:

1. Add handler for TextInput.setMarkedTextRegion framework messages: On
any change to the EditableText in the framework, this message is sent
which provides an updated rect (in the local co-ordinates of the
EditableText) for the composing region. If not in composing mode, the
cursor rect is sent.

2. Add handler for TextInput.setEditableSizeAndTransform framework messages:
On any change to the RenderObject underlying the EditableText, an
updated size for the full EditableText widget, as well as an affine
transform matrix from local co-ordinates to Flutter root co-ordinates is
sent.

3. On either of the above messages, we use the transformed composing
rect to compute the cursor position in Gtk window co-ordinates and
inform Gtk, so that it can position any system IM composing window
correctly for on-the-spot composing, such as is used when inputting
Japanese text.

4. Adds handlers for preedit-start, preedit-changed, and preedit-end
signals from Gtk. These are passed on to the TextInputModel.

5. Updates the preedit-commit handler to commit the composing region to
the text or, if not composing, insert new text at the cursor.

6. Updates the handler for TextInput.setEditingState framework messages
to extract the composing range base and extent and pass these on to
TextInputModel.

7. Updates update_editing_state function to set composing base and
extent on text input state updates sent to the framework.
2020-10-19 16:25:56 -07:00
J-P Nurmi
3e2a675dfa FlTextInputPlugin: fix memory leaks (flutter/engine#21879)
This PR fixes a few small memory leaks in FlTextInputPlugin. All three cases
are creating temporary FlValue instances for lookups and comparison without
ever releasing them.
2020-10-19 16:23:10 -07:00
Jonah Williams
c796eb8294 [null-safety] fix types of layer code (flutter/engine#21959) 2020-10-19 16:22:40 -07:00
Jason Simmons
9af9295516 Fix the initialization of AndroidSurfaceFactoryImpl (flutter/engine#21977)
Fixes https://github.com/flutter/flutter/issues/68446
2020-10-19 16:22:36 -07:00
puelo
8ca4f647dd Added keyEvent support for iOS 13.4+ (flutter/engine#20972) 2020-10-19 16:22:02 -07:00
Jason Simmons
4e7a837cfa Specify the Noto Naskh Arabic font to get consistent results in tests using Arabic characters (flutter/engine#21974)
See https://github.com/flutter/flutter/issues/68493
2020-10-19 13:51:39 -07:00
gaaclarke
faa1ea2490 Temporarily disabled tests that were using latin and arabic characters (flutter/engine#21971)
while we fix them.
2020-10-19 11:51:34 -07:00
skia-flutter-autoroll
befaf27535 Roll Skia from be8004d2fb6c to 27f7fe32f49b (1 revision) (flutter/engine#21956) 2020-10-19 09:42:02 -07:00
skia-flutter-autoroll
4d8580319c Roll Fuchsia Mac SDK from 9mMCqUXkF... to MR_bRfe8I... (flutter/engine#21955) 2020-10-17 23:57:01 -07:00
Jason Simmons
a66f8a65ad Restore missing call to RuntimeDelegate.OnRootIsolateCreated (flutter/engine#21953)
Fixes https://github.com/flutter/flutter/issues/68411
2020-10-17 20:33:13 -07:00
skia-flutter-autoroll
9d9879f873 Roll Dart SDK from 675c7165c071 to 5c59a47beda7 (1 revision) (flutter/engine#21952) 2020-10-17 15:32:01 -07:00
Jonah Williams
7a4234a418 [null-safety] fix type declaration of Picutre._toImage (flutter/engine#21942)
Fixes flutter/flutter#68377

Should be a nullable string. Looks like --null-assertions does not cover the native binding code.
2020-10-17 11:02:19 -07:00
skia-flutter-autoroll
20e2a317a7 Roll Fuchsia Mac SDK from XZSNobQCT... to 9mMCqUXkF... (flutter/engine#21950) 2020-10-17 10:52:01 -07:00
skia-flutter-autoroll
8507988c2a Roll Dart SDK from 42a0bf548ea3 to 675c7165c071 (1 revision) (flutter/engine#21948) 2020-10-17 04:17:01 -07:00
Ferhat
519ad2a581 [web] Implement ClipOp.difference (flutter/engine#21901) 2020-10-17 00:09:41 -07:00
skia-flutter-autoroll
f823acb25f Roll Dart SDK from aaab579579be to 42a0bf548ea3 (1 revision) (flutter/engine#21946) 2020-10-16 23:47:01 -07:00
godofredoc
f5f38e9000 Collect logs in the background. (flutter/engine#21828)
* Collect logs in the background.

* Use fuchsia_ctl log_file option.

* Delete the correct file.

* Remove commented code.
2020-10-16 21:51:37 -07:00
skia-flutter-autoroll
e0de5a63e3 Roll Fuchsia Mac SDK from _FaRRt69Z... to XZSNobQCT... (flutter/engine#21944) 2020-10-16 21:47:03 -07:00
Chinmay Garde
2f755560eb Add FML_UNREACHABLE to declare points in code that should never be reached. (flutter/engine#21941)
A version of this macro is present in most code-bases. The use of this macro
must satisfy two requirements:

1: If reached, the process must be terminated in all runtime modes and at all
   optimization levels.
2: If the compiler requires a value to be returned from the function,
   encountering this macro should not make the compiler insist on a return value
  (since the process is about to die anyway).

We used to have a version of this macro that wasn't widely used and didn't
satisfy the two requirements. I have removed the same and another unused macro
in fml/logging.h

Fixes https://github.com/flutter/flutter/issues/68164.
2020-10-16 20:47:43 -07:00
skia-flutter-autoroll
1ecd92f13d Roll Dart SDK from b58cfe5ab24e to aaab579579be (1 revision) (flutter/engine#21938) 2020-10-16 19:17:01 -07:00
Jason Simmons
341f3036a6 Roll the process_runner package used by the formatter script (flutter/engine#21937) 2020-10-16 18:39:25 -07:00
skia-flutter-autoroll
5e3a5dd580 Roll Skia from f60a76e2ac01 to be8004d2fb6c (1 revision) (flutter/engine#21936) 2020-10-16 18:32:02 -07:00
Chris Bracken
7665dde319 Require that FLUTTER_NOLINT include issue link (flutter/engine#21922)
This adds enforcement to the linter that all FLUTTER_NOLINT comments be
of the form:

    // FLUTTER_NOLINT: https://github.com/flutter/flutter/issue/ID

Every linter opt-out should have an associated bug describing what issue
it works around so that others can work on eliminating it, or at least
understanding the rationale and whether it's still relevant.

This also reduces the likelihood of inadvertent copy-pasting into new
files either because the author fails to spot it when copying the
copyright block from another file, or assumes that it's necessary for
some subcomponent of the engine.

Bug: https://github.com/flutter/flutter/issues/68273
2020-10-16 17:46:42 -07:00
Chris Bracken
2a726cbb36 Eliminate unnecessary linter opt-outs (flutter/engine#21935)
Eliminates FLUTTER_NOLINT where they can be landed without triggering
lint failures.
2020-10-16 17:24:23 -07:00