/* * Copyright (c) 2025, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace Web::CSS { // https://drafts.css-houdini.org/css-typed-om-1/#cssskewx class CSSSkewX final : public CSSTransformComponent { WEB_PLATFORM_OBJECT(CSSSkewX, CSSTransformComponent); GC_DECLARE_ALLOCATOR(CSSSkewX); public: [[nodiscard]] static GC::Ref create(JS::Realm&, GC::Ref ax); static WebIDL::ExceptionOr> construct_impl(JS::Realm&, GC::Ref ax); virtual ~CSSSkewX() override; virtual WebIDL::ExceptionOr to_string() const override; virtual WebIDL::ExceptionOr> to_matrix() const override; GC::Ref ax() const { return m_ax; } WebIDL::ExceptionOr set_ax(GC::Ref value); virtual void set_is_2d(bool value) override; virtual WebIDL::ExceptionOr> create_style_value(PropertyNameAndID const&) const override; private: explicit CSSSkewX(JS::Realm&, GC::Ref ax); virtual void initialize(JS::Realm&) override; virtual void visit_edges(Visitor&) override; GC::Ref m_ax; }; }