mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
LibWeb: Stub out a dummy window.getComputedStyle()
This just returns an empty CSSStyleDeclaration for now. The real thing needs to be a live object that provides a view onto the computed style of a given element. This is far from that, but it's something. :^)
This commit is contained in:
parent
1484980f8f
commit
d69133e4ac
4 changed files with 33 additions and 0 deletions
|
@ -84,6 +84,8 @@ private:
|
|||
JS_DECLARE_NATIVE_FUNCTION(atob);
|
||||
JS_DECLARE_NATIVE_FUNCTION(btoa);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(get_computed_style);
|
||||
|
||||
NonnullRefPtr<DOM::Window> m_impl;
|
||||
|
||||
HashMap<String, JS::Object*> m_prototypes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue