mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibWeb: Support named CSS properties on CSSStyleDeclaration wrapper
Use the new CustomGet/CustomPut wrapper mechansim to intercept gets and puts on CSSStyleDeclaration objects. This allows content to get and set individual CSS properties from JavaScript. :^)
This commit is contained in:
parent
ab23ef92b6
commit
4559faf8d8
4 changed files with 82 additions and 0 deletions
|
@ -58,6 +58,8 @@ public:
|
|||
String item(size_t index) const;
|
||||
|
||||
private:
|
||||
friend class Bindings::CSSStyleDeclarationWrapper;
|
||||
|
||||
explicit CSSStyleDeclaration(Vector<StyleProperty>&&);
|
||||
|
||||
Vector<StyleProperty> m_properties;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue