Commit Graph

21030 Commits

Author SHA1 Message Date
ColdPaleLight
ca35fae4bd Remove obsolete 'PlatformView::size_' member variable (flutter/engine#30812) 2022-01-12 16:35:09 -08:00
skia-flutter-autoroll
2c8c6b49dc Roll Skia from 00f71133a81e to db1d93f3b43d (3 revisions) (flutter/engine#30828) 2022-01-12 16:10:06 -08:00
skia-flutter-autoroll
3d8f5f1215 Roll Dart SDK from 1330b0206fe0 to d4e388e04060 (1 revision) (flutter/engine#30825) 2022-01-12 15:25:10 -08:00
Tong Mu
400ee783e3 [Win32, Keyboard] Migrate FlutterWindowWin32 keyboard tests to keyboard_win32_unittests (flutter/engine#30808)
* Until AltLeft

* Alt right

* Meta keys

* Remove tests

* Format
2022-01-12 15:10:23 -08:00
skia-flutter-autoroll
4f8fbb365f Roll Skia from 4ec5259b90ee to 00f71133a81e (1 revision) (flutter/engine#30824) 2022-01-12 14:50:10 -08:00
skia-flutter-autoroll
d5d1e98079 Roll Fuchsia Mac SDK from 9JvU5CtfX... to pDYU86u_Y... (flutter/engine#30823) 2022-01-12 14:25:03 -08:00
skia-flutter-autoroll
e01e1f5b1b Roll Skia from 04e74196b022 to 4ec5259b90ee (3 revisions) (flutter/engine#30820) 2022-01-12 13:30:10 -08:00
skia-flutter-autoroll
01507b6c74 Roll Skia from 44c00ae64a4e to 04e74196b022 (1 revision) (flutter/engine#30819) 2022-01-12 12:10:09 -08:00
skia-flutter-autoroll
602b1b2519 Roll Dart SDK from 099f7f57767c to 1330b0206fe0 (7 revisions) (flutter/engine#30816) 2022-01-12 10:55:08 -08:00
skia-flutter-autoroll
e1f4788fac Roll Skia from 704007f5edb1 to 44c00ae64a4e (2 revisions) (flutter/engine#30815) 2022-01-12 10:50:10 -08:00
ColdPaleLight
fdcc6befe9 Use the correct Settings in Engine::Spawn (flutter/engine#30741)
* Use the correct Settings in Engine::Spawn

* Add unit tests
2022-01-12 10:31:28 -08:00
Chris Bracken
9bca9234dc Win32: Fix Korean text input (flutter/engine#30805)
Fixes an issue with Korean IMEs wherein a text input state update may be
sent to the framework that misleads the framework into assuming that IME
composing has ended.

When inputting Korean text, characters are built up keystroke by
keystroke until the point that either:
* the user presses space/enter to terminate composing and commit the
  character, or;
* the user presses a key such that the character currently being
  composed cannot be modified further, and the IME determines that the
  user has begun composing the next character.

The following is an example sequence of events for the latter case:

1. User presses ㅂ. GCS_COMPSTR event received with ㅂ. Embedder sends
   state update to framework.
2. User presses ㅏ. GCS_COMPSTR event received with 바. Embedder sends
   state update to framework.
3. User presses ㄴ. GCS_COMPSTR event received with 반. Embedder sends
   state update to framework.
4. User presses ㅏ. At this point, the current character being composed
   (반) cannot be modified in a meaningful way, and the IME determines
   that the user is typing 바 followed by 나. GCS_RESULTSTR event
   received with 바, immediately followed by GCS_COMPSTR event with 나.

In step 4, we previously sent two events to the framework, one
immediately after the other:
* GCS_RESULTSTR triggers the text input model to commit the current
  composing region to the string under edit. This causes the composing
  region to collapse to an empty range.
* GCS_COMPSTR triggers the text input model to insert the new composing
  character and set the composing region to that character.

Conceptually, this is an atomic operation. The fourth keystroke causes
the 반 character to be broken into two (바 and ㄴ) and the latter to be
modified to 나. From the user's point of view, as well as from the IME's
point of view, the user has NOT stopped composing, and the composing
region has simply moved on to the next character.

Flutter has no concept of whether the user is composing or not other
that whether a non-empty composing region exists. As such, sending a
state update after the GCS_RESULTSTR event misleads the framework into
believing that composing has ended. This triggers a serious bug:

Text fields with input formatters applied do not perform input
formatting updates while composing is active; instead they wait until
composing has ended to apply any formatting. The previous behaviour
would thus trigger input formatters to be applied each time the user
input caused a new character to be input. This has the add-on negative
effect that once formatting has been applied, it sends an update back to
the embedder so that the native OS text input state can be updated.
However, since the GCS_RESULTSTR event is _immediately_ followed by a
GCS_COMPSTR, the state has changed in the meantime, and the embedder is
left processing an update (the intermediate state sent after the
GCS_RESULTSTR) which is now out of date (i.e. missing the new state from
the GCS_COMPSTR event).

Since GCS_RESULTR events are always immediately followed by a subsequent
GCS_COMPSTR (in the case where composing continues) or a
WM_IME_ENDCOMPOSITION (in the case where composing is finished), and
because the event handlers for both of those send updated state to the
framework, this change eliminates sending the (intermediate) state in
response to GCS_COMPSTR events.

Issue: https://github.com/flutter/flutter/issues/96209 (full fix)
Issue: https://github.com/flutter/flutter/issues/88645 (partial fix)
2022-01-12 10:00:58 -08:00
gaaclarke
1724b4f192 Reland: iOS Background Platform Channels (#29665) (flutter/engine#30697)
* iOS Background Platform Channels (#29665)

* added test that passes before this change, and fails after it

* started supporting backwards compatible usage of setting handlers
2022-01-12 09:57:29 -08:00
skia-flutter-autoroll
27b439ff47 Roll Skia from 479b02bf2df5 to 704007f5edb1 (1 revision) (flutter/engine#30814) 2022-01-12 09:30:10 -08:00
skia-flutter-autoroll
4f5959bee4 Roll Skia from 0e845dc8b05c to 479b02bf2df5 (1 revision) (flutter/engine#30813) 2022-01-12 08:05:12 -08:00
Matej Knopp
59414a9cd2 Only provide frame damage to rasterizer if partial repaint is enabled (flutter/engine#30704) 2022-01-12 15:19:01 +01:00
skia-flutter-autoroll
a38742c3c9 Roll Skia from b410a6b5ba5e to 0e845dc8b05c (1 revision) (flutter/engine#30811) 2022-01-11 23:35:11 -08:00
skia-flutter-autoroll
d984c52b18 Roll Fuchsia Mac SDK from LxyiyZWks... to 9JvU5CtfX... (flutter/engine#30810) 2022-01-11 22:40:09 -08:00
skia-flutter-autoroll
48f5530920 Roll Skia from 30fdea3d8fd5 to b410a6b5ba5e (1 revision) (flutter/engine#30809) 2022-01-11 22:15:04 -08:00
b-luk
12675e3121 Add 'keyCode' field to eventData map created from html keyboard events. (flutter/engine#30801) 2022-01-11 12:35:10 -08:00
skia-flutter-autoroll
4049453604 Roll Skia from 345587df72ae to 30fdea3d8fd5 (2 revisions) (flutter/engine#30802) 2022-01-11 11:35:11 -08:00
Chris Yang
a50ebf3955 Variable Refresh Rate Display (flutter/engine#30223) 2022-01-11 10:55:10 -08:00
ColdPaleLight
06addee8ac Remove unused setPersistentIsolateData function (flutter/engine#30795) 2022-01-11 10:25:10 -08:00
skia-flutter-autoroll
17aaf64c09 Roll Skia from 41e994f735d9 to 345587df72ae (3 revisions) (flutter/engine#30800) 2022-01-11 10:15:11 -08:00
skia-flutter-autoroll
3f6cd27248 Roll Dart SDK from 3061b1d4c117 to 099f7f57767c (5 revisions) (flutter/engine#30797) 2022-01-11 09:40:10 -08:00
skia-flutter-autoroll
b4fe9844e6 Roll Fuchsia Mac SDK from 9rr72kcgt... to LxyiyZWks... (flutter/engine#30796) 2022-01-11 09:35:11 -08:00
ColdPaleLight
975d330db0 Implemented library uri support for FlutterFragmentActivities (flutter/engine#30790) 2022-01-11 09:33:17 -08:00
Alexander Biggs
d526518d59 [fuchsia] Bump buildroot/ to fix Fuchsia SDK roll (flutter/engine#30794) 2022-01-11 09:30:08 -08:00
Zachary Anderson
f4b1557fa1 Revert "Roll Fuchsia Linux SDK from DS-3oCidC... to 3-zk7OPWY... (#30792)" (flutter/engine#30798)
This reverts commit a1172c33dc.
2022-01-11 08:46:34 -08:00
skia-flutter-autoroll
a3b6e5ac7f Roll Skia from 7a14f783bda3 to 41e994f735d9 (2 revisions) (flutter/engine#30793) 2022-01-11 08:35:11 -08:00
skia-flutter-autoroll
a1172c33dc Roll Fuchsia Linux SDK from DS-3oCidC... to 3-zk7OPWY... (flutter/engine#30792) 2022-01-11 08:15:11 -08:00
skia-flutter-autoroll
826fc4815d Roll Skia from a6364728f638 to 7a14f783bda3 (1 revision) (flutter/engine#30789) 2022-01-11 06:25:11 -08:00
skia-flutter-autoroll
510c410db7 Roll Skia from 92d21e22434e to a6364728f638 (1 revision) (flutter/engine#30785) 2022-01-10 23:50:11 -08:00
skia-flutter-autoroll
68962ec0db Roll Skia from 8a85ab0d96a1 to 92d21e22434e (1 revision) (flutter/engine#30784) 2022-01-10 22:30:06 -08:00
skia-flutter-autoroll
1c133ee24c Roll Fuchsia Mac SDK from dqmZSiV7Q... to 9rr72kcgt... (flutter/engine#30781) 2022-01-10 20:05:02 -08:00
skia-flutter-autoroll
89fd3461cb Roll Dart SDK from a6b70ecf9e48 to 3061b1d4c117 (5 revisions) (flutter/engine#30782)
https://dart.googlesource.com/sdk.git/+log/a6b70ecf9e48..3061b1d4c117

2022-01-06 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.16.0-154.0.dev
2022-01-05 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.16.0-153.0.dev
2022-01-04 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.16.0-152.0.dev
2022-01-04 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.16.0-151.0.dev
2022-01-04 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.16.0-150.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 file a bug in Flutter Engine: https://github.com/flutter/flutter/issues/new/choose

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/main/autoroll/README.md
2022-01-10 19:57:35 -08:00
skia-flutter-autoroll
b379c567e6 Roll Skia from 55b4dc3f7a1c to 8a85ab0d96a1 (1 revision) (flutter/engine#30777) 2022-01-10 16:25:07 -08:00
skia-flutter-autoroll
655854df2b Roll Dart SDK from f59531cc2973 to a6b70ecf9e48 (5 revisions) (flutter/engine#30776) 2022-01-10 15:25:09 -08:00
skia-flutter-autoroll
112322f345 Roll Skia from 3e1354a592bc to 55b4dc3f7a1c (1 revision) (flutter/engine#30773) 2022-01-10 14:40:09 -08:00
gaaclarke
379651ad4f Implemented library uri support for FlutterFragments and FlutterActivities (flutter/engine#30726)
* Implemented library uri support for FlutterFragments and FlutterActivities.

* added docstrings

* emmanuel feedback
2022-01-10 14:21:21 -08:00
skia-flutter-autoroll
c8c6c21b5b Roll Skia from 0056f3f006de to 3e1354a592bc (3 revisions) (flutter/engine#30771) 2022-01-10 13:20:10 -08:00
eggfly
ea4b23242b [android] Remove the FlutterView casting, add a @NonNull and fix code style (flutter/engine#30734) 2022-01-10 12:50:10 -08:00
Emmanuel Garcia
73aac59a40 Add missing dependencies to the background image app (flutter/engine#30769) 2022-01-10 12:30:09 -08:00
Emmanuel Garcia
d81c472076 Remove glitch when displaying platform views (flutter/engine#30724) 2022-01-10 11:25:06 -08:00
Mouad Debbar
f56d074001 [web] Remove EngineParagraph and ParagraphGeometricStyle (flutter/engine#30766) 2022-01-10 10:45:11 -08:00
Chase Latta
0f99fadcf2 Allow additional expose_dirs in flutter_runner (flutter/engine#30749)
Users can add an expose_dirs entry to the program field in a
component's cml file to optionally expose extra directories
from their out/ directory.

BUG: fxbug.dev/89690
2022-01-10 10:44:21 -08:00
skia-flutter-autoroll
41e0c394ee Roll Skia from dd575bc0f1f5 to 0056f3f006de (2 revisions) (flutter/engine#30765) 2022-01-10 10:30:12 -08:00
skia-flutter-autoroll
eb4106c4a5 Roll Skia from 5dee0a27e0d2 to dd575bc0f1f5 (3 revisions) (flutter/engine#30763) 2022-01-10 09:10:11 -08:00
skia-flutter-autoroll
4c67f38d49 Roll Fuchsia Mac SDK from kNTHPjiPP... to dqmZSiV7Q... (flutter/engine#30761) 2022-01-10 07:00:02 -08:00
skia-flutter-autoroll
5599737492 Roll Skia from 20b049df6d5e to 5dee0a27e0d2 (1 revision) (flutter/engine#30759) 2022-01-09 23:35:03 -08:00