Bug 1936278 - Prevent search mode chiclet from being dismissed when clicking in page...
[gecko.git] / dom / svg / SVGTextElement.cpp
blobdc88d90814e33e421d8e9693b72b890dc2a525a5
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "mozilla/dom/SVGTextElement.h"
8 #include "mozilla/dom/SVGTextElementBinding.h"
10 NS_IMPL_NS_NEW_SVG_ELEMENT(Text)
12 namespace mozilla::dom {
14 JSObject* SVGTextElement::WrapNode(JSContext* aCx,
15 JS::Handle<JSObject*> aGivenProto) {
16 return SVGTextElement_Binding::Wrap(aCx, this, aGivenProto);
19 //----------------------------------------------------------------------
20 // Implementation
22 SVGTextElement::SVGTextElement(
23 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
24 : SVGTextElementBase(std::move(aNodeInfo)) {}
26 SVGElement::EnumAttributesInfo SVGTextElement::GetEnumInfo() {
27 return EnumAttributesInfo(mEnumAttributes, sEnumInfo, std::size(sEnumInfo));
30 SVGElement::LengthAttributesInfo SVGTextElement::GetLengthInfo() {
31 return LengthAttributesInfo(mLengthAttributes, sLengthInfo,
32 std::size(sLengthInfo));
35 //----------------------------------------------------------------------
36 // nsINode methods
38 NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGTextElement)
40 } // namespace mozilla::dom