Bug 1687263: part 4) Defer and in some cases avoid removing spellchecking-ranges...
[gecko.git] / layout / painting / nsDisplayItemTypesList.h
blob99e92a95cd17259e20ad0fa97115e0a99fc85be5
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 // IWYU pragma: private, include "nsDisplayList.h"
7 DECLARE_DISPLAY_ITEM_TYPE(ALT_FEEDBACK, 0)
8 DECLARE_DISPLAY_ITEM_TYPE(ASYNC_ZOOM,
9 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
10 DECLARE_DISPLAY_ITEM_TYPE(BACKDROP_FILTER, TYPE_IS_CONTAINER)
11 DECLARE_DISPLAY_ITEM_TYPE(BACKDROP_ROOT_CONTAINER, TYPE_IS_CONTAINER)
12 DECLARE_DISPLAY_ITEM_TYPE(BACKGROUND, TYPE_IS_CONTENTFUL)
13 DECLARE_DISPLAY_ITEM_TYPE(BACKGROUND_COLOR, TYPE_RENDERS_NO_IMAGES)
14 DECLARE_DISPLAY_ITEM_TYPE(BLEND_CONTAINER,
15 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
16 DECLARE_DISPLAY_ITEM_TYPE(BLEND_MODE,
17 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
18 DECLARE_DISPLAY_ITEM_TYPE(BORDER, 0)
19 DECLARE_DISPLAY_ITEM_TYPE(BOX_SHADOW_INNER, TYPE_RENDERS_NO_IMAGES)
20 DECLARE_DISPLAY_ITEM_TYPE(BOX_SHADOW_OUTER, TYPE_RENDERS_NO_IMAGES)
21 DECLARE_DISPLAY_ITEM_TYPE(BULLET, TYPE_IS_CONTENTFUL)
22 DECLARE_DISPLAY_ITEM_TYPE(BUTTON_BORDER_BACKGROUND, TYPE_IS_CONTENTFUL)
23 DECLARE_DISPLAY_ITEM_TYPE(BUTTON_BOX_SHADOW_OUTER,
24 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTENTFUL)
25 DECLARE_DISPLAY_ITEM_TYPE(BUTTON_FOREGROUND, TYPE_IS_CONTENTFUL)
26 DECLARE_DISPLAY_ITEM_TYPE(CANVAS, TYPE_RENDERS_NO_IMAGES)
27 DECLARE_DISPLAY_ITEM_TYPE(CANVAS_BACKGROUND_COLOR, TYPE_RENDERS_NO_IMAGES)
28 DECLARE_DISPLAY_ITEM_TYPE(CANVAS_BACKGROUND_IMAGE, TYPE_IS_CONTENTFUL)
29 DECLARE_DISPLAY_ITEM_TYPE(CANVAS_FOCUS, TYPE_RENDERS_NO_IMAGES)
30 DECLARE_DISPLAY_ITEM_TYPE(CANVAS_THEMED_BACKGROUND,
31 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTENTFUL)
32 DECLARE_DISPLAY_ITEM_TYPE(CARET, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTENTFUL)
33 DECLARE_DISPLAY_ITEM_TYPE(CHECKED_CHECKBOX,
34 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTENTFUL)
35 DECLARE_DISPLAY_ITEM_TYPE(CHECKED_RADIOBUTTON,
36 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTENTFUL)
37 DECLARE_DISPLAY_ITEM_TYPE(COLUMN_RULE, TYPE_RENDERS_NO_IMAGES)
38 DECLARE_DISPLAY_ITEM_TYPE(COMBOBOX_FOCUS, TYPE_RENDERS_NO_IMAGES)
39 DECLARE_DISPLAY_ITEM_TYPE(COMPOSITOR_HITTEST_INFO, TYPE_RENDERS_NO_IMAGES)
40 DECLARE_DISPLAY_ITEM_TYPE(CONTAINER, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
41 DECLARE_DISPLAY_ITEM_TYPE(EVENT_RECEIVER, TYPE_RENDERS_NO_IMAGES)
42 DECLARE_DISPLAY_ITEM_TYPE(FIELDSET_BORDER_BACKGROUND, 0)
43 DECLARE_DISPLAY_ITEM_TYPE(FILTER, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
44 DECLARE_DISPLAY_ITEM_TYPE(FIXED_POSITION,
45 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
46 DECLARE_DISPLAY_ITEM_TYPE(FOREIGN_OBJECT,
47 TYPE_IS_CONTENTFUL | TYPE_IS_CONTAINER)
48 DECLARE_DISPLAY_ITEM_TYPE(FRAMESET_BLANK, TYPE_RENDERS_NO_IMAGES)
49 DECLARE_DISPLAY_ITEM_TYPE(FRAMESET_BORDER, TYPE_RENDERS_NO_IMAGES)
50 DECLARE_DISPLAY_ITEM_TYPE(GENERIC, TYPE_RENDERS_NO_IMAGES)
51 DECLARE_DISPLAY_ITEM_TYPE(HEADER_FOOTER, TYPE_RENDERS_NO_IMAGES)
52 DECLARE_DISPLAY_ITEM_TYPE(IMAGE, TYPE_IS_CONTENTFUL)
53 DECLARE_DISPLAY_ITEM_TYPE(LINK, TYPE_RENDERS_NO_IMAGES)
54 DECLARE_DISPLAY_ITEM_TYPE(LIST_FOCUS, TYPE_RENDERS_NO_IMAGES)
55 DECLARE_DISPLAY_ITEM_TYPE(MARGIN_GUIDES, TYPE_RENDERS_NO_IMAGES)
56 DECLARE_DISPLAY_ITEM_TYPE(MASK, TYPE_IS_CONTAINER)
57 DECLARE_DISPLAY_ITEM_TYPE(OPACITY, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
58 DECLARE_DISPLAY_ITEM_TYPE(OPTION_EVENT_GRABBER,
59 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
60 DECLARE_DISPLAY_ITEM_TYPE(OUTLINE, TYPE_RENDERS_NO_IMAGES)
61 DECLARE_DISPLAY_ITEM_TYPE(OWN_LAYER, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
62 DECLARE_DISPLAY_ITEM_TYPE(PERSPECTIVE,
63 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
64 DECLARE_DISPLAY_ITEM_TYPE(RANGE_FOCUS_RING, 0)
65 DECLARE_DISPLAY_ITEM_TYPE(REMOTE, TYPE_RENDERS_NO_IMAGES)
66 DECLARE_DISPLAY_ITEM_TYPE(SCROLL_INFO_LAYER,
67 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
68 DECLARE_DISPLAY_ITEM_TYPE(SLIDER_MARKS, TYPE_RENDERS_NO_IMAGES)
69 DECLARE_DISPLAY_ITEM_TYPE(SELECTION_OVERLAY, TYPE_RENDERS_NO_IMAGES)
70 DECLARE_DISPLAY_ITEM_TYPE(SOLID_COLOR, TYPE_RENDERS_NO_IMAGES)
71 DECLARE_DISPLAY_ITEM_TYPE(SOLID_COLOR_REGION, TYPE_RENDERS_NO_IMAGES)
72 DECLARE_DISPLAY_ITEM_TYPE(SUBDOCUMENT,
73 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
74 DECLARE_DISPLAY_ITEM_TYPE(STICKY_POSITION,
75 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
76 DECLARE_DISPLAY_ITEM_TYPE(SVG_OUTER_SVG, TYPE_RENDERS_NO_IMAGES)
77 DECLARE_DISPLAY_ITEM_TYPE(SVG_GEOMETRY, TYPE_IS_CONTENTFUL)
78 DECLARE_DISPLAY_ITEM_TYPE(SVG_TEXT, TYPE_IS_CONTENTFUL)
79 DECLARE_DISPLAY_ITEM_TYPE(SVG_WRAPPER, TYPE_IS_CONTAINER)
80 DECLARE_DISPLAY_ITEM_TYPE(TABLE_BACKGROUND_COLOR, TYPE_RENDERS_NO_IMAGES)
81 DECLARE_DISPLAY_ITEM_TYPE(TABLE_BACKGROUND_IMAGE, TYPE_IS_CONTENTFUL)
82 DECLARE_DISPLAY_ITEM_TYPE(TABLE_BLEND_CONTAINER,
83 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
84 DECLARE_DISPLAY_ITEM_TYPE(TABLE_BLEND_MODE,
85 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
86 DECLARE_DISPLAY_ITEM_TYPE(TABLE_BORDER_COLLAPSE, 0)
87 DECLARE_DISPLAY_ITEM_TYPE(TABLE_CELL_BACKGROUND, 0)
88 DECLARE_DISPLAY_ITEM_TYPE(TABLE_CELL_SELECTION, TYPE_RENDERS_NO_IMAGES)
89 DECLARE_DISPLAY_ITEM_TYPE(TABLE_THEMED_BACKGROUND_IMAGE, TYPE_IS_CONTENTFUL)
90 DECLARE_DISPLAY_ITEM_TYPE(TABLE_FIXED_POSITION,
91 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
92 DECLARE_DISPLAY_ITEM_TYPE(TEXT, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTENTFUL)
93 DECLARE_DISPLAY_ITEM_TYPE(TEXT_OVERFLOW,
94 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTENTFUL)
95 DECLARE_DISPLAY_ITEM_TYPE(THEMED_BACKGROUND, TYPE_RENDERS_NO_IMAGES)
96 DECLARE_DISPLAY_ITEM_TYPE(TRANSFORM, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
97 DECLARE_DISPLAY_ITEM_TYPE(VIDEO, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTENTFUL)
98 DECLARE_DISPLAY_ITEM_TYPE(WRAP_LIST, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
99 DECLARE_DISPLAY_ITEM_TYPE(ZOOM, TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
101 #if defined(MOZ_REFLOW_PERF_DSP) && defined(MOZ_REFLOW_PERF)
102 DECLARE_DISPLAY_ITEM_TYPE(REFLOW_COUNT, TYPE_RENDERS_NO_IMAGES)
103 #endif
105 #ifdef MOZ_XUL
106 DECLARE_DISPLAY_ITEM_TYPE(XUL_EVENT_REDIRECTOR,
107 TYPE_RENDERS_NO_IMAGES | TYPE_IS_CONTAINER)
108 DECLARE_DISPLAY_ITEM_TYPE(XUL_GROUP_BACKGROUND, 0)
109 DECLARE_DISPLAY_ITEM_TYPE(XUL_IMAGE, 0)
110 DECLARE_DISPLAY_ITEM_TYPE(XUL_TEXT_BOX, TYPE_RENDERS_NO_IMAGES)
111 DECLARE_DISPLAY_ITEM_TYPE(XUL_TREE_BODY, 0)
112 DECLARE_DISPLAY_ITEM_TYPE(XUL_TREE_COL_SPLITTER_TARGET, TYPE_RENDERS_NO_IMAGES)
113 # ifdef DEBUG_LAYOUT
114 DECLARE_DISPLAY_ITEM_TYPE(XUL_DEBUG, TYPE_RENDERS_NO_IMAGES)
115 # endif
116 #endif
118 DECLARE_DISPLAY_ITEM_TYPE(MATHML_BAR, TYPE_RENDERS_NO_IMAGES)
119 DECLARE_DISPLAY_ITEM_TYPE(MATHML_CHAR_FOREGROUND, TYPE_RENDERS_NO_IMAGES)
120 DECLARE_DISPLAY_ITEM_TYPE(MATHML_ERROR, TYPE_RENDERS_NO_IMAGES)
121 DECLARE_DISPLAY_ITEM_TYPE(MATHML_MENCLOSE_NOTATION, TYPE_RENDERS_NO_IMAGES)
122 DECLARE_DISPLAY_ITEM_TYPE(MATHML_SELECTION_RECT, TYPE_RENDERS_NO_IMAGES)
123 DECLARE_DISPLAY_ITEM_TYPE(MATHML_SLASH, TYPE_RENDERS_NO_IMAGES)
124 #ifdef DEBUG
125 DECLARE_DISPLAY_ITEM_TYPE(MATHML_BOUNDING_METRICS, TYPE_RENDERS_NO_IMAGES)
126 DECLARE_DISPLAY_ITEM_TYPE(MATHML_CHAR_DEBUG, TYPE_RENDERS_NO_IMAGES)
128 DECLARE_DISPLAY_ITEM_TYPE(DEBUG_BORDER, TYPE_RENDERS_NO_IMAGES)
129 DECLARE_DISPLAY_ITEM_TYPE(DEBUG_IMAGE_MAP, TYPE_RENDERS_NO_IMAGES)
130 DECLARE_DISPLAY_ITEM_TYPE(DEBUG_PLACEHOLDER, TYPE_RENDERS_NO_IMAGES)
131 DECLARE_DISPLAY_ITEM_TYPE(EVENT_TARGET_BORDER, TYPE_RENDERS_NO_IMAGES)
132 #endif