diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-20 11:20:06 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-20 13:36:45 +0100 |
commit | 5d672717aa3f60fb24d3063eea72ccd35946ceaf (patch) | |
tree | 46738651aab19a919f75bb5107f4979317eec904 /Userland/Libraries/LibWeb/SVG/SVGTextContentElement.h | |
parent | e212514bbfa06b250e638f6821deb944b24ff0c7 (diff) | |
download | serenity-5d672717aa3f60fb24d3063eea72ccd35946ceaf.zip |
LibWeb: Add a barebones SVGTextContentElement with getNumberOfChars()
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG/SVGTextContentElement.h')
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGTextContentElement.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGTextContentElement.h b/Userland/Libraries/LibWeb/SVG/SVGTextContentElement.h new file mode 100644 index 0000000000..e80708bbf5 --- /dev/null +++ b/Userland/Libraries/LibWeb/SVG/SVGTextContentElement.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2022, Andreas Kling <kling@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <LibWeb/SVG/SVGGraphicsElement.h> + +namespace Web::SVG { + +// https://svgwg.org/svg2-draft/text.html#InterfaceSVGTextContentElement +class SVGTextContentElement : public SVGGraphicsElement { +public: + using WrapperType = Bindings::SVGTextContentElementWrapper; + + SVGTextContentElement(DOM::Document&, DOM::QualifiedName); + + int get_number_of_chars() const; +}; + +} |