renovate[bot]
32c65e6460
fix(deps): update rust dependencies
2023-11-13 09:10:26 +01:00
TÖRÖK Attila
11c5a68452
avm2: nit: Fix typo: explict_namespace -> explicit_namespace
...
Spotted by @Lord-McSweeney.
2023-11-12 14:58:32 -08:00
TÖRÖK Attila
660cdd9477
core: nit: Fixed a typo and a double space in comments.
2023-11-12 14:58:32 -08:00
Aaron Hill
1501a858f6
avm2: Improve E4XNode::matches_name
...
Avmplus constructs a full `QName`, and uses the normal
Multiname matching logic. This would be a large refactor,
so I've just modified the existing method to properly
handle multiple namespaces.
I've also included a closely related fix - we should only treat
a multiname with the literal local name "@foo" as an attribute
when the namespace is the empty public namespace. We were incorrectly
reparsing multinames that contained multiple namespaces.
2023-11-12 17:38:56 -05:00
Tom Schuster
451e4bad10
amv2: Simplify XmlObject get_enumerant_name
2023-11-12 22:03:52 +01:00
Nathan Adams
424821724f
desktop: Show ruffle logo in about dialog
2023-11-12 21:42:02 +01:00
Lord-McSweeney
576c7e1b14
avm2: Add `AccessibilityImplementation.accDoDefaultAction`
2023-11-12 06:52:51 -08:00
Aaron Hill
de4d58630a
avm2: Add stub for Graphics uvt parameter
2023-11-12 15:19:47 +01:00
Aaron Hill
c360d45729
avm2: Use 'has_own_property' to check for prop in 'resolve_definition'
...
If Actionscript explicitly sets the property to 'undefined', we
should still succeed.
2023-11-12 00:38:35 +01:00
Aaron Hill
f04496d1f3
chore: Update ahash and self_cell
...
Both of these had yanked versions, and self_cell had a security advisory
2023-11-12 00:15:51 +01:00
Lord-McSweeney
3cc9915076
avm2: TLF EditTexts should not be selectable
2023-11-11 06:53:18 -08:00
Lord-McSweeney
fdb2a06ad8
avm2: Fix TLF text getting cut off vertically
2023-11-11 06:53:18 -08:00
Lord-McSweeney
1bb2422595
avm2: Correctness fixes to AMF serialization ( #13537 )
...
Fixes some cases where `amf::serialize_value` returns `None`
---------
Co-authored-by: Lord-McSweeney <Lord-McSweeney@github.com>
2023-11-10 17:59:26 -08:00
Lord-McSweeney
172b76d01f
avm2: `DataEvent` fixes
...
- `DataEvent.data` should delegate to the superclass's `TextEvent.text`
- `DataEvent.clone` implementation was wrong
2023-11-10 15:09:28 -08:00
Aaron Hill
b056e12f4b
avm2: Re-use same AMFValue for the same Object ptr
...
This preserves object identity across a serialization
round-trip. Unfortunately, we don't currently implement this
correctly in flash_lso, so I've added a stub message.
Once flash_lso is fixed, this code will start working. For now,
it just allows us to detect (via the stub) if this is actually
used by an SWF.
2023-11-10 17:52:47 -05:00
sleepycatcoding
e8ccbf4e2c
avm2: Support enumeration for XML objects
...
Previously, iterating the XML object would iterate the prototype. This broke filtering expressions on XML objects, which should work.
2023-11-10 22:50:19 +01:00
Crowdin Bot
949b294bdf
chore: Update translations from Crowdin
2023-11-10 22:30:29 +01:00
Nathan Adams
f03b6307a8
core: Don't invalidate when setting filters to the same value
2023-11-10 22:24:45 +01:00
Nathan Adams
eb72cfb498
tests: Removed the need for test framework to depend on libtest_mimic
2023-11-10 22:02:18 +01:00
Nathan Adams
2b450af8d5
tests: Test framework doesn't need walkdir
2023-11-10 22:02:18 +01:00
Nathan Adams
7b7785e56d
tests: Allow multiple renderers to handle a single test
2023-11-10 22:02:18 +01:00
Nathan Adams
8697a313ac
tests: Move rendering interface into its own trait
2023-11-10 22:02:18 +01:00
Nathan Adams
86939e0e82
tests: Move TestUiBackend to backends/ui.rs
2023-11-10 22:02:18 +01:00
Nathan Adams
bce0608e1f
tests: Move all wgpu code out of test framework, make it abstract over any/no renderer, and make wgpu option if imgtests isn't enabled
2023-11-10 22:02:18 +01:00
Nathan Adams
c36f4cfe95
tests: Move PrettyString out of lib
2023-11-10 22:02:18 +01:00
Nathan Adams
8a85a24213
tests: Move TestLogBackend to backends/log.rs
2023-11-10 22:02:18 +01:00
Nathan Adams
6a413e28f7
tests: Move TestAudioBackend to backends/audio.rs
2023-11-10 22:02:18 +01:00
Nathan Adams
d1713010d2
tests: Move TestNavigatorBackend to backends/navigator.rs
2023-11-10 22:02:18 +01:00
Nathan Adams
2a2a717a06
tests: Appease clippy by implementing Default for some backends
2023-11-10 22:02:18 +01:00
Nathan Adams
673d52f013
tests: Move test framework into its own crate
2023-11-10 22:02:18 +01:00
Lord-McSweeney
2f5166790c
chore: Update flash-lso
2023-11-10 18:26:02 +01:00
Lord-McSweeney
d51cfff03d
chore: Remove leftover `println!`
2023-11-09 22:38:09 -05:00
Aaron Hill
c821d0564e
avm2: Use class aliases to serialize Vector type
...
This allows us to round-trip `Vector.<CustomType>` when
`CustomType` has an alias registered.
2023-11-09 22:01:59 -05:00
Aaron Hill
7110be920c
Suport uploading ATFTextureData::CompressedRawAlpha
...
Fortunately, this is very simple - we can just take
the DXT5 data and upload it directly to the wgpu texture.
2023-11-10 02:00:40 +01:00
Aaron Hill
2cb1efca8c
avm2: Improve AVM2 button construction handling
...
An Avm2 button appears to run a 'nested frame' during construction -
the same type of 'nested frame' performed by a goto. This will
run framescripts for all objects in the display hierarchy (including
orphans), resulting in an unusual child->parent framescript execution
order that DeathVsMonstars_decrypted.swf depends on.
2023-11-10 01:33:07 +01:00
renovate[bot]
d98a2750a0
chore(deps): update dependency chromedriver to v119 [security]
2023-11-10 00:14:34 +01:00
Daniel Jacobs
33e9227a50
tests: Bump tolerance of acid_color_0 to accommodate runner discrepancy
2023-11-09 16:31:17 -05:00
Daniel Jacobs
bee3984104
tests: Stop ignoring shumway's acid_color_0 test
2023-11-09 16:31:17 -05:00
Mike Welsh
5232854f00
avm1: Implement `MovieClip.scale9Grid`
2023-11-09 21:38:53 +01:00
Mike Welsh
aacc67b096
avm2: Implement `DisplayObject.scale9Grid`
2023-11-09 21:38:53 +01:00
Mike Welsh
cc6320a2dc
core: Add `DisplayObject::scaling_grid`
2023-11-09 21:38:53 +01:00
Richy McGregor
10ebc60a7d
core: Always redraw text in relayout
2023-11-09 21:20:10 +01:00
Richy McGregor
924e5ef632
core: Store EditText requested height and width ( close #13026 )
...
remove now unused EditTextStatic bounds
2023-11-09 21:20:10 +01:00
Richy McGregor
4c819b5fca
core: Make set_width & set_height call relayout
...
this requires an UpdateContext to be passed into both methods
2023-11-09 21:20:10 +01:00
Richy McGregor
dad0bbaac8
tests: Add tests for AutoSize text
2023-11-09 21:20:10 +01:00
Richy McGregor
fcc0d14188
core: Derive Debug for AutoSizeMode
2023-11-09 21:20:10 +01:00
Richy McGregor
dd083dd502
chore: Fix typos
2023-11-09 21:20:10 +01:00
Nathan Adams
6061186c0f
core: Fix formatting texts when they start with any amount of <br>s
2023-11-09 20:52:16 +01:00
Lord-McSweeney
249454885b
render: In `ShapeTessellator`, set `mask_index_count` to `None` in `flush_draw` before aborting
2023-11-09 20:22:25 +01:00
Nathan Adams
fe2ff4f242
chore: Update flash-lso
2023-11-09 20:01:52 +01:00