1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

LibWeb: Move PercentageOr and subclasses into PercentageOr.{h,cpp}

This solves an awkward dependency cycle, where CalculatedStyleValue
needs the definition of Percentage, but including that would also pull
in PercentageOr, which in turn needs CalculatedStyleValue.

Many places that previously included StyleValue.h no longer need to. :^)
This commit is contained in:
Sam Atkins 2023-03-30 17:13:37 +01:00 committed by Andreas Kling
parent 16e3a86393
commit 0c14103025
26 changed files with 265 additions and 259 deletions

View file

@ -5,7 +5,6 @@
*/
#include <LibWeb/CSS/StyleProperties.h>
#include <LibWeb/CSS/StyleValue.h>
#include <LibWeb/CSS/StyleValues/ColorStyleValue.h>
#include <LibWeb/CSS/StyleValues/ImageStyleValue.h>
#include <LibWeb/DOM/Document.h>