mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 15:40:28 +00:00
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Anti-aliasing is disabled if `shape-rendering` is set to `optimizeSpeed` or `crispEdges`.
33 lines
707 B
C++
33 lines
707 B
C++
/*
|
|
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Layout/SVGBox.h>
|
|
#include <LibWeb/Painting/PaintableBox.h>
|
|
|
|
namespace Web::Painting {
|
|
|
|
class SVGPaintable : public PaintableBox {
|
|
GC_CELL(SVGPaintable, PaintableBox);
|
|
|
|
public:
|
|
Layout::SVGBox const& layout_box() const;
|
|
|
|
protected:
|
|
virtual bool is_svg_paintable() const override { return true; }
|
|
|
|
SVGPaintable(Layout::SVGBox const&);
|
|
|
|
virtual CSSPixelRect compute_absolute_rect() const override;
|
|
|
|
ShouldAntiAlias should_anti_alias() const;
|
|
};
|
|
|
|
template<>
|
|
inline bool Paintable::fast_is<SVGPaintable>() const { return is_svg_paintable(); }
|
|
|
|
}
|