mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
LibWeb: Add a CustomHasProperty trait to WrapperGenerator
We immediately use this in CSSStyleDeclaration to fix that "background" in element.style did not return true. This is the mechanism used in css3test.com for detecting support of features.
This commit is contained in:
parent
0b74cc4712
commit
e42eaa5d95
3 changed files with 14 additions and 1 deletions
|
@ -813,6 +813,12 @@ public:
|
|||
)~~~");
|
||||
}
|
||||
|
||||
if (interface.extended_attributes.contains("CustomHasProperty")) {
|
||||
generator.append(R"~~~(
|
||||
virtual bool internal_has_property(JS::PropertyName const&) const override;
|
||||
)~~~");
|
||||
}
|
||||
|
||||
if (interface.wrapper_base_class == "Wrapper") {
|
||||
generator.append(R"~~~(
|
||||
@fully_qualified_name@& impl() { return *m_impl; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue