diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-10-15 19:38:39 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-15 21:05:35 +0100 |
commit | e8d4236bbd4c0d78c35c212efd541cda6db72060 (patch) | |
tree | 0731d5e60fb605c2b21465b210c0808578ce8032 /Userland/Libraries/LibWeb/CSS | |
parent | df85832f3224ad9557f3b03cc00622dadd82abcb (diff) | |
download | serenity-e8d4236bbd4c0d78c35c212efd541cda6db72060.zip |
LibWeb: Use W3C urls for CSSOM spec links
https://www.w3.org/TR/cssom/ is the more permanent home of the CSSOM
specification's latest version, and is up to date with the draft spec.
Also, https://drafts.csswg.org/ has been down multiple times recently
which made looking things up a pain.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSRule.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSRuleList.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp | 14 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleSheetList.cpp | 2 |
9 files changed, 20 insertions, 20 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp index 004bb96e26..2c0485f14b 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp @@ -19,7 +19,7 @@ CSSImportRule::~CSSImportRule() { } -// https://drafts.csswg.org/cssom/#serialize-a-css-rule +// https://www.w3.org/TR/cssom/#serialize-a-css-rule String CSSImportRule::serialized() const { StringBuilder builder; diff --git a/Userland/Libraries/LibWeb/CSS/CSSRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSRule.cpp index 4665aa5950..707cd21f7e 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSRule.cpp @@ -12,14 +12,14 @@ CSSRule::~CSSRule() { } -// https://drafts.csswg.org/cssom/#dom-cssrule-csstext +// https://www.w3.org/TR/cssom/#dom-cssrule-csstext String CSSRule::css_text() const { // The cssText attribute must return a serialization of the CSS rule. return serialized(); } -// https://drafts.csswg.org/cssom/#dom-cssrule-csstext +// https://www.w3.org/TR/cssom/#dom-cssrule-csstext void CSSRule::set_css_text(StringView) { // On setting the cssText attribute must do nothing. diff --git a/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp index f1fd30a58b..497fce9154 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp @@ -29,7 +29,7 @@ bool CSSRuleList::is_supported_property_index(u32 index) const return index < m_rules.size(); } -// https://drafts.csswg.org/cssom/#insert-a-css-rule +// https://www.w3.org/TR/cssom/#insert-a-css-rule DOM::ExceptionOr<unsigned> CSSRuleList::insert_a_css_rule(NonnullRefPtr<CSSRule> rule, u32 index) { // 1. Set length to the number of items in list. @@ -54,7 +54,7 @@ DOM::ExceptionOr<unsigned> CSSRuleList::insert_a_css_rule(NonnullRefPtr<CSSRule> return index; } -// https://drafts.csswg.org/cssom/#remove-a-css-rule +// https://www.w3.org/TR/cssom/#remove-a-css-rule DOM::ExceptionOr<void> CSSRuleList::remove_a_css_rule(u32 index) { // 1. Set length to the number of items in list. diff --git a/Userland/Libraries/LibWeb/CSS/CSSRuleList.h b/Userland/Libraries/LibWeb/CSS/CSSRuleList.h index 81e773fea2..293a5b8780 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSRuleList.h +++ b/Userland/Libraries/LibWeb/CSS/CSSRuleList.h @@ -16,7 +16,7 @@ namespace Web::CSS { -// https://drafts.csswg.org/cssom/#the-cssrulelist-interface +// https://www.w3.org/TR/cssom/#the-cssrulelist-interface class CSSRuleList : public RefCounted<CSSRuleList> , public Bindings::Wrappable { diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp index 0c0baddd1d..01c2a9a37d 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp @@ -124,7 +124,7 @@ void CSSStyleDeclaration::set_css_text(StringView) TODO(); } -// https://drafts.csswg.org/cssom/#serialize-a-css-declaration +// https://www.w3.org/TR/cssom/#serialize-a-css-declaration static String serialize_a_css_declaration(CSS::PropertyID property, String value, bool important) { StringBuilder builder; @@ -150,7 +150,7 @@ static String serialize_a_css_declaration(CSS::PropertyID property, String value return builder.to_string(); } -// https://drafts.csswg.org/cssom/#serialize-a-css-declaration-block +// https://www.w3.org/TR/cssom/#serialize-a-css-declaration-block String PropertyOwningCSSStyleDeclaration::serialized() const { // 1. Let list be an empty array. diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp index d13324949c..936c0b46a2 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp @@ -19,7 +19,7 @@ CSSStyleRule::~CSSStyleRule() { } -// https://drafts.csswg.org/cssom/#dom-cssstylerule-style +// https://www.w3.org/TR/cssom/#dom-cssstylerule-style CSSStyleDeclaration* CSSStyleRule::style() { return m_declaration; @@ -89,7 +89,7 @@ static StringView to_string(Selector::SimpleSelector::PseudoClass::Type pseudo_c static String serialize_a_group_of_selectors(NonnullRefPtrVector<Selector> const&); -// https://drafts.csswg.org/cssom/#serialize-a-simple-selector +// https://www.w3.org/TR/cssom/#serialize-a-simple-selector static String serialize_a_simple_selector(Selector::SimpleSelector const& simple_selector) { StringBuilder builder; @@ -213,7 +213,7 @@ static String serialize_a_simple_selector(Selector::SimpleSelector const& simple return builder.to_string(); } -// https://drafts.csswg.org/cssom/#serialize-a-selector +// https://www.w3.org/TR/cssom/#serialize-a-selector static String serialize_a_selector(Selector const& selector) { StringBuilder builder; @@ -270,7 +270,7 @@ static String serialize_a_selector(Selector const& selector) return builder.to_string(); } -// https://drafts.csswg.org/cssom/#serialize-a-group-of-selectors +// https://www.w3.org/TR/cssom/#serialize-a-group-of-selectors static String serialize_a_group_of_selectors(NonnullRefPtrVector<Selector> const& selectors) { // To serialize a group of selectors serialize each selector in the group of selectors and then serialize a comma-separated list of these serializations. @@ -280,7 +280,7 @@ static String serialize_a_group_of_selectors(NonnullRefPtrVector<Selector> const return builder.to_string(); } -// https://drafts.csswg.org/cssom/#serialize-a-css-rule +// https://www.w3.org/TR/cssom/#serialize-a-css-rule String CSSStyleRule::serialized() const { StringBuilder builder; @@ -324,14 +324,14 @@ String CSSStyleRule::serialized() const TODO(); } -// https://drafts.csswg.org/cssom/#dom-cssstylerule-selectortext +// https://www.w3.org/TR/cssom/#dom-cssstylerule-selectortext String CSSStyleRule::selector_text() const { // The selectorText attribute, on getting, must return the result of serializing the associated group of selectors. return serialized(); } -// https://drafts.csswg.org/cssom/#dom-cssstylerule-selectortext +// https://www.w3.org/TR/cssom/#dom-cssstylerule-selectortext void CSSStyleRule::set_selector_text(StringView selector_text) { // 1. Run the parse a group of selectors algorithm on the given value. diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp index 10f1b04d5d..3766dae026 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp @@ -19,7 +19,7 @@ CSSStyleSheet::~CSSStyleSheet() { } -// https://drafts.csswg.org/cssom/#dom-cssstylesheet-insertrule +// https://www.w3.org/TR/cssom/#dom-cssstylesheet-insertrule DOM::ExceptionOr<unsigned> CSSStyleSheet::insert_rule(StringView rule, unsigned index) { // FIXME: 1. If the origin-clean flag is unset, throw a SecurityError exception. @@ -39,7 +39,7 @@ DOM::ExceptionOr<unsigned> CSSStyleSheet::insert_rule(StringView rule, unsigned return m_rules->insert_a_css_rule(parsed_rule.release_nonnull(), index); } -// https://drafts.csswg.org/cssom/#dom-cssstylesheet-deleterule +// https://www.w3.org/TR/cssom/#dom-cssstylesheet-deleterule DOM::ExceptionOr<void> CSSStyleSheet::delete_rule(unsigned index) { // FIXME: 1. If the origin-clean flag is unset, throw a SecurityError exception. @@ -50,7 +50,7 @@ DOM::ExceptionOr<void> CSSStyleSheet::delete_rule(unsigned index) return m_rules->remove_a_css_rule(index); } -// https://drafts.csswg.org/cssom/#dom-cssstylesheet-removerule +// https://www.w3.org/TR/cssom/#dom-cssstylesheet-removerule DOM::ExceptionOr<void> CSSStyleSheet::remove_rule(unsigned index) { // The removeRule(index) method must run the same steps as deleteRule(). diff --git a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp index 3d3a70fe20..ebed0d90aa 100644 --- a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp +++ b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp @@ -737,7 +737,7 @@ bool ResolvedCSSStyleDeclaration::set_property(PropertyID, StringView) String ResolvedCSSStyleDeclaration::serialized() const { - // https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-csstext + // https://www.w3.org/TR/cssom/#dom-cssstyledeclaration-csstext // If the computed flag is set, then return the empty string. // NOTE: ResolvedCSSStyleDeclaration is something you would only get from window.getComputedStyle(), diff --git a/Userland/Libraries/LibWeb/CSS/StyleSheetList.cpp b/Userland/Libraries/LibWeb/CSS/StyleSheetList.cpp index cf074746c9..3b309bc97f 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleSheetList.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleSheetList.cpp @@ -24,7 +24,7 @@ StyleSheetList::StyleSheetList(DOM::Document& document) { } -// https://drafts.csswg.org/cssom/#ref-for-dfn-supported-property-indices%E2%91%A1 +// https://www.w3.org/TR/cssom/#ref-for-dfn-supported-property-indices%E2%91%A1 bool StyleSheetList::is_supported_property_index(u32 index) const { // The object’s supported property indices are the numbers in the range zero to one less than the number of CSS style sheets represented by the collection. |