
These could fail to allocate the underlying storage needed to store the UTF-16 data. Propagate these errors.
25 lines
578 B
C++
25 lines
578 B
C++
/*
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/SVG/SVGGraphicsElement.h>
|
|
#include <LibWeb/WebIDL/ExceptionOr.h>
|
|
|
|
namespace Web::SVG {
|
|
|
|
// https://svgwg.org/svg2-draft/text.html#InterfaceSVGTextContentElement
|
|
class SVGTextContentElement : public SVGGraphicsElement {
|
|
WEB_PLATFORM_OBJECT(SVGTextContentElement, SVGGraphicsElement);
|
|
|
|
public:
|
|
WebIDL::ExceptionOr<int> get_number_of_chars() const;
|
|
|
|
protected:
|
|
SVGTextContentElement(DOM::Document&, DOM::QualifiedName);
|
|
};
|
|
|
|
}
|