2010-07-15 14:07:49 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: set ts=2 sw=2 et tw=78:
|
2012-05-21 04:12:37 -07:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2010-07-15 14:07:49 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* It's useful to be able to dynamically check the type of certain items.
|
|
|
|
* Every subclass of nsDisplayItem must have a new type added here for the purposes
|
|
|
|
* of easy comparison and matching of items in different display lists.
|
|
|
|
*
|
|
|
|
* This is #included inside nsDisplayItem.
|
|
|
|
*/
|
|
|
|
enum Type {
|
|
|
|
TYPE_ALT_FEEDBACK = 1,
|
|
|
|
TYPE_BACKGROUND,
|
|
|
|
TYPE_BORDER,
|
|
|
|
TYPE_BOX_SHADOW_OUTER,
|
|
|
|
TYPE_BOX_SHADOW_INNER,
|
|
|
|
TYPE_BULLET,
|
|
|
|
TYPE_BUTTON_BORDER_BACKGROUND,
|
|
|
|
TYPE_BUTTON_BOX_SHADOW_OUTER,
|
|
|
|
TYPE_BUTTON_FOREGROUND,
|
|
|
|
TYPE_CANVAS,
|
|
|
|
TYPE_CANVAS_BACKGROUND,
|
|
|
|
TYPE_CANVAS_FOCUS,
|
|
|
|
TYPE_CARET,
|
|
|
|
TYPE_CHECKED_CHECKBOX,
|
|
|
|
TYPE_CHECKED_RADIOBUTTON,
|
|
|
|
TYPE_CLIP,
|
2010-09-09 08:21:46 -07:00
|
|
|
TYPE_CLIP_ROUNDED_RECT,
|
2010-07-15 14:07:49 -07:00
|
|
|
TYPE_COLUMN_RULE,
|
|
|
|
TYPE_COMBOBOX_FOCUS,
|
|
|
|
TYPE_EVENT_RECEIVER,
|
|
|
|
TYPE_FIELDSET_BORDER_BACKGROUND,
|
2012-07-14 00:49:05 -07:00
|
|
|
TYPE_FIXED_POSITION,
|
2011-06-22 11:11:48 -07:00
|
|
|
TYPE_FORCEPAINTONSCROLL,
|
2010-07-15 14:07:49 -07:00
|
|
|
TYPE_FRAMESET_BORDER,
|
|
|
|
TYPE_FRAMESET_BLANK,
|
|
|
|
TYPE_HEADER_FOOTER,
|
|
|
|
TYPE_IMAGE,
|
|
|
|
TYPE_LIST_FOCUS,
|
|
|
|
TYPE_OPACITY,
|
|
|
|
TYPE_OPTION_EVENT_GRABBER,
|
|
|
|
TYPE_OUTLINE,
|
2010-07-15 14:08:03 -07:00
|
|
|
TYPE_OWN_LAYER,
|
2010-07-15 14:07:49 -07:00
|
|
|
TYPE_PAGE_CONTENT,
|
|
|
|
TYPE_PAGE_SEQUENCE,
|
|
|
|
TYPE_PLUGIN,
|
2011-02-16 14:43:30 -08:00
|
|
|
TYPE_PLUGIN_READBACK,
|
2012-07-20 12:20:51 -07:00
|
|
|
TYPE_PLUGIN_VIDEO,
|
2010-07-15 14:07:49 -07:00
|
|
|
TYPE_PRINT_PLUGIN,
|
2010-08-20 16:24:41 -07:00
|
|
|
TYPE_REMOTE,
|
2011-01-13 09:45:14 -08:00
|
|
|
TYPE_REMOTE_SHADOW,
|
2011-01-13 09:45:14 -08:00
|
|
|
TYPE_SCROLL_LAYER,
|
2011-04-11 13:53:01 -07:00
|
|
|
TYPE_SCROLL_INFO_LAYER,
|
2010-07-15 14:07:49 -07:00
|
|
|
TYPE_SELECTION_OVERLAY,
|
|
|
|
TYPE_SOLID_COLOR,
|
2011-05-30 00:34:50 -07:00
|
|
|
TYPE_SVG_EFFECTS,
|
2012-07-20 11:12:29 -07:00
|
|
|
TYPE_SVG_GLYPHS,
|
2012-06-28 12:51:20 -07:00
|
|
|
TYPE_SVG_OUTER_SVG,
|
2012-07-20 11:12:29 -07:00
|
|
|
TYPE_SVG_PATH_GEOMETRY,
|
2010-07-15 14:07:49 -07:00
|
|
|
TYPE_TABLE_CELL_BACKGROUND,
|
|
|
|
TYPE_TABLE_CELL_SELECTION,
|
|
|
|
TYPE_TABLE_ROW_BACKGROUND,
|
|
|
|
TYPE_TABLE_ROW_GROUP_BACKGROUND,
|
|
|
|
TYPE_TABLE_BORDER_BACKGROUND,
|
|
|
|
TYPE_TEXT,
|
|
|
|
TYPE_TEXT_DECORATION,
|
2011-06-22 11:11:48 -07:00
|
|
|
TYPE_TEXT_OVERFLOW,
|
2010-07-15 14:07:49 -07:00
|
|
|
TYPE_TEXT_SHADOW,
|
|
|
|
TYPE_TRANSFORM,
|
|
|
|
TYPE_VIDEO,
|
|
|
|
TYPE_WRAP_LIST,
|
2010-07-18 19:23:48 -07:00
|
|
|
TYPE_ZOOM,
|
2011-05-13 09:40:46 -07:00
|
|
|
TYPE_EXCLUDE_GLASS_FRAME,
|
2010-07-15 14:07:49 -07:00
|
|
|
|
|
|
|
#if defined(MOZ_REFLOW_PERF_DSP) && defined(MOZ_REFLOW_PERF)
|
|
|
|
TYPE_REFLOW_COUNT,
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef MOZ_XUL
|
|
|
|
TYPE_XUL_EVENT_REDIRECTOR,
|
|
|
|
TYPE_XUL_GROUP_BACKGROUND,
|
|
|
|
TYPE_XUL_IMAGE,
|
|
|
|
TYPE_XUL_TEXT_BOX,
|
|
|
|
TYPE_XUL_TREE_BODY,
|
|
|
|
TYPE_XUL_TREE_COL_SPLITTER_TARGET,
|
|
|
|
#ifdef DEBUG_LAYOUT
|
|
|
|
TYPE_XUL_DEBUG,
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
TYPE_MATHML_BAR,
|
|
|
|
TYPE_MATHML_CHAR_BACKGROUND,
|
|
|
|
TYPE_MATHML_CHAR_FOREGROUND,
|
|
|
|
TYPE_MATHML_ERROR,
|
|
|
|
TYPE_MATHML_MENCLOSE_NOTATION,
|
|
|
|
TYPE_MATHML_SELECTION_RECT,
|
|
|
|
TYPE_MATHML_SLASH,
|
2012-06-25 12:59:42 -07:00
|
|
|
#ifdef DEBUG
|
2010-07-15 14:07:49 -07:00
|
|
|
TYPE_MATHML_BOUNDING_METRICS,
|
|
|
|
TYPE_MATHML_CHAR_DEBUG,
|
|
|
|
#endif
|
|
|
|
|
2012-06-25 12:59:42 -07:00
|
|
|
#ifdef DEBUG
|
2010-07-15 14:07:49 -07:00
|
|
|
TYPE_DEBUG_BORDER,
|
|
|
|
TYPE_DEBUG_IMAGE_MAP,
|
|
|
|
TYPE_DEBUG_PLACEHOLDER,
|
|
|
|
TYPE_EVENT_TARGET_BORDER,
|
|
|
|
#endif
|
|
|
|
|
|
|
|
TYPE_MAX
|
|
|
|
};
|
2010-07-15 14:08:10 -07:00
|
|
|
|
|
|
|
enum {
|
|
|
|
// Number of bits needed to represent all types
|
|
|
|
TYPE_BITS = 8
|
|
|
|
};
|