Commit Graph

6030 Commits

Author SHA1 Message Date
Nathan Adams 5e1a30cf4a core: Fix avm2 button bounding box when using scroll rects 2023-08-13 14:14:34 +02:00
Nathan Adams 3117469e20 core: simple_content_to_string and xml_to_string are now infallible 2023-08-12 20:15:21 +02:00
Nathan Adams db7c6dec00 core: Implement XML.toString for comments and processing instructions 2023-08-12 20:15:21 +02:00
Nathan Adams af1cb4ebd9 core: xml_to_xml_string is now infallible 2023-08-12 20:15:21 +02:00
Nathan Adams 5d9c73cbb1 core: to_xml_string is now infallible 2023-08-12 20:15:21 +02:00
Nathan Adams 135d8c08bf avm2: to_xml_string_inner no longer needs to return a Result<(), Error> 2023-08-12 20:15:21 +02:00
Nathan Adams bf7c17737b avm2: Trim the start of processing instruction values 2023-08-12 20:15:21 +02:00
Nathan Adams 90b3fa4c63 avm2: Implement to_xml_string_inner for procesing instructions 2023-08-12 20:15:21 +02:00
Nathan Adams 247d61675c avm2: Parse name and value out of XML Processing Instructions 2023-08-12 20:15:21 +02:00
Nathan Adams 8e23c7807e avm2: Implement XMLList.processingInstructions() 2023-08-12 20:15:21 +02:00
Nathan Adams 80981e80e6 avm2: Implement XML.processingInstructions() 2023-08-12 20:15:21 +02:00
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