diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Screen.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp index 55f8631a87..e6a8e2f1e0 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp @@ -19,7 +19,7 @@ namespace Web::CSS { CSSRuleList* CSSRuleList::create(JS::Realm& realm, JS::MarkedVector<CSSRule*> const& rules) { - auto* rule_list = realm.heap().allocate<CSSRuleList>(realm, realm); + auto rule_list = realm.heap().allocate<CSSRuleList>(realm, realm); for (auto* rule : rules) rule_list->m_rules.append(*rule); return rule_list; diff --git a/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp b/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp index b6afd4f2c0..91b2d64c70 100644 --- a/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp +++ b/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp @@ -17,7 +17,7 @@ namespace Web::CSS { JS::NonnullGCPtr<MediaQueryList> MediaQueryList::create(DOM::Document& document, NonnullRefPtrVector<MediaQuery>&& media) { - return *document.heap().allocate<MediaQueryList>(document.realm(), document, move(media)); + return document.heap().allocate<MediaQueryList>(document.realm(), document, move(media)); } MediaQueryList::MediaQueryList(DOM::Document& document, NonnullRefPtrVector<MediaQuery>&& media) diff --git a/Userland/Libraries/LibWeb/CSS/Screen.cpp b/Userland/Libraries/LibWeb/CSS/Screen.cpp index b066b744c7..15762d036b 100644 --- a/Userland/Libraries/LibWeb/CSS/Screen.cpp +++ b/Userland/Libraries/LibWeb/CSS/Screen.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, Linus Groh <linusg@serenityos.org> + * Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -15,7 +15,7 @@ namespace Web::CSS { JS::NonnullGCPtr<Screen> Screen::create(HTML::Window& window) { - return *window.heap().allocate<Screen>(window.realm(), window); + return window.heap().allocate<Screen>(window.realm(), window); } Screen::Screen(HTML::Window& window) |