layout/style/nsCSSPseudoElementList.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/style/nsCSSPseudoElementList.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,83 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/* atom list for CSS pseudo-elements */
    1.10 +
    1.11 +/*
    1.12 + * This file contains the list of nsIAtoms and their values for CSS
    1.13 + * pseudo-elements.  It is designed to be used as inline input to
    1.14 + * nsCSSPseudoElements.cpp *only* through the magic of C preprocessing.  All
    1.15 + * entries must be enclosed either in the macro CSS_PSEUDO_ELEMENT;
    1.16 + * these macros will have cruel and unusual things done to them.  The
    1.17 + * entries should be kept in some sort of logical order.
    1.18 + *
    1.19 + * Code including this file MUST define CSS_PSEUDO_ELEMENT, which takes
    1.20 + * three parameters:
    1.21 + * name_  : The C++ identifier used for the atom (which will be a member
    1.22 + *          of nsCSSPseudoElements)
    1.23 + * value_ : The pseudo-element as a string, with single-colon syntax,
    1.24 + *          used as the string value of the atom.
    1.25 + * flags_ : A bitfield containing flags defined in nsCSSPseudoElements.h
    1.26 + */
    1.27 +
    1.28 +// OUTPUT_CLASS=nsCSSPseudoElements
    1.29 +// MACRO_NAME=CSS_PSEUDO_ELEMENT
    1.30 +
    1.31 +CSS_PSEUDO_ELEMENT(after, ":after", CSS_PSEUDO_ELEMENT_IS_CSS2)
    1.32 +CSS_PSEUDO_ELEMENT(before, ":before", CSS_PSEUDO_ELEMENT_IS_CSS2)
    1.33 +
    1.34 +CSS_PSEUDO_ELEMENT(firstLetter, ":first-letter",
    1.35 +                   CSS_PSEUDO_ELEMENT_IS_CSS2 |
    1.36 +                   CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS)
    1.37 +CSS_PSEUDO_ELEMENT(firstLine, ":first-line",
    1.38 +                   CSS_PSEUDO_ELEMENT_IS_CSS2 |
    1.39 +                   CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS)
    1.40 +
    1.41 +CSS_PSEUDO_ELEMENT(mozSelection, ":-moz-selection",
    1.42 +                   CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS)
    1.43 +
    1.44 +// XXXbz should we really allow random content to style these?  Maybe
    1.45 +// use our flags to prevent that?
    1.46 +CSS_PSEUDO_ELEMENT(mozFocusInner, ":-moz-focus-inner", 0)
    1.47 +CSS_PSEUDO_ELEMENT(mozFocusOuter, ":-moz-focus-outer", 0)
    1.48 +
    1.49 +// XXXbz should we really allow random content to style these?  Maybe
    1.50 +// use our flags to prevent that?
    1.51 +CSS_PSEUDO_ELEMENT(mozListBullet, ":-moz-list-bullet", 0)
    1.52 +CSS_PSEUDO_ELEMENT(mozListNumber, ":-moz-list-number", 0)
    1.53 +
    1.54 +CSS_PSEUDO_ELEMENT(mozMathAnonymous, ":-moz-math-anonymous", 0)
    1.55 +
    1.56 +// HTML5 Forms pseudo elements
    1.57 +CSS_PSEUDO_ELEMENT(mozNumberWrapper, ":-moz-number-wrapper",
    1.58 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
    1.59 +                   CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
    1.60 +CSS_PSEUDO_ELEMENT(mozNumberText, ":-moz-number-text",
    1.61 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
    1.62 +                   CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
    1.63 +CSS_PSEUDO_ELEMENT(mozNumberSpinBox, ":-moz-number-spin-box",
    1.64 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
    1.65 +                   CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
    1.66 +CSS_PSEUDO_ELEMENT(mozNumberSpinUp, ":-moz-number-spin-up",
    1.67 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
    1.68 +                   CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
    1.69 +CSS_PSEUDO_ELEMENT(mozNumberSpinDown, ":-moz-number-spin-down",
    1.70 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
    1.71 +                   CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
    1.72 +CSS_PSEUDO_ELEMENT(mozProgressBar, ":-moz-progress-bar",
    1.73 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
    1.74 +CSS_PSEUDO_ELEMENT(mozRangeTrack, ":-moz-range-track",
    1.75 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
    1.76 +CSS_PSEUDO_ELEMENT(mozRangeProgress, ":-moz-range-progress",
    1.77 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
    1.78 +CSS_PSEUDO_ELEMENT(mozRangeThumb, ":-moz-range-thumb",
    1.79 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
    1.80 +CSS_PSEUDO_ELEMENT(mozMeterBar, ":-moz-meter-bar",
    1.81 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
    1.82 +CSS_PSEUDO_ELEMENT(mozPlaceholder, ":-moz-placeholder",
    1.83 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
    1.84 +CSS_PSEUDO_ELEMENT(mozColorSwatch, ":-moz-color-swatch",
    1.85 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_STYLE_ATTRIBUTE |
    1.86 +                   CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)

mercurial