mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
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:
Notes:
github-actions[bot]
2025-10-27 14:52:17 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/5381146e850 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6576 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user