1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +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

@ -72,6 +72,8 @@ public:
Event const* current_event() const { return m_current_event; }
void set_current_event(Event* event) { m_current_event = event; }
NonnullRefPtr<CSS::CSSStyleDeclaration> get_computed_style(DOM::Element&) const;
private:
explicit Window(Document&);