1
Fork 0
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:
Andreas Kling 2021-09-11 00:33:30 +02:00
parent 1484980f8f
commit d69133e4ac
4 changed files with 33 additions and 0 deletions

View file

@ -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;