blob: ea7aaf69d2a13f04feca4aac57a36a0d64380c9b [file]
/*
* Copyright (C) 2000 Lars Knoll ([email protected])
* (C) 2000 Antti Koivisto ([email protected])
* (C) 2000 Dirk Mueller ([email protected])
* Copyright (C) 2003-2017 Apple Inc. All rights reserved.
* Copyright (C) 2025 Samuel Weinig <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#pragma once
#include <wtf/Forward.h>
namespace WebCore {
class GraphicsContext;
class LayoutRect;
class LayoutSize;
class RenderElement;
class RenderStyle;
enum class CompositeOperator : uint8_t;
struct ImagePaintingOptions;
namespace Style {
struct BorderImage;
struct MaskBorder;
}
class NinePieceImagePainter {
public:
static void paint(const Style::BorderImage&, GraphicsContext&, const RenderElement*, const RenderStyle&, const LayoutRect& destination, const LayoutSize& source, float deviceScaleFactor, ImagePaintingOptions);
static void paint(const Style::MaskBorder&, GraphicsContext&, const RenderElement*, const RenderStyle&, const LayoutRect& destination, const LayoutSize& source, float deviceScaleFactor, ImagePaintingOptions);
};
} // namespace WebCore