diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-08 11:22:18 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-08 11:50:36 +0100 |
commit | a9830d9a5597741520538819b7605a74cd0ea46f (patch) | |
tree | f85dfc55c4e5114ce72c9fbfa1eda5d8dba3a8ec /Userland/Libraries/LibWeb/Forward.h | |
parent | 0d515dea5d318b56a39525129689e4c89e9f8bc6 (diff) | |
download | serenity-a9830d9a5597741520538819b7605a74cd0ea46f.zip |
LibWeb: Start exposing CSS style sheets to JavaScript :^)
This patch adds bindings for the following objects:
- StyleSheet
- StyleSheetList
- CSSStyleSheet
You can get to a document's style sheets via Document.styleSheets
and iterate through them using StyleSheetList's item() and length().
That's it in terms of functionality at this point, but still neat. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Forward.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Forward.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Forward.h b/Userland/Libraries/LibWeb/Forward.h index 20585682e8..5a90a41bb0 100644 --- a/Userland/Libraries/LibWeb/Forward.h +++ b/Userland/Libraries/LibWeb/Forward.h @@ -203,7 +203,7 @@ class XMLHttpRequestEventTarget; } namespace Web::Bindings { - +class CSSStyleSheetWrapper; class CanvasRenderingContext2DWrapper; class CharacterDataWrapper; class CommentWrapper; @@ -301,6 +301,8 @@ class SVGGeometryElementWrapper; class SVGGraphicsElementWrapper; class SVGPathElementWrapper; class SVGSVGElementWrapper; +class StyleSheetWrapper; +class StyleSheetListWrapper; class TextWrapper; class UIEventWrapper; class WindowObject; |