Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | /* atom list for CSS pseudo-elements */ |
michael@0 | 7 | |
michael@0 | 8 | /* |
michael@0 | 9 | * This file contains the list of nsIAtoms and their values for CSS |
michael@0 | 10 | * pseudo-elements. It is designed to be used as inline input to |
michael@0 | 11 | * nsCSSPseudoElements.cpp *only* through the magic of C preprocessing. All |
michael@0 | 12 | * entries must be enclosed either in the macro CSS_PSEUDO_ELEMENT; |
michael@0 | 13 | * these macros will have cruel and unusual things done to them. The |
michael@0 | 14 | * entries should be kept in some sort of logical order. |
michael@0 | 15 | * |
michael@0 | 16 | * Code including this file MUST define CSS_PSEUDO_ELEMENT, which takes |
michael@0 | 17 | * three parameters: |
michael@0 | 18 | * name_ : The C++ identifier used for the atom (which will be a member |
michael@0 | 19 | * of nsCSSPseudoElements) |
michael@0 | 20 | * value_ : The pseudo-element as a string, with single-colon syntax, |
michael@0 | 21 | * used as the string value of the atom. |
michael@0 | 22 | * flags_ : A bitfield containing flags defined in nsCSSPseudoElements.h |
michael@0 | 23 | */ |
michael@0 | 24 | |
michael@0 | 25 | // OUTPUT_CLASS=nsCSSPseudoElements |
michael@0 | 26 | // MACRO_NAME=CSS_PSEUDO_ELEMENT |
michael@0 | 27 | |
michael@0 | 28 | CSS_PSEUDO_ELEMENT(after, ":after", CSS_PSEUDO_ELEMENT_IS_CSS2) |
michael@0 | 29 | CSS_PSEUDO_ELEMENT(before, ":before", CSS_PSEUDO_ELEMENT_IS_CSS2) |
michael@0 | 30 | |
michael@0 | 31 | CSS_PSEUDO_ELEMENT(firstLetter, ":first-letter", |
michael@0 | 32 | CSS_PSEUDO_ELEMENT_IS_CSS2 | |
michael@0 | 33 | CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS) |
michael@0 | 34 | CSS_PSEUDO_ELEMENT(firstLine, ":first-line", |
michael@0 | 35 | CSS_PSEUDO_ELEMENT_IS_CSS2 | |
michael@0 | 36 | CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS) |
michael@0 | 37 | |
michael@0 | 38 | CSS_PSEUDO_ELEMENT(mozSelection, ":-moz-selection", |
michael@0 | 39 | CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS) |
michael@0 | 40 | |
michael@0 | 41 | // XXXbz should we really allow random content to style these? Maybe |
michael@0 | 42 | // use our flags to prevent that? |
michael@0 | 43 | CSS_PSEUDO_ELEMENT(mozFocusInner, ":-moz-focus-inner", 0) |
michael@0 | 44 | CSS_PSEUDO_ELEMENT(mozFocusOuter, ":-moz-focus-outer", 0) |
michael@0 | 45 | |
michael@0 | 46 | // XXXbz should we really allow random content to style these? Maybe |
michael@0 | 47 | // use our flags to prevent that? |
michael@0 | 48 | CSS_PSEUDO_ELEMENT(mozListBullet, ":-moz-list-bullet", 0) |
michael@0 | 49 | CSS_PSEUDO_ELEMENT(mozListNumber, ":-moz-list-number", 0) |
michael@0 | 50 | |
michael@0 | 51 | CSS_PSEUDO_ELEMENT(mozMathAnonymous, ":-moz-math-anonymous", 0) |
michael@0 | 52 | |
michael@0 | 53 | // HTML5 Forms pseudo elements |
michael@0 | 54 | CSS_PSEUDO_ELEMENT(mozNumberWrapper, ":-moz-number-wrapper", |
michael@0 | 55 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE | |
michael@0 | 56 | CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY) |
michael@0 | 57 | CSS_PSEUDO_ELEMENT(mozNumberText, ":-moz-number-text", |
michael@0 | 58 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE | |
michael@0 | 59 | CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY) |
michael@0 | 60 | CSS_PSEUDO_ELEMENT(mozNumberSpinBox, ":-moz-number-spin-box", |
michael@0 | 61 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE | |
michael@0 | 62 | CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY) |
michael@0 | 63 | CSS_PSEUDO_ELEMENT(mozNumberSpinUp, ":-moz-number-spin-up", |
michael@0 | 64 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE | |
michael@0 | 65 | CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY) |
michael@0 | 66 | CSS_PSEUDO_ELEMENT(mozNumberSpinDown, ":-moz-number-spin-down", |
michael@0 | 67 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE | |
michael@0 | 68 | CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY) |
michael@0 | 69 | CSS_PSEUDO_ELEMENT(mozProgressBar, ":-moz-progress-bar", |
michael@0 | 70 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) |
michael@0 | 71 | CSS_PSEUDO_ELEMENT(mozRangeTrack, ":-moz-range-track", |
michael@0 | 72 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) |
michael@0 | 73 | CSS_PSEUDO_ELEMENT(mozRangeProgress, ":-moz-range-progress", |
michael@0 | 74 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) |
michael@0 | 75 | CSS_PSEUDO_ELEMENT(mozRangeThumb, ":-moz-range-thumb", |
michael@0 | 76 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) |
michael@0 | 77 | CSS_PSEUDO_ELEMENT(mozMeterBar, ":-moz-meter-bar", |
michael@0 | 78 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) |
michael@0 | 79 | CSS_PSEUDO_ELEMENT(mozPlaceholder, ":-moz-placeholder", |
michael@0 | 80 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) |
michael@0 | 81 | CSS_PSEUDO_ELEMENT(mozColorSwatch, ":-moz-color-swatch", |
michael@0 | 82 | CSS_PSEUDO_ELEMENT_SUPPORTS_STYLE_ATTRIBUTE | |
michael@0 | 83 | CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) |