Commit Graph

6069 Commits

Author SHA1 Message Date
Nathan Adams f4216aefc1 avm2: Implement XMLList.comments() 2023-08-12 20:15:21 +02:00
Nathan Adams d4b4554553 avm2: Implement XML.comments() 2023-08-12 20:15:21 +02:00
Nathan Adams 2330a45348 avm2: Implement XMLList.toJSON() 2023-08-12 20:15:21 +02:00
Nathan Adams c199316ad3 avm2: Implement XML.toJSON() 2023-08-12 20:15:21 +02:00
Nathan Adams 1f21f120d6 avm2: Implement XMLList.valueOf() 2023-08-12 20:15:21 +02:00
Nathan Adams c133e50469 avm2: Implement XML.valueOf() 2023-08-12 20:15:21 +02:00
Nathan Adams adda66723e core: Use filters to calculate render sizes of objects 2023-08-12 13:00:27 +02:00
Nathan Adams 1a4a808c23 render: Make Filter::calculate_dest_rect work in Twips 2023-08-12 13:00:27 +02:00
Nathan Adams da090f0bd7 render: Move filter size calculation from wgpu to render/swf 2023-08-12 13:00:27 +02:00
Nathan Adams d35b2b8b84 core: Inform Bitmaps to invalidate, if their backing BitmapDatas change 2023-08-12 11:56:18 +02:00
Nathan Adams f55147d7c3 core: Override render_bounds_with_transform in Avm2Button 2023-08-11 11:23:03 +02:00
Nathan Adams f7bc92366b core: Don't invalidate self when mask changes 2023-08-11 11:23:03 +02:00
Nathan Adams a9c5bdfbab core: Better handle scroll_rect and/or masks with cacheAsBitmap 2023-08-11 11:23:03 +02:00
nosamu 0b368f1223 core: Use root movie URL as base for relative NetStream URLs 2023-08-11 09:58:37 +02:00
Crowdin Bot 205ef09cc6 chore: Update translations from Crowdin 2023-08-08 23:49:31 +02:00
renovate[bot] a4b179e1e0 chore(deps): lock file maintenance rust dependencies 2023-08-08 23:19:16 +02:00
MrCheeze 68f8cd6149 avm2: Remove focus from an EditText when it unloads (close #12092) 2023-08-07 23:16:06 +02:00
Daniel Jacobs bb1f405a19 core: Reset preload_offset when loading new netstream 2023-08-07 14:31:33 -06:00
Daniel Jacobs dbb5e381f2 core/desktop/web: Play unsupported videos with browser 2023-08-07 14:31:33 -06:00
SuchAFuriousDeath 37085767f6
avm2: implement BitmapData.merge (#12593) 2023-08-06 22:14:10 +00:00
Nathan Adams 0381116934 avm2: Don't make the descendants op call a function to get descendants, just get it directly 2023-08-06 10:51:25 +02:00
Nathan Adams 42b4812601 avm2: Throw error when using descendants op (..) on anything that isn't XML, even if it has descendants property 2023-08-06 10:51:25 +02:00
michiel2005 690ce110d8
avm1: reference displayObjects parents if parent is a button (#12541) 2023-08-05 20:32:03 +00:00
Lord-McSweeney 2c90b1631b avm2: Implement context menu events 2023-08-05 22:06:10 +02:00
sleepycatcoding b98b0e88aa chore: fmt 2023-08-05 14:42:09 +02:00
sleepycatcoding f6da7258c5 avm1,avm2: Rename some functions to make them consistent between Sockets 2023-08-05 14:42:09 +02:00
sleepycatcoding 2468c71d02 core: Implement suggestion from review 2023-08-05 14:42:09 +02:00
sleepycatcoding aac1931569 avm1: Prevent panic when close is called in event handler
Also adds a test case for this.
2023-08-05 14:42:09 +02:00
sleepycatcoding 82c57a0d97 avm2: Clear tempBuf when closing connection 2023-08-05 14:42:09 +02:00
sleepycatcoding d8ae2ce6b9 avm1: Fix only one message arriving when multiple are sent in the same packet
Test case has been improved to cover this.
2023-08-05 14:42:09 +02:00
sleepycatcoding cec74242cf core: Socket subsystem fixes
Clears the read and write buffer of Socket before returning to ActionScript, this could potentially be problematic
when a SWF reuses the same Socket to connect.

Also remove the handle from Arena when server closes the connection, this fixes
connected still returning true after server disconnection.
2023-08-05 14:42:09 +02:00
sleepycatcoding d3e627fb5f core: Clear the read buffer when the connection is closed 2023-08-05 14:42:09 +02:00
sleepycatcoding 358d3e8ede chore: fmt 2023-08-05 14:42:09 +02:00
sleepycatcoding 8293a2db75 avm1: Write null byte when sending out a message 2023-08-05 14:42:09 +02:00
sleepycatcoding e4b7cc2afd avm1: Replace avm_warn! with tracing::warn! 2023-08-05 14:42:09 +02:00
sleepycatcoding 01801980f4 core: Rename some imports to make code more readable 2023-08-05 14:42:09 +02:00
sleepycatcoding 783527fbad chore: Fix clippy warning 2023-08-05 14:42:09 +02:00
sleepycatcoding 87b7af4370 avm1: Use movie domain when null is passed as host 2023-08-05 14:42:09 +02:00
sleepycatcoding 25b1ed7e9c avm1: Implement onData() 2023-08-05 14:42:09 +02:00
sleepycatcoding 2b18a5999b chore: fmt 2023-08-05 14:42:09 +02:00
sleepycatcoding 705042c1ee chore: Fix a warning 2023-08-05 14:42:09 +02:00
sleepycatcoding dccf254281 avm1: Implement some event handlers 2023-08-05 14:42:09 +02:00
sleepycatcoding 78a68f95ea avm1: Implement send() 2023-08-05 14:42:09 +02:00
sleepycatcoding b64c45f797 avm1: Implement connect() 2023-08-05 14:42:09 +02:00
sleepycatcoding 931c355779 avm1: Use Gc instead of GcCell 2023-08-05 14:42:09 +02:00
sleepycatcoding 7237295364 chore: fmt 2023-08-05 14:42:09 +02:00
sleepycatcoding cd92677b2a core: Add SocketKind and use it to separate XMLSocket and Socket 2023-08-05 14:42:09 +02:00
sleepycatcoding 662c7f986d avm1: Implement onData 2023-08-05 14:42:09 +02:00
sleepycatcoding 879750d3e1 avm1: Stub rest of XMLSocket methods 2023-08-05 14:42:09 +02:00
sleepycatcoding 13ce61a00a avm1: Implement close() 2023-08-05 14:42:09 +02:00
sleepycatcoding 9c92cf0c98 avm1: Implement timeout 2023-08-05 14:42:09 +02:00
sleepycatcoding 773168fe10 avm1: Create simple XMLSocket stub 2023-08-05 14:42:09 +02:00
sleepycatcoding c9c4efe574 avm2: Review remarks 2023-08-05 14:17:02 +02:00
sleepycatcoding e8bc47a569 avm2: Return correct error if Event.clone() returns null 2023-08-05 14:17:02 +02:00
sleepycatcoding 925ed2e82b avm2: Clone event if it has been dispatched before 2023-08-05 14:17:02 +02:00
Lord-McSweeney 76a7c69522 avm2: Use Error #2008 in some places in TextField 2023-08-05 13:42:16 +02:00
Lord-McSweeney 3fbde2076c avm2: Use Error #2004 for flash.crypto::generateRandomBytes 2023-08-05 13:42:16 +02:00
Lord-McSweeney fd04463476 avm2: Use make_error_2008 for set objectEncoding on ByteArray 2023-08-05 13:42:16 +02:00
Lord-McSweeney f753d840b6 avm2: Add errors #2024, #2150, and #3738 2023-08-05 13:42:16 +02:00
Lord-McSweeney 855825b6ac avm2: Create a make_error_1506 function and use it 2023-08-05 13:42:16 +02:00
Lord-McSweeney c39d006a78 avm2: Use correct error #2025 in various places in DisplayObjectContainer 2023-08-05 13:42:16 +02:00
Adrian Wielgosik f75b36a32a core: Remove lots of uses of derive(Collect) 2023-08-04 21:43:18 +02:00
Nathan Adams 5f200dc2a9 avm2: Use correct error in write ops when reading past bounds 2023-08-03 16:28:25 +02:00
Nathan Adams af46301020 avm2: Use correct error in Li ops when reading past bounds 2023-08-03 16:28:25 +02:00
Nathan Adams 3d76953574 avm2: Use correct error when accessing domain memory out of bounds 2023-08-03 16:28:25 +02:00
sleepycatcoding f5f5680e3a avm2: Fix an error message 2023-08-02 22:16:16 +02:00
sleepycatcoding 7d61f8f947 avm2: Wrap Socket instead of extending 2023-08-02 22:16:16 +02:00
sleepycatcoding 43ce490c0f chore: fmt 2023-08-02 22:16:16 +02:00
sleepycatcoding 3fd53b8ca1 avm2: Implement connect() special-case 2023-08-02 22:16:16 +02:00
sleepycatcoding 85db727f17 avm2: Implement XMLSocket 2023-08-02 22:16:16 +02:00
Nathan Adams ab27c8b4ee render: Calculate correct bounds for shapes containing curves 2023-08-02 18:43:33 +02:00
Nathan Adams 020dc34b59 avm2: Throw errors in theoretically unreachable scenario in XmlDocument 2023-08-02 15:55:08 +02:00
Nathan Adams 3834462abf avm2: Hook up XMLDocument.ignoreWhite 2023-08-02 15:55:08 +02:00
Nathan Adams 6f2420d983 avm2: Implement ignoreComments/ignoreProcessingInstructions/ignoreWhitespace 2023-08-02 15:55:08 +02:00
Nathan Adams da7ee01730 avm2: Implement XML.settings/XML.setSettings/XML.defaultSettings, and add appropriate properties to XML class 2023-08-02 15:55:08 +02:00
Nathan Adams 10e59067d0 avm2: Rewrote XMLDocument/XMLNode to be more correct 2023-08-02 15:55:08 +02:00
Lord-McSweeney 84e4215ece avm2+tests: Various Vector-related fixes; activate now-passing Vector tests 2023-08-02 15:26:53 +02:00
renovate[bot] 477ff400a7 chore(deps): lock file maintenance rust dependencies 2023-08-02 13:36:13 +02:00
TÖRÖK Attila 515df16a38 debug_ui: Indent non-expandable items in object- and display trees 2023-08-02 10:32:22 +02:00
relrelb 006393c581 chore: Appease nightly clippy 2023-08-01 22:44:00 +03:00
Aaron Hill 66eadc8f7c avm2: Implement Loader.uncaughtErrorEvents
This can just delegate to LoaderInfo
2023-07-31 21:29:02 -04:00
Adrian Wielgosik 2621dd78ee avm2: Vector doesn't support propertyIsEnumerable 2023-08-01 00:13:46 +02:00
Adrian Wielgosik b61e92ee12 avm2: Fix property_is_enumerable on arrays 2023-08-01 00:13:46 +02:00
Aaron Hill 1107851d15 core: Fix debug_ui mouse search on HiDPI display
We need to scale the mouse position that egui gives us
by the scale factor, in order to get in the format
expected by our inverse view matrix
2023-07-31 17:38:20 -04:00
sleepycatcoding 2ba3b90754 core: Redesign socket data passing
This allows to make socket tests more reliable
2023-07-31 22:32:03 +02:00
Abiel Deneke 6552b4e132 avm2: Implement `Matrix3D.prependScale` 2023-07-31 17:00:44 +02:00
TÖRÖK Attila a023ca605d core: Don't divide by zero in BitmapData::perlinNoise() if baseX or baseY is 0.0 2023-07-31 16:41:01 +02:00
Tom Schuster 8fa6a0d249 avm2: Make XMLList set_property_local (aka [[put]]) less error happy
This doesn't really enable any new functionality, but prevents throwing
Errors for things that are allowed in Flash/ECMA-357.
2023-07-30 11:41:11 +02:00
Tom Schuster f237aa1da2 avm2: Implement XMLNode.nodeValue 2023-07-30 11:14:00 +02:00
Aaron Hill 4406a70fc9 avm2: Enable Vector.<ObjectSubclass> serialization tests
This also fixes a minor bug (we should always deserialize
to a `Vector.<Object>`, not a `Vector.<*>`)
2023-07-29 15:30:24 -04:00
Adrian Wielgosik 86ba4fef9b avm2: Add void type 2023-07-29 19:57:44 +02:00
Nathan Adams f9be8be99e avm2: Make 'new Math()' and 'Math(value)' throw errors 2023-07-29 15:24:30 +02:00
Lord-McSweeney bcd96f5b40 avm2: Stub flash.text.engine:EastAsianJustifier 2023-07-29 10:48:30 +02:00
Lord-McSweeney 6a96a14098 avm2: Improve flash.text.engine stub 2023-07-29 10:48:30 +02:00
Adrian Wielgosik b68ac23cbb avm2: Remove redundant check for Vector<undefined> 2023-07-28 23:42:04 +02:00
Adrian Wielgosik 30d4026227 avm2: Expand comments 2023-07-28 23:42:04 +02:00
Adrian Wielgosik 2352c200e0 chore: clippy 2023-07-28 23:42:04 +02:00
Adrian Wielgosik 22d7ffdefc avm2: fix Vector null display 2023-07-28 23:42:04 +02:00
Adrian Wielgosik b8a5b9ede1 avm2: Refactor VectorStorage value_type to accurately reflect stored <T>. 2023-07-28 23:42:04 +02:00
Adrian Wielgosik 733e84957d avm2: Do not panic on Vector.<1> 2023-07-28 23:42:04 +02:00