LibWeb: Include PropertyID.h in fewer header files

This reduces the size of the recompile when PropertyID.h is modified
from ~1500 to ~125
This commit is contained in:
Callum Law
2025-10-25 02:11:58 +13:00
committed by Sam Atkins
parent 59a1184469
commit 5381146e85
Notes: github-actions[bot] 2025-10-27 14:52:17 +00:00
44 changed files with 67 additions and 19 deletions

View File

@@ -11,6 +11,7 @@
#include <LibWeb/CSS/CSSStyleDeclaration.h>
#include <LibWeb/CSS/CSSTransition.h>
#include <LibWeb/CSS/Interpolation.h>
#include <LibWeb/CSS/PropertyID.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/Element.h>
#include <LibWeb/HTML/Scripting/TemporaryExecutionContext.h>
@@ -27,6 +28,11 @@ GC::Ref<CSSTransition> CSSTransition::start_a_transition(DOM::AbstractElement ab
return realm.create<CSSTransition>(realm, abstract_element, property_id, transition_generation, delay, start_time, end_time, start_value, end_value, reversing_adjusted_start_value, reversing_shortening_factor);
}
StringView CSSTransition::transition_property() const
{
return string_from_property_id(m_transition_property);
}
Animations::AnimationClass CSSTransition::animation_class() const
{
return Animations::AnimationClass::CSSTransition;