/work/obj-fuzz/dist/include/mozilla/dom/HTMLTableCaptionElement.h
Line | Count | Source (jump to first uncovered line) |
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/. */ |
6 | | #ifndef mozilla_dom_HTMLTableCaptionElement_h |
7 | | #define mozilla_dom_HTMLTableCaptionElement_h |
8 | | |
9 | | #include "mozilla/Attributes.h" |
10 | | #include "nsGenericHTMLElement.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | | class HTMLTableCaptionElement final : public nsGenericHTMLElement |
16 | | { |
17 | | public: |
18 | | explicit HTMLTableCaptionElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo) |
19 | | : nsGenericHTMLElement(std::move(aNodeInfo)) |
20 | 0 | { |
21 | 0 | SetHasWeirdParserInsertionMode(); |
22 | 0 | } |
23 | | |
24 | | void GetAlign(DOMString& aAlign) |
25 | 0 | { |
26 | 0 | GetHTMLAttr(nsGkAtoms::align, aAlign); |
27 | 0 | } |
28 | | void SetAlign(const nsAString& aAlign, ErrorResult& aError) |
29 | 0 | { |
30 | 0 | SetHTMLAttr(nsGkAtoms::align, aAlign, aError); |
31 | 0 | } |
32 | | |
33 | | virtual bool ParseAttribute(int32_t aNamespaceID, |
34 | | nsAtom* aAttribute, |
35 | | const nsAString& aValue, |
36 | | nsIPrincipal* aMaybeScriptedPrincipal, |
37 | | nsAttrValue& aResult) override; |
38 | | virtual nsMapRuleToAttributesFunc GetAttributeMappingFunction() const override; |
39 | | NS_IMETHOD_(bool) IsAttributeMapped(const nsAtom* aAttribute) const override; |
40 | | |
41 | | virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override; |
42 | | |
43 | | protected: |
44 | | virtual ~HTMLTableCaptionElement(); |
45 | | |
46 | | virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override; |
47 | | |
48 | | private: |
49 | | static void MapAttributesIntoRule(const nsMappedAttributes* aAttributes, |
50 | | MappedDeclarations&); |
51 | | }; |
52 | | |
53 | | } // namespace dom |
54 | | } // namespace mozilla |
55 | | |
56 | | #endif /* mozilla_dom_HTMLTableCaptionElement_h */ |