mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
LibWeb: Rename StyleRule -> Rule
This name is what's used in the spec, and is a little less confusing.
This commit is contained in:
parent
cf24dc2e0c
commit
431a9938a8
8 changed files with 43 additions and 43 deletions
|
@ -7,13 +7,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibWeb/CSS/Parser/Declaration.h>
|
||||
#include <LibWeb/CSS/Parser/StyleRule.h>
|
||||
#include <LibWeb/CSS/Parser/Rule.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
class DeclarationOrAtRule {
|
||||
public:
|
||||
explicit DeclarationOrAtRule(RefPtr<StyleRule> at);
|
||||
explicit DeclarationOrAtRule(RefPtr<Rule> at);
|
||||
explicit DeclarationOrAtRule(Declaration declaration);
|
||||
~DeclarationOrAtRule();
|
||||
|
||||
|
@ -25,7 +25,7 @@ public:
|
|||
bool is_at_rule() const { return m_type == DeclarationType::At; }
|
||||
bool is_declaration() const { return m_type == DeclarationType::Declaration; }
|
||||
|
||||
StyleRule const& at_rule() const
|
||||
Rule const& at_rule() const
|
||||
{
|
||||
VERIFY(is_at_rule());
|
||||
return *m_at;
|
||||
|
@ -41,7 +41,7 @@ public:
|
|||
|
||||
private:
|
||||
DeclarationType m_type;
|
||||
RefPtr<StyleRule> m_at;
|
||||
RefPtr<Rule> m_at;
|
||||
Optional<Declaration> m_declaration;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue