mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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>
This commit is contained in:
parent
3eee02869a
commit
5ba8054b69
4 changed files with 65 additions and 40 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue