mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 13:00:29 +00:00
LibWeb: Add CSSConditionRule wrapper
This commit is contained in:
parent
cfe5d63a1e
commit
1951873a5d
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/1951873a5d Pull-request: https://github.com/SerenityOS/serenity/pull/13774
5 changed files with 12 additions and 3 deletions
|
@ -15,6 +15,8 @@
|
|||
#include <LibWeb/Bindings/AbstractRangeConstructor.h>
|
||||
#include <LibWeb/Bindings/AbstractRangePrototype.h>
|
||||
#include <LibWeb/Bindings/AudioConstructor.h>
|
||||
#include <LibWeb/Bindings/CSSConditionRuleConstructor.h>
|
||||
#include <LibWeb/Bindings/CSSConditionRulePrototype.h>
|
||||
#include <LibWeb/Bindings/CSSFontFaceRuleConstructor.h>
|
||||
#include <LibWeb/Bindings/CSSFontFaceRulePrototype.h>
|
||||
#include <LibWeb/Bindings/CSSGroupingRuleConstructor.h>
|
||||
|
@ -358,7 +360,7 @@
|
|||
ADD_WINDOW_OBJECT_INTERFACE(AbortController) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(AbortSignal) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(AbstractRange) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(Crypto) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(CSSConditionRule) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(CSSFontFaceRule) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(CSSGroupingRule) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(CSSRule) \
|
||||
|
@ -371,6 +373,7 @@
|
|||
ADD_WINDOW_OBJECT_INTERFACE(CharacterData) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(CloseEvent) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(Comment) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(Crypto) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(CustomEvent) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(DocumentFragment) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(Document) \
|
||||
|
|
|
@ -451,6 +451,7 @@ endfunction()
|
|||
|
||||
libweb_js_wrapper(Crypto/Crypto)
|
||||
libweb_js_wrapper(Crypto/SubtleCrypto)
|
||||
libweb_js_wrapper(CSS/CSSConditionRule)
|
||||
libweb_js_wrapper(CSS/CSSFontFaceRule)
|
||||
libweb_js_wrapper(CSS/CSSGroupingRule)
|
||||
libweb_js_wrapper(CSS/CSSRule)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
|
||||
* Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -17,7 +17,9 @@ class CSSConditionRule : public CSSGroupingRule {
|
|||
AK_MAKE_NONMOVABLE(CSSConditionRule);
|
||||
|
||||
public:
|
||||
~CSSConditionRule() = default;
|
||||
using WrapperType = Bindings::CSSConditionRuleWrapper;
|
||||
|
||||
virtual ~CSSConditionRule() = default;
|
||||
|
||||
virtual String condition_text() const = 0;
|
||||
virtual void set_condition_text(String) = 0;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <CSS/CSSGroupingRule.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
interface CSSConditionRule : CSSGroupingRule {
|
||||
attribute CSSOMString conditionText;
|
||||
};
|
||||
|
|
|
@ -35,6 +35,7 @@ class BorderStyleValue;
|
|||
class CalculatedStyleValue;
|
||||
class ColorStyleValue;
|
||||
class ContentStyleValue;
|
||||
class CSSConditionRule;
|
||||
class CSSGroupingRule;
|
||||
class CSSImportRule;
|
||||
class CSSFontFaceRule;
|
||||
|
@ -407,6 +408,7 @@ class CharacterDataWrapper;
|
|||
class CloseEventWrapper;
|
||||
class CommentWrapper;
|
||||
class CryptoWrapper;
|
||||
class CSSConditionRuleWrapper;
|
||||
class CSSFontFaceRuleWrapper;
|
||||
class CSSGroupingRuleWrapper;
|
||||
class CSSRuleListWrapper;
|
||||
|
|
Loading…
Reference in a new issue