2543 Commits

Author SHA1 Message Date
fzyzcjy
9599aff86d Update comments that seem to contradict the code and may confuse the reader (flutter/engine#36556) 2022-10-14 17:12:34 +00:00
Harry Terkelsen
9efa5369ac [canvaskit] Maintain a Surface dedicated to Picture.toImage (flutter/engine#36740) 2022-10-13 23:46:17 +00:00
Jason Simmons
39c1d6dfa6 Fix multiple issues affecting HooksTest.HooksUnitTests (flutter/engine#36741) 2022-10-13 21:14:31 +00:00
joshualitt
9aa237c6c6 [web] Remove explicit int types from dom.dart. (flutter/engine#36331) 2022-10-12 09:41:23 -07:00
chunhtai
c8e3e7e9bd Apply text affinity fix to html rendering (flutter/engine#36699) 2022-10-10 22:45:31 +00:00
Alex Wallen
3cd8b9eaa4 Deprecate single semantics tree assumption from platform dispatcher (flutter/engine#36675) 2022-10-10 18:41:16 +00:00
Harry Terkelsen
59066cc5e2 Roll http dependency to 13.5 (flutter/engine#36668) 2022-10-07 15:48:43 -07:00
Jason Simmons
f763f1b96f Convert a dart:ui Paint to a DisplayList DlPaint (flutter/engine#36629) 2022-10-07 17:29:49 +00:00
Michael Goderbauer
60aaff9c52 Fix kPointerDataFieldCount reference (flutter/engine#36644) 2022-10-06 21:52:04 +00:00
Bruno Leroux
ae0c741612 Fix editing delta is wrong when using delete key (flutter/engine#36616) 2022-10-06 12:39:17 +00:00
Chris Bracken
ad77065cad [macOS][iOS] Eliminate strip_bitcode action (flutter/engine#36627)
Eliminates the `strip_bitcode` GN rule defined in
//flutter/sky/tools/mac.gni and the related script at
//flutter/sky/tools/strip_bitcode.py.

As of Xcode 14, bitcode is deprecated, no longer enabled by default, and
generates a warning message if a project enables it. Bitcode support
will be removed entirely from a future version of Xcode.

The `strip_bitcode` rule had two purposes:
1. Copy the binary specified by its input parameter to the path
   specified by its output parameter.
2. Strip bitcode segments as it does so.

While we no longer require the second of these functions, we still use
the first to create a `gen_snapshot` binary suffixed with the target
architecture. This replaces `strip_bitcode` with the built-in gn `copy`
rule instead.

Issue: https://github.com/flutter/flutter/issues/107884
Issue: https://github.com/flutter/flutter/issues/112896
Issue: https://github.com/flutter/flutter/issues/101138
Issue: https://github.com/flutter/flutter/issues/103386
2022-10-05 16:26:35 -07:00
Jonah Williams
aadc2d3094 Add ImmutableBuffer.fromFilePath (flutter/engine#36623) 2022-10-05 22:18:03 +00:00
Harry Terkelsen
f69e7d0e99 [canvaskit] Allow Picture.readPixels when in CPU-only mode (flutter/engine#36545) 2022-10-04 15:36:18 -07:00
Jason Simmons
b0efa2b809 Avoid making an extra copy of PlatformMessageResponseDartPort data (flutter/engine#36595) 2022-10-04 20:25:02 +00:00
alanwutang11
9878e91474 Fix filter null exceptions (flutter/engine#36575) 2022-10-04 19:14:02 +00:00
Tomasz Gucio
890adfa05d Remove reduntant call to _getLineBoundary (flutter/engine#36473) 2022-10-04 02:35:23 +00:00
Tong Mu
03d23f0cf3 [Web, Keyboard] Implement FlutterHtmlKeyboardEvent.keyCode and defaultPrevented, and rename Keyboard to RawKeyboard (flutter/engine#34626) 2022-10-03 18:55:04 +00:00
Andre Lipke
5f656a0546 Add dark mode support to dart:ui diagrams (flutter/engine#36533)
* Add dark mode support to dart:ui diagrams

* Oopsie
2022-10-03 12:36:50 -04:00
Yegor
8c15987378 [web] fix HTML ColorFilter and ShaderMask layer lifecycle (flutter/engine#36517) 2022-10-01 00:47:21 +00:00
Mouad Debbar
10a7bfb644 [web] Fix 'felt test' watch mode (flutter/engine#36423) 2022-09-30 20:59:03 +00:00
Chris Bracken
f76273c029 Use strip_bitcode for create_arm_gen_snapshot (flutter/engine#36510)
This migrates the `create_arm_gen_snapshot` target used to create a
copy of gen_snapshot suffixed with its target CPU architecture using the
same `strip_bitcode` macro used for the equivalent target used for
desktop gen_snapshot.

In a followup patch, these will be merged to a single target. They
currently still have incompatible output paths.

Issue: https://github.com/flutter/flutter/issues/103386
Issue: https://github.com/flutter/flutter/issues/101138
Issue: https://github.com/flutter/flutter/issues/107884
2022-09-29 14:27:02 -07:00
Matej Knopp
7d898a85e4 Convert Safari and Firefox wheel delta to physical pixels. (flutter/engine#35428) 2022-09-29 20:04:08 +00:00
Chris Bracken
d6d0909b65 Generalise gen_snapshots.py to strip_bitcode.py (flutter/engine#36496)
The gen_snapshots.py tool is used to copy an input gen_snapshot to an
output path with an architecture-specific suffix. For example, to copy
gen_snapshot to gen_snapshot_arm64. Bitcode segments, if any, are
stripped.

This moves the input/output filename hardcoding into the BUILD.gn file
and generalises the logic to simply copy an input binary to an output
path with bitcode segments stripped. Since the tool is no longer
gen_snapshot specific, we rename it from gen_snapshots.py to
strip_bitcode.py.

This also renames the generalised `macos_gen_snapshots` rule to
`strip_bitcode`.

Since we're working on removing bitcode support from the engine, this
script will eventually serve no purpose other than to copy the input
binary to an output path, at which point this script, and the associated
`strip_bitcode` template in `//flutter/sky/tools/macos_tools.gni` can be
removed.

Along with the TODO, renaming the script and the rule help ensure we'll
spot this and remove it when bitcode support is removed from the engine.

Finally, this fixes a dependency issue in the target
//flutter/lib/snapshot:create_macos_gen_snapshots. Previously, it
dependended on ":generate_snapshot_bin", but in fact, the only file it
touches is gen_snapshot. This was built transitively as part of the
":generate_snapshot_bin" target, but is now depended on directly.

This is pre-factoring for merging the iOS and macOS gen_snapshot
creation build rules in `flutter/lib/snapshot/BUILD.gn`.

Issue: https://github.com/flutter/flutter/issues/103386
Issue: https://github.com/flutter/flutter/issues/101138
Issue: https://github.com/flutter/flutter/issues/107884
2022-09-29 10:48:56 -07:00
Oleg
6d76d00c33 Fixed visibility of embedded views in safari (google map, video, camera preview etc) (flutter/engine#35948) 2022-09-29 16:41:15 +00:00
alanwutang11
1dcdc91882 dont throw on null view embedder (flutter/engine#36479) 2022-09-29 01:07:04 +00:00
Harry Terkelsen
1a32fb8191 Fix bug in binary search for font.contains (flutter/engine#36426) 2022-09-28 16:35:56 -07:00
Chris Bracken
ae41d5b3f7 [macOS] Deduplicate gen_snapshot creation targets (flutter/engine#36455)
Cleans up the logic for building gen_snapshot for macOS hosts. Also adds
a bit more documentation to the snapshot-related build targets.

Previously:
* gen_snapshot targeting macOS (on both x64, and arm64) were generated
  via the `create_macos_gen_snapshots` target.
* gen_snapshot arm/arm64 builds (on a macOS host) were generated via the
  `create_arm_gen_snapshot` target. The reason why this covers only
  arm/arm64 is simply that those are the only platforms we generate
  iOS/Android AOT builds for. x64 iOS implies a simulator build, but we
  only support debug builds for the iOS simulator, which aren't AOT
  builds, and thus don't require gen_snapshot.

These two conditions overlap in the case of arm64 (but not x64) target
builds. This separates the two cases cleanly. A later patch will merge
the two cases to use a single tool.

Note that NEITHER of these two scenarios mentions builds for macOS hosts
targeting Fuchsia. That's because this target is never invoked during
Fuchsia target builds. See:
75d2baf5fe/BUILD.gn (L93-L95)

Issue: https://github.com/flutter/flutter/issues/103386
Issue: https://github.com/flutter/flutter/issues/101138
2022-09-27 16:08:09 -07:00
Callum Moffat
b92b9bdb6a Add discrete scale pointer signal (flutter/engine#36342) 2022-09-27 15:30:14 +00:00
Chris Bracken
32774c7671 Adds documentation for core snapshot targets (flutter/engine#36434)
Adds doc comments to lib/snapshot/BUILD.gn prior to refactoring.

Issue: https://github.com/flutter/flutter/issues/103386
Issue: https://github.com/flutter/flutter/issues/101138
2022-09-27 06:40:11 -07:00
gaaclarke
e41c775200 Removed instances of unnecessary values (flutter/engine#36221) 2022-09-26 21:28:04 +00:00
Alexander Markov
1dac15b35e Use vm_common set of core libraries in libraries.yaml files (flutter/engine#36414) 2022-09-26 13:04:13 -07:00
Zachary Anderson
d235ec4c44 Delete dead/obsolete spirv transpiler rules (flutter/engine#36422) 2022-09-26 12:56:27 -07:00
Michael Thomsen
0d5560eb6b Update pubspec.yaml (flutter/engine#36378) 2022-09-26 13:24:02 +02:00
Brandon DeRosier
17f163c1b9 Generate mipmaps for UI images (flutter/engine#36375) 2022-09-23 13:59:11 -07:00
Dan Field
63e8e223aa [Impeller] toImageSync for Impeller (flutter/engine#36365) 2022-09-23 20:31:03 +00:00
Jackson Gardner
9d1aaf1159 Felt should use arm64 dart sdk and arm64 Chromium when on arm Macs (flutter/engine#36336) 2022-09-23 20:09:14 +00:00
gaaclarke
b5f7f557ac Made sure to call the plugin registrant when registering a background isolate (flutter/engine#36383) 2022-09-23 18:36:09 +00:00
Harry Terkelsen
f70c0410dc Update font data (flutter/engine#36333) 2022-09-22 13:37:48 -07:00
Harry Terkelsen
7596ed17ed [canvaskit] Clone VideoFrame when cloning CkImage (flutter/engine#36299) 2022-09-22 11:00:02 -07:00
Zachary Anderson
16fbee37b3 Removes FragmentProgram.shader() (flutter/engine#35904) 2022-09-21 07:14:12 -07:00
gaaclarke
6b2a14d348 Isolate platform channels for desktop (flutter/engine#35893) 2022-09-20 23:56:04 +00:00
nbayati
826b0d0232 Fix the a11y scrolling issue (flutter/engine#35899)
* Fix the a11y scrolling issue

* Add scroll overflow dom element

* Add tests for scrollTop/scrollLeft

* Documentation and code clean-ups

* call recomputePositionAndSize() after neutralizing the scroll position

* Remove unnecessary imports
2022-09-19 21:15:34 -07:00
chunhtai
44595a130f Paragraph.GetWordBoundary respects text affinity (flutter/engine#36176) 2022-09-19 22:00:15 +00:00
Harry Terkelsen
83a2d5f9ba Warn if we have not built CanvasKit and requested --use-local-canvaskit (flutter/engine#36211) 2022-09-19 14:16:49 -07:00
Yegor
f72b62d672 [web] fix screen orientation lock bug (flutter/engine#36253) 2022-09-19 20:14:16 +00:00
Bruno Leroux
c38180340a Fix HTML renderer does not render non zeroed width borders (flutter/engine#36249) 2022-09-19 16:40:04 +00:00
Andre
6bfb1da0a7 Add more dart:ui diagrams (flutter/engine#36209) 2022-09-16 18:23:39 +00:00
Callum Moffat
0a5737e441 Properly throw Dart error from PluginUtilities.getCallbackHandle FFI (flutter/engine#36032) 2022-09-16 17:11:08 +00:00
joshualitt
88b1dab12c [web] Upstream some fixes for dart2wasm. (flutter/engine#36061) 2022-09-15 14:29:42 -07:00
Chris Bracken
e089b766fe [lint] Enforce kCamelCase for global constants (flutter/engine#36175) 2022-09-15 20:19:04 +00:00