diff options
author | Gae24 <96017547+Gae24@users.noreply.github.com> | 2024-10-09 14:33:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-09 12:33:44 +0000 |
commit | 5ba8054b69e3f9867cecde89a18bf0f134d6f276 (patch) | |
tree | 42d933f7907b8dff5c4b4d4fd3922b4bf8784d08 /components/script/dom/bindings/mod.rs | |
parent | 3eee02869a8a9673a52d807c737e4c203d32b1b7 (diff) | |
download | servo-5ba8054b69e3f9867cecde89a18bf0f134d6f276.tar.gz servo-5ba8054b69e3f9867cecde89a18bf0f134d6f276.zip |
refactor `CGClassConstructHook` to use handwritten constructors (#33614)
* extract generated class constructor hook into handwritten functions
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* downcast to window only when it's actually used
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* simplify downcast
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* rename htmlconstructor to constructor, include call_default_constructor in it
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
---------
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Diffstat (limited to 'components/script/dom/bindings/mod.rs')
-rw-r--r-- | components/script/dom/bindings/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/mod.rs b/components/script/dom/bindings/mod.rs index 7d6d03d737a..69c327015b3 100644 --- a/components/script/dom/bindings/mod.rs +++ b/components/script/dom/bindings/mod.rs @@ -138,11 +138,11 @@ pub mod buffer_source; pub mod callback; pub mod cell; pub mod constant; +pub mod constructor; pub mod conversions; pub mod error; pub mod finalize; pub mod guard; -pub mod htmlconstructor; pub mod import; pub mod inheritance; pub mod interface; |