From c07484fcb605a9ab0a3f9fba4cb4ddd24d89cb87 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Mon, 18 Mar 2024 14:52:40 +0100 Subject: Update Stylo to 2023-09-01 (#31609) * Update Stylo to 2023-09-01 * Fixup for https://phabricator.services.mozilla.com/D184929 * Fixup for https://phabricator.services.mozilla.com/D184526 * Fixup for https://phabricator.services.mozilla.com/D184525 * Fixup for https://phabricator.services.mozilla.com/D185154 * Fixup for https://phabricator.services.mozilla.com/D184685 * Fixup for https://phabricator.services.mozilla.com/D185916 * Fixup for https://phabricator.services.mozilla.com/D185492 * Fixup for https://phabricator.services.mozilla.com/D186626 * Update test expectations --- components/script/dom/htmlhrelement.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/script/dom/htmlhrelement.rs') diff --git a/components/script/dom/htmlhrelement.rs b/components/script/dom/htmlhrelement.rs index f28a592000b..1a63747aa57 100644 --- a/components/script/dom/htmlhrelement.rs +++ b/components/script/dom/htmlhrelement.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -use cssparser::RGBA; +use cssparser::RgbaLegacy; use dom_struct::dom_struct; use html5ever::{local_name, namespace_url, ns, LocalName, Prefix}; use js::rust::HandleObject; @@ -70,12 +70,12 @@ impl HTMLHRElementMethods for HTMLHRElement { } pub trait HTMLHRLayoutHelpers { - fn get_color(self) -> Option; + fn get_color(self) -> Option; fn get_width(self) -> LengthOrPercentageOrAuto; } impl HTMLHRLayoutHelpers for LayoutDom<'_, HTMLHRElement> { - fn get_color(self) -> Option { + fn get_color(self) -> Option { self.upcast::() .get_attr_for_layout(&ns!(), &local_name!("color")) .and_then(AttrValue::as_color) -- cgit v1.2.3