Bug 1635702 [wpt PR 23413] - Move some internal scroll anchoring tests to wpt, a...
[gecko.git] / layout / style / nsStyleStructList.h
blob348d3bf8f107fd8795688459aa2d82382847c3f6
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 // IWYU pragma: private, include "nsStyleStructFwd.h"
9 /*
10 * list of structs that contain the data provided by ComputedStyle, the
11 * internal API for computed style data for an element
15 * This file is intended to be used by different parts of the code, with
16 * the STYLE_STRUCT macro (or the STYLE_STRUCT_INHERITED and
17 * STYLE_STRUCT_RESET pair of macros) defined in different ways.
20 #ifndef STYLE_STRUCT_INHERITED
21 #define STYLE_STRUCT_INHERITED(name) STYLE_STRUCT(name)
22 #define UNDEF_STYLE_STRUCT_INHERITED
23 #endif
25 #ifndef STYLE_STRUCT_RESET
26 #define STYLE_STRUCT_RESET(name) STYLE_STRUCT(name)
27 #define UNDEF_STYLE_STRUCT_RESET
28 #endif
30 // The inherited structs are listed before the Reset structs.
31 // nsStyleStructID assumes this is the case, and callers other than
32 // nsStyleStructFwd.h that want the structs in id-order just define
33 // STYLE_STRUCT rather than including the file twice.
35 STYLE_STRUCT_INHERITED(Font)
36 STYLE_STRUCT_INHERITED(List)
37 STYLE_STRUCT_INHERITED(Text)
38 STYLE_STRUCT_INHERITED(Visibility)
39 STYLE_STRUCT_INHERITED(UI)
40 STYLE_STRUCT_INHERITED(TableBorder)
41 STYLE_STRUCT_INHERITED(SVG)
43 STYLE_STRUCT_RESET(Background)
44 STYLE_STRUCT_RESET(Position)
45 STYLE_STRUCT_RESET(TextReset)
46 STYLE_STRUCT_RESET(Display)
47 STYLE_STRUCT_RESET(Content)
48 STYLE_STRUCT_RESET(UIReset)
49 STYLE_STRUCT_RESET(Table)
50 STYLE_STRUCT_RESET(Margin)
51 STYLE_STRUCT_RESET(Padding)
52 STYLE_STRUCT_RESET(Border)
53 STYLE_STRUCT_RESET(Outline)
54 STYLE_STRUCT_RESET(XUL)
55 STYLE_STRUCT_RESET(SVGReset)
56 STYLE_STRUCT_RESET(Column)
57 STYLE_STRUCT_RESET(Effects)
59 #ifdef UNDEF_STYLE_STRUCT_INHERITED
60 #undef STYLE_STRUCT_INHERITED
61 #undef UNDEF_STYLE_STRUCT_INHERITED
62 #endif
64 #ifdef UNDEF_STYLE_STRUCT_RESET
65 #undef STYLE_STRUCT_RESET
66 #undef UNDEF_STYLE_STRUCT_RESET
67 #endif