mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Update SVG <circle>
element to use geometry properties
With this the `<circle>` element now correctly parses percentage sizes, and resolves them relative to the viewport. The rest of the geometry elements are still left TODO.
This commit is contained in:
parent
344eb98b3c
commit
74b655d035
Notes:
sideshowbarker
2024-07-17 06:24:08 +09:00
Author: https://github.com/MacDue
Commit: 74b655d035
Pull-request: https://github.com/SerenityOS/serenity/pull/23455
Issue: https://github.com/SerenityOS/serenity/issues/23121
6 changed files with 71 additions and 35 deletions
|
@ -18,7 +18,7 @@ class SVGCircleElement final : public SVGGeometryElement {
|
|||
public:
|
||||
virtual ~SVGCircleElement() override = default;
|
||||
|
||||
virtual void attribute_changed(FlyString const& name, Optional<String> const& value) override;
|
||||
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
||||
|
||||
virtual Gfx::Path get_path(CSSPixelSize viewport_size) override;
|
||||
|
||||
|
@ -30,10 +30,6 @@ private:
|
|||
SVGCircleElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
Optional<float> m_center_x;
|
||||
Optional<float> m_center_y;
|
||||
Optional<float> m_radius;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue