mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Add an initial implementation of SVG text-anchor
This only handles very simple <text> elements, but this is enough (with the font-size changes) to improve the badges on the GitHub README a fair bit.
This commit is contained in:
parent
4cdb4de049
commit
30277f385c
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/MacDue
Commit: 30277f385c
Pull-request: https://github.com/SerenityOS/serenity/pull/20115
Reviewed-by: https://github.com/AtkinsSJ
10 changed files with 77 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/SVG/AttributeParser.h>
|
||||
#include <LibWeb/SVG/SVGGraphicsElement.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
|
@ -24,6 +25,8 @@ public:
|
|||
|
||||
Gfx::FloatPoint get_offset() const;
|
||||
|
||||
Optional<TextAnchor> text_anchor() const;
|
||||
|
||||
protected:
|
||||
SVGTextContentElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue