Skip to content

Commit

Permalink
Remove enums from ColorInterpolationMethod.h in favor of the serializer
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264599

Reviewed by Tim Nguyen.

259829@main added the serializer for the enums removed in this PR but
they were never removed from the header.

* Source/WebCore/platform/graphics/ColorInterpolationMethod.h:

Canonical link: https://commits.webkit.org/270570@main
  • Loading branch information
mikhailramalho authored and nt1m committed Nov 10, 2023
1 parent 0532f1c commit a4d1a5b
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions Source/WebCore/platform/graphics/ColorInterpolationMethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "ColorTypes.h"
#include <optional>
#include <variant>
#include <wtf/EnumTraits.h>
#include <wtf/Hasher.h>

namespace WTF {
Expand Down Expand Up @@ -153,33 +152,3 @@ WTF::TextStream& operator<<(WTF::TextStream&, HueInterpolationMethod);
WTF::TextStream& operator<<(WTF::TextStream&, const ColorInterpolationMethod&);

}

namespace WTF {

template<> struct EnumTraits<WebCore::HueInterpolationMethod> {
using values = EnumValues<
WebCore::HueInterpolationMethod,
WebCore::HueInterpolationMethod::Shorter,
WebCore::HueInterpolationMethod::Longer,
WebCore::HueInterpolationMethod::Increasing,
WebCore::HueInterpolationMethod::Decreasing
>;
};

template<> struct EnumTraits<WebCore::ColorInterpolationColorSpace> {
using values = EnumValues<
WebCore::ColorInterpolationColorSpace,
WebCore::ColorInterpolationColorSpace::HSL,
WebCore::ColorInterpolationColorSpace::HWB,
WebCore::ColorInterpolationColorSpace::LCH,
WebCore::ColorInterpolationColorSpace::Lab,
WebCore::ColorInterpolationColorSpace::OKLCH,
WebCore::ColorInterpolationColorSpace::OKLab,
WebCore::ColorInterpolationColorSpace::SRGB,
WebCore::ColorInterpolationColorSpace::SRGBLinear,
WebCore::ColorInterpolationColorSpace::XYZD50,
WebCore::ColorInterpolationColorSpace::XYZD65
>;
};

}

0 comments on commit a4d1a5b

Please sign in to comment.