Bug 1883888 [wpt PR 44943] - Name unhandledrejection event correctly, a=testonly
[gecko.git] / accessible / base / MathMLMarkupMap.h
bloba03dccb35812666cb5147113d36f8a33c93694fc
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=2:tabstop=2:
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 MARKUPMAP(math, New_HyperText, roles::MATHML_MATH)
10 MARKUPMAP(mi_, New_HyperText, roles::MATHML_IDENTIFIER)
12 MARKUPMAP(mn_, New_HyperText, roles::MATHML_NUMBER)
14 MARKUPMAP(mo_, New_HyperText, roles::MATHML_OPERATOR,
15 AttrFromDOM(accent_, accent_), AttrFromDOM(fence_, fence_),
16 AttrFromDOM(separator_, separator_), AttrFromDOM(largeop_, largeop_))
18 MARKUPMAP(mtext_, New_HyperText, roles::MATHML_TEXT)
20 MARKUPMAP(ms_, New_HyperText, roles::MATHML_STRING_LITERAL)
22 MARKUPMAP(mglyph_, New_HyperText, roles::MATHML_GLYPH)
24 MARKUPMAP(mrow_, New_HyperText, roles::MATHML_ROW)
26 MARKUPMAP(mfrac_, New_HyperText, roles::MATHML_FRACTION,
27 AttrFromDOM(bevelled_, bevelled_),
28 AttrFromDOM(linethickness_, linethickness_))
30 MARKUPMAP(msqrt_, New_HyperText, roles::MATHML_SQUARE_ROOT)
32 MARKUPMAP(mroot_, New_HyperText, roles::MATHML_ROOT)
34 MARKUPMAP(mfenced_, New_HyperText, roles::MATHML_ROW)
36 MARKUPMAP(menclose_, New_HyperText, roles::MATHML_ENCLOSED,
37 AttrFromDOM(notation_, notation_))
39 MARKUPMAP(mstyle_, New_HyperText, roles::MATHML_STYLE)
41 MARKUPMAP(msub_, New_HyperText, roles::MATHML_SUB)
43 MARKUPMAP(msup_, New_HyperText, roles::MATHML_SUP)
45 MARKUPMAP(msubsup_, New_HyperText, roles::MATHML_SUB_SUP)
47 MARKUPMAP(munder_, New_HyperText, roles::MATHML_UNDER,
48 AttrFromDOM(accentunder_, accentunder_), AttrFromDOM(align, align))
50 MARKUPMAP(mover_, New_HyperText, roles::MATHML_OVER,
51 AttrFromDOM(accent_, accent_), AttrFromDOM(align, align))
53 MARKUPMAP(munderover_, New_HyperText, roles::MATHML_UNDER_OVER,
54 AttrFromDOM(accent_, accent_),
55 AttrFromDOM(accentunder_, accentunder_), AttrFromDOM(align, align))
57 MARKUPMAP(mmultiscripts_, New_HyperText, roles::MATHML_MULTISCRIPTS)
59 MARKUPMAP(
60 mtable_,
61 [](Element* aElement, LocalAccessible* aContext) -> LocalAccessible* {
62 return new HTMLTableAccessible(aElement, aContext->Document());
64 roles::MATHML_TABLE, AttrFromDOM(align, align),
65 AttrFromDOM(columnlines_, columnlines_), AttrFromDOM(rowlines_, rowlines_))
67 MARKUPMAP(
68 mlabeledtr_,
69 [](Element* aElement, LocalAccessible* aContext) -> LocalAccessible* {
70 return new HTMLTableRowAccessible(aElement, aContext->Document());
72 roles::MATHML_LABELED_ROW)
74 MARKUPMAP(
75 mtr_,
76 [](Element* aElement, LocalAccessible* aContext) -> LocalAccessible* {
77 return new HTMLTableRowAccessible(aElement, aContext->Document());
79 roles::MATHML_TABLE_ROW)
81 MARKUPMAP(
82 mtd_,
83 [](Element* aElement, LocalAccessible* aContext) -> LocalAccessible* {
84 return new HTMLTableCellAccessible(aElement, aContext->Document());
88 MARKUPMAP(maction_, New_HyperText, roles::MATHML_ACTION,
89 AttrFromDOM(actiontype_, actiontype_),
90 AttrFromDOM(selection_, selection_))
92 MARKUPMAP(merror_, New_HyperText, roles::MATHML_ERROR)
94 MARKUPMAP(mstack_, New_HyperText, roles::MATHML_STACK,
95 AttrFromDOM(align, align), AttrFromDOM(position, position))
97 MARKUPMAP(mlongdiv_, New_HyperText, roles::MATHML_LONG_DIVISION,
98 AttrFromDOM(longdivstyle_, longdivstyle_))
100 MARKUPMAP(msgroup_, New_HyperText, roles::MATHML_STACK_GROUP,
101 AttrFromDOM(position, position), AttrFromDOM(shift_, shift_))
103 MARKUPMAP(msrow_, New_HyperText, roles::MATHML_STACK_ROW,
104 AttrFromDOM(position, position))
106 MARKUPMAP(mscarries_, New_HyperText, roles::MATHML_STACK_CARRIES,
107 AttrFromDOM(location_, location_), AttrFromDOM(position, position))
109 MARKUPMAP(mscarry_, New_HyperText, roles::MATHML_STACK_CARRY,
110 AttrFromDOM(crossout_, crossout_))
112 MARKUPMAP(msline_, New_HyperText, roles::MATHML_STACK_LINE,
113 AttrFromDOM(position, position))