mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb: Rename CSS::StyleProperties => CSS::ComputedProperties
Now that StyleProperties is only used to hold computed properties, let's name it ComputedProperties.
This commit is contained in:
committed by
Andreas Kling
parent
ed7f4664c2
commit
c1cad8fa0e
@@ -4,8 +4,8 @@
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/CSS/ComputedProperties.h>
|
||||
#include <LibWeb/CSS/StyleInvalidation.h>
|
||||
#include <LibWeb/CSS/StyleProperties.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
@@ -45,8 +45,8 @@ RequiredInvalidationAfterStyleChange compute_property_invalidation(CSS::Property
|
||||
// OPTIMIZATION: An element creates a stacking context when its opacity changes from 1 to less than 1
|
||||
// and stops to create one when opacity returns to 1. So stacking context tree rebuild is
|
||||
// not required for opacity changes within the range below 1.
|
||||
auto old_value_opacity = CSS::StyleProperties::resolve_opacity_value(*old_value);
|
||||
auto new_value_opacity = CSS::StyleProperties::resolve_opacity_value(*new_value);
|
||||
auto old_value_opacity = CSS::ComputedProperties::resolve_opacity_value(*old_value);
|
||||
auto new_value_opacity = CSS::ComputedProperties::resolve_opacity_value(*new_value);
|
||||
if (old_value_opacity != new_value_opacity && (old_value_opacity == 1 || new_value_opacity == 1)) {
|
||||
invalidation.rebuild_stacking_context_tree = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user