2001-09-25 05:32:19 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2004-04-18 01:52:36 +04:00
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-07-18 04:32:32 +04:00
|
|
|
*
|
2004-04-18 01:52:36 +04:00
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
1999-07-18 04:32:32 +04:00
|
|
|
*
|
2001-09-25 05:32:19 +04:00
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
1999-07-18 04:32:32 +04:00
|
|
|
*
|
1999-11-06 06:40:37 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2004-04-18 01:52:36 +04:00
|
|
|
* The Initial Developer of the Original Code is
|
2001-09-25 05:32:19 +04:00
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1999
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
1999-11-06 06:40:37 +03:00
|
|
|
*
|
2001-09-25 05:32:19 +04:00
|
|
|
* Contributor(s):
|
2005-03-27 15:36:08 +04:00
|
|
|
* Mats Palmgren <mats.palmgren@bredband.net>
|
2009-08-21 01:52:47 +04:00
|
|
|
* Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>, Collabora Ltd.
|
2001-09-25 05:32:19 +04:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2004-04-18 01:52:36 +04:00
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
2001-09-25 05:32:19 +04:00
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
2004-04-18 01:52:36 +04:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
2001-09-25 05:32:19 +04:00
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
2004-04-18 01:52:36 +04:00
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
2001-09-25 05:32:19 +04:00
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
1998-04-14 00:24:54 +04:00
|
|
|
|
2006-03-25 08:47:31 +03:00
|
|
|
/*
|
|
|
|
* methods for dealing with CSS properties and tables of the keyword
|
|
|
|
* values they accept
|
|
|
|
*/
|
|
|
|
|
1998-04-14 00:24:54 +04:00
|
|
|
#include "nsCSSProps.h"
|
1999-07-18 04:32:32 +04:00
|
|
|
#include "nsCSSKeywords.h"
|
|
|
|
#include "nsStyleConsts.h"
|
2009-04-02 01:59:02 +04:00
|
|
|
#include "nsIWidget.h"
|
2001-12-18 01:51:39 +03:00
|
|
|
#include "nsThemeConstants.h" // For system widget appearance types
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1999-09-10 09:54:46 +04:00
|
|
|
#include "nsILookAndFeel.h" // for system colors
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
#include "nsString.h"
|
2001-12-17 10:14:49 +03:00
|
|
|
#include "nsReadableUtils.h"
|
2000-08-22 10:57:32 +04:00
|
|
|
#include "nsStaticNameTable.h"
|
2010-04-03 05:58:26 +04:00
|
|
|
#include "prlog.h" // for PR_STATIC_ASSERT
|
1999-07-18 04:32:32 +04:00
|
|
|
|
2003-02-26 06:34:15 +03:00
|
|
|
// required to make the symbol external, so that TestCSSPropertyLookup.cpp can link with it
|
|
|
|
extern const char* const kCSSRawProperties[];
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
// define an array of all CSS properties
|
2003-02-26 03:52:07 +03:00
|
|
|
const char* const kCSSRawProperties[] = {
|
2011-03-29 03:07:27 +04:00
|
|
|
#define CSS_PROP(name_, id_, method_, flags_, parsevariant_, kwtable_, \
|
|
|
|
stylestruct_, stylestructoffset_, animtype_) \
|
2009-09-11 14:46:36 +04:00
|
|
|
#name_,
|
1999-07-18 04:32:32 +04:00
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP
|
2008-10-08 02:10:19 +04:00
|
|
|
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_) #name_,
|
2003-06-08 02:14:42 +04:00
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_SHORTHAND
|
|
|
|
};
|
1998-04-14 00:24:54 +04:00
|
|
|
|
|
|
|
|
2000-08-22 10:57:32 +04:00
|
|
|
static PRInt32 gTableRefCount;
|
|
|
|
static nsStaticCaseInsensitiveNameTable* gPropertyTable;
|
2008-08-11 01:13:49 +04:00
|
|
|
static nsStaticCaseInsensitiveNameTable* gFontDescTable;
|
|
|
|
|
2008-12-23 17:06:57 +03:00
|
|
|
/* static */ nsCSSProperty *
|
|
|
|
nsCSSProps::gShorthandsContainingTable[eCSSProperty_COUNT_no_shorthands];
|
|
|
|
/* static */ nsCSSProperty* nsCSSProps::gShorthandsContainingPool = nsnull;
|
|
|
|
|
2008-08-11 01:13:49 +04:00
|
|
|
// Keep in sync with enum nsCSSFontDesc in nsCSSProperty.h.
|
|
|
|
static const char* const kCSSRawFontDescs[] = {
|
|
|
|
"font-family",
|
|
|
|
"font-style",
|
|
|
|
"font-weight",
|
|
|
|
"font-stretch",
|
|
|
|
"src",
|
2010-07-14 00:30:42 +04:00
|
|
|
"unicode-range",
|
|
|
|
"-moz-font-feature-settings",
|
|
|
|
"-moz-font-language-override"
|
2008-08-11 01:13:49 +04:00
|
|
|
};
|
1999-07-18 04:32:32 +04:00
|
|
|
|
2008-12-23 17:06:57 +03:00
|
|
|
struct PropertyAndCount {
|
|
|
|
nsCSSProperty property;
|
|
|
|
PRUint32 count;
|
|
|
|
};
|
|
|
|
|
2009-10-13 10:35:57 +04:00
|
|
|
static int
|
2008-12-23 17:06:57 +03:00
|
|
|
SortPropertyAndCount(const void* s1, const void* s2, void *closure)
|
|
|
|
{
|
|
|
|
const PropertyAndCount *pc1 = static_cast<const PropertyAndCount*>(s1);
|
|
|
|
const PropertyAndCount *pc2 = static_cast<const PropertyAndCount*>(s2);
|
|
|
|
// Primary sort by count (lowest to highest)
|
|
|
|
if (pc1->count != pc2->count)
|
|
|
|
return pc1->count - pc2->count;
|
|
|
|
// Secondary sort by property index (highest to lowest)
|
|
|
|
return pc2->property - pc1->property;
|
|
|
|
}
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
void
|
2009-10-13 10:35:57 +04:00
|
|
|
nsCSSProps::AddRefTable(void)
|
1998-04-14 00:24:54 +04:00
|
|
|
{
|
1999-07-18 04:32:32 +04:00
|
|
|
if (0 == gTableRefCount++) {
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(!gPropertyTable, "pre existing array!");
|
|
|
|
NS_ABORT_IF_FALSE(!gFontDescTable, "pre existing array!");
|
2008-08-11 01:13:49 +04:00
|
|
|
|
2000-08-22 10:57:32 +04:00
|
|
|
gPropertyTable = new nsStaticCaseInsensitiveNameTable();
|
|
|
|
if (gPropertyTable) {
|
|
|
|
#ifdef DEBUG
|
|
|
|
{
|
|
|
|
// let's verify the table...
|
|
|
|
for (PRInt32 index = 0; index < eCSSProperty_COUNT; ++index) {
|
|
|
|
nsCAutoString temp1(kCSSRawProperties[index]);
|
|
|
|
nsCAutoString temp2(kCSSRawProperties[index]);
|
2001-12-17 10:14:49 +03:00
|
|
|
ToLowerCase(temp1);
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(temp1.Equals(temp2), "upper case char in prop table");
|
|
|
|
NS_ABORT_IF_FALSE(-1 == temp1.FindChar('_'),
|
|
|
|
"underscore char in prop table");
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
|
|
|
}
|
2009-10-13 10:35:57 +04:00
|
|
|
#endif
|
2008-08-11 01:13:49 +04:00
|
|
|
gPropertyTable->Init(kCSSRawProperties, eCSSProperty_COUNT);
|
|
|
|
}
|
|
|
|
|
|
|
|
gFontDescTable = new nsStaticCaseInsensitiveNameTable();
|
|
|
|
if (gFontDescTable) {
|
|
|
|
#ifdef DEBUG
|
|
|
|
{
|
|
|
|
// let's verify the table...
|
|
|
|
for (PRInt32 index = 0; index < eCSSFontDesc_COUNT; ++index) {
|
|
|
|
nsCAutoString temp1(kCSSRawFontDescs[index]);
|
|
|
|
nsCAutoString temp2(kCSSRawFontDescs[index]);
|
|
|
|
ToLowerCase(temp1);
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(temp1.Equals(temp2), "upper case char in desc table");
|
|
|
|
NS_ABORT_IF_FALSE(-1 == temp1.FindChar('_'),
|
|
|
|
"underscore char in desc table");
|
2008-08-11 01:13:49 +04:00
|
|
|
}
|
|
|
|
}
|
2009-10-13 10:35:57 +04:00
|
|
|
#endif
|
|
|
|
gFontDescTable->Init(kCSSRawFontDescs, eCSSFontDesc_COUNT);
|
2000-08-22 10:57:32 +04:00
|
|
|
}
|
2008-12-23 17:06:57 +03:00
|
|
|
|
|
|
|
BuildShorthandsContainingTable();
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-12-23 17:06:57 +03:00
|
|
|
#undef DEBUG_SHORTHANDS_CONTAINING
|
|
|
|
|
|
|
|
PRBool
|
2009-10-13 10:35:57 +04:00
|
|
|
nsCSSProps::BuildShorthandsContainingTable()
|
2008-12-23 17:06:57 +03:00
|
|
|
{
|
|
|
|
PRUint32 occurrenceCounts[eCSSProperty_COUNT_no_shorthands];
|
|
|
|
memset(occurrenceCounts, 0, sizeof(occurrenceCounts));
|
|
|
|
PropertyAndCount subpropCounts[eCSSProperty_COUNT -
|
|
|
|
eCSSProperty_COUNT_no_shorthands];
|
|
|
|
for (nsCSSProperty shorthand = eCSSProperty_COUNT_no_shorthands;
|
|
|
|
shorthand < eCSSProperty_COUNT;
|
|
|
|
shorthand = nsCSSProperty(shorthand + 1)) {
|
|
|
|
#ifdef DEBUG_SHORTHANDS_CONTAINING
|
|
|
|
printf("Considering shorthand property '%s'.\n",
|
|
|
|
nsCSSProps::GetStringValue(shorthand).get());
|
|
|
|
#endif
|
|
|
|
PropertyAndCount &subpropCountsEntry =
|
|
|
|
subpropCounts[shorthand - eCSSProperty_COUNT_no_shorthands];
|
|
|
|
subpropCountsEntry.property = shorthand;
|
|
|
|
subpropCountsEntry.count = 0;
|
|
|
|
for (const nsCSSProperty* subprops = SubpropertyEntryFor(shorthand);
|
|
|
|
*subprops != eCSSProperty_UNKNOWN;
|
|
|
|
++subprops) {
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(0 < *subprops &&
|
|
|
|
*subprops < eCSSProperty_COUNT_no_shorthands,
|
|
|
|
"subproperty must be a longhand");
|
2008-12-23 17:06:57 +03:00
|
|
|
++occurrenceCounts[*subprops];
|
|
|
|
++subpropCountsEntry.count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
PRUint32 poolEntries = 0;
|
|
|
|
for (nsCSSProperty longhand = nsCSSProperty(0);
|
|
|
|
longhand < eCSSProperty_COUNT_no_shorthands;
|
|
|
|
longhand = nsCSSProperty(longhand + 1)) {
|
|
|
|
PRUint32 count = occurrenceCounts[longhand];
|
|
|
|
if (count > 0)
|
|
|
|
// leave room for terminator
|
|
|
|
poolEntries += count + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
gShorthandsContainingPool = new nsCSSProperty[poolEntries];
|
|
|
|
if (!gShorthandsContainingPool)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
// Initialize all entries to point to their null-terminator.
|
|
|
|
{
|
|
|
|
nsCSSProperty *poolCursor = gShorthandsContainingPool - 1;
|
|
|
|
nsCSSProperty *lastTerminator =
|
|
|
|
gShorthandsContainingPool + poolEntries - 1;
|
|
|
|
for (nsCSSProperty longhand = nsCSSProperty(0);
|
|
|
|
longhand < eCSSProperty_COUNT_no_shorthands;
|
|
|
|
longhand = nsCSSProperty(longhand + 1)) {
|
|
|
|
PRUint32 count = occurrenceCounts[longhand];
|
|
|
|
if (count > 0) {
|
|
|
|
poolCursor += count + 1;
|
|
|
|
gShorthandsContainingTable[longhand] = poolCursor;
|
|
|
|
*poolCursor = eCSSProperty_UNKNOWN;
|
|
|
|
} else {
|
|
|
|
gShorthandsContainingTable[longhand] = lastTerminator;
|
|
|
|
}
|
|
|
|
}
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(poolCursor == lastTerminator, "miscalculation");
|
2008-12-23 17:06:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Sort with lowest count at the start and highest at the end, and
|
|
|
|
// within counts sort in reverse property index order.
|
|
|
|
NS_QuickSort(&subpropCounts, NS_ARRAY_LENGTH(subpropCounts),
|
|
|
|
sizeof(subpropCounts[0]), SortPropertyAndCount, nsnull);
|
|
|
|
|
|
|
|
// Fill in all the entries in gShorthandsContainingTable
|
|
|
|
for (const PropertyAndCount *shorthandAndCount = subpropCounts,
|
|
|
|
*shorthandAndCountEnd =
|
|
|
|
subpropCounts + NS_ARRAY_LENGTH(subpropCounts);
|
|
|
|
shorthandAndCount < shorthandAndCountEnd;
|
|
|
|
++shorthandAndCount) {
|
|
|
|
#ifdef DEBUG_SHORTHANDS_CONTAINING
|
|
|
|
printf("Entering %u subprops for '%s'.\n",
|
|
|
|
shorthandAndCount->count,
|
|
|
|
nsCSSProps::GetStringValue(shorthandAndCount->property).get());
|
|
|
|
#endif
|
|
|
|
for (const nsCSSProperty* subprops =
|
|
|
|
SubpropertyEntryFor(shorthandAndCount->property);
|
|
|
|
*subprops != eCSSProperty_UNKNOWN;
|
|
|
|
++subprops) {
|
|
|
|
*(--gShorthandsContainingTable[*subprops]) = shorthandAndCount->property;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef DEBUG_SHORTHANDS_CONTAINING
|
|
|
|
for (nsCSSProperty longhand = nsCSSProperty(0);
|
|
|
|
longhand < eCSSProperty_COUNT_no_shorthands;
|
|
|
|
longhand = nsCSSProperty(longhand + 1)) {
|
|
|
|
printf("Property %s is in %d shorthands.\n",
|
|
|
|
nsCSSProps::GetStringValue(longhand).get(),
|
|
|
|
occurrenceCounts[longhand]);
|
|
|
|
for (const nsCSSProperty *shorthands = ShorthandsContaining(longhand);
|
|
|
|
*shorthands != eCSSProperty_UNKNOWN;
|
|
|
|
++shorthands) {
|
|
|
|
printf(" %s\n", nsCSSProps::GetStringValue(*shorthands).get());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
// Verify that all values that should be are present.
|
|
|
|
for (nsCSSProperty shorthand = eCSSProperty_COUNT_no_shorthands;
|
|
|
|
shorthand < eCSSProperty_COUNT;
|
|
|
|
shorthand = nsCSSProperty(shorthand + 1)) {
|
|
|
|
for (const nsCSSProperty* subprops = SubpropertyEntryFor(shorthand);
|
|
|
|
*subprops != eCSSProperty_UNKNOWN;
|
|
|
|
++subprops) {
|
|
|
|
PRUint32 count = 0;
|
|
|
|
for (const nsCSSProperty *shcont = ShorthandsContaining(*subprops);
|
|
|
|
*shcont != eCSSProperty_UNKNOWN;
|
|
|
|
++shcont) {
|
|
|
|
if (*shcont == shorthand)
|
|
|
|
++count;
|
|
|
|
}
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(count == 1,
|
|
|
|
"subproperty of shorthand should have shorthand"
|
|
|
|
" in its ShorthandsContaining() table");
|
2008-12-23 17:06:57 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Verify that there are no extra values
|
|
|
|
for (nsCSSProperty longhand = nsCSSProperty(0);
|
|
|
|
longhand < eCSSProperty_COUNT_no_shorthands;
|
|
|
|
longhand = nsCSSProperty(longhand + 1)) {
|
|
|
|
for (const nsCSSProperty *shorthands = ShorthandsContaining(longhand);
|
|
|
|
*shorthands != eCSSProperty_UNKNOWN;
|
|
|
|
++shorthands) {
|
|
|
|
PRUint32 count = 0;
|
|
|
|
for (const nsCSSProperty* subprops = SubpropertyEntryFor(*shorthands);
|
|
|
|
*subprops != eCSSProperty_UNKNOWN;
|
|
|
|
++subprops) {
|
|
|
|
if (*subprops == longhand)
|
|
|
|
++count;
|
|
|
|
}
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(count == 1,
|
|
|
|
"longhand should be in subproperty table of "
|
|
|
|
"property in its ShorthandsContaining() table");
|
2008-12-23 17:06:57 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return PR_TRUE;
|
|
|
|
}
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
void
|
2009-10-13 10:35:57 +04:00
|
|
|
nsCSSProps::ReleaseTable(void)
|
1999-07-18 04:32:32 +04:00
|
|
|
{
|
|
|
|
if (0 == --gTableRefCount) {
|
2008-12-23 17:06:57 +03:00
|
|
|
delete gPropertyTable;
|
|
|
|
gPropertyTable = nsnull;
|
|
|
|
|
|
|
|
delete gFontDescTable;
|
|
|
|
gFontDescTable = nsnull;
|
|
|
|
|
2009-01-23 04:28:14 +03:00
|
|
|
delete [] gShorthandsContainingPool;
|
2008-12-23 17:06:57 +03:00
|
|
|
gShorthandsContainingPool = nsnull;
|
1999-07-18 04:32:32 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-09-09 19:21:48 +04:00
|
|
|
struct CSSPropertyAlias {
|
|
|
|
char name[sizeof("-moz-border-radius-bottomright")];
|
|
|
|
nsCSSProperty id;
|
|
|
|
};
|
|
|
|
|
|
|
|
static const CSSPropertyAlias gAliases[] = {
|
|
|
|
{ "-moz-border-radius", eCSSProperty_border_radius },
|
|
|
|
{ "-moz-border-radius-bottomleft", eCSSProperty_border_bottom_left_radius },
|
|
|
|
{ "-moz-border-radius-bottomright", eCSSProperty_border_bottom_right_radius },
|
|
|
|
{ "-moz-border-radius-topleft", eCSSProperty_border_top_left_radius },
|
|
|
|
{ "-moz-border-radius-topright", eCSSProperty_border_top_right_radius },
|
2010-09-11 20:27:13 +04:00
|
|
|
{ "-moz-box-shadow", eCSSProperty_box_shadow },
|
2010-09-09 19:21:48 +04:00
|
|
|
// Don't forget to update the sizeof in CSSPropertyAlias above with the
|
|
|
|
// longest string when you add stuff here.
|
|
|
|
};
|
|
|
|
|
2009-10-13 10:35:57 +04:00
|
|
|
nsCSSProperty
|
2001-11-28 00:13:53 +03:00
|
|
|
nsCSSProps::LookupProperty(const nsACString& aProperty)
|
1999-07-18 04:32:32 +04:00
|
|
|
{
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(gPropertyTable, "no lookup table, needs addref");
|
2004-02-24 09:48:25 +03:00
|
|
|
|
|
|
|
nsCSSProperty res = nsCSSProperty(gPropertyTable->Lookup(aProperty));
|
2010-09-09 19:21:48 +04:00
|
|
|
if (res == eCSSProperty_UNKNOWN) {
|
|
|
|
for (const CSSPropertyAlias *alias = gAliases,
|
|
|
|
*alias_end = gAliases + NS_ARRAY_LENGTH(gAliases);
|
|
|
|
alias < alias_end; ++alias) {
|
|
|
|
if (aProperty.LowerCaseEqualsASCII(alias->name)) {
|
|
|
|
res = alias->id;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2004-02-24 09:48:25 +03:00
|
|
|
return res;
|
1999-07-18 04:32:32 +04:00
|
|
|
}
|
|
|
|
|
2009-10-13 10:35:57 +04:00
|
|
|
nsCSSProperty
|
2005-03-19 03:48:10 +03:00
|
|
|
nsCSSProps::LookupProperty(const nsAString& aProperty)
|
|
|
|
{
|
2003-01-17 07:55:10 +03:00
|
|
|
// This is faster than converting and calling
|
|
|
|
// LookupProperty(nsACString&). The table will do its own
|
|
|
|
// converting and avoid a PromiseFlatCString() call.
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(gPropertyTable, "no lookup table, needs addref");
|
2004-02-24 09:48:25 +03:00
|
|
|
nsCSSProperty res = nsCSSProperty(gPropertyTable->Lookup(aProperty));
|
2010-09-09 19:21:48 +04:00
|
|
|
if (res == eCSSProperty_UNKNOWN) {
|
|
|
|
for (const CSSPropertyAlias *alias = gAliases,
|
|
|
|
*alias_end = gAliases + NS_ARRAY_LENGTH(gAliases);
|
|
|
|
alias < alias_end; ++alias) {
|
|
|
|
if (aProperty.LowerCaseEqualsASCII(alias->name)) {
|
|
|
|
res = alias->id;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2004-02-24 09:48:25 +03:00
|
|
|
return res;
|
2000-03-12 13:07:57 +03:00
|
|
|
}
|
|
|
|
|
2009-10-13 10:35:57 +04:00
|
|
|
nsCSSFontDesc
|
2008-08-11 01:13:49 +04:00
|
|
|
nsCSSProps::LookupFontDesc(const nsACString& aFontDesc)
|
|
|
|
{
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(gFontDescTable, "no lookup table, needs addref");
|
2008-08-11 01:13:49 +04:00
|
|
|
return nsCSSFontDesc(gFontDescTable->Lookup(aFontDesc));
|
|
|
|
}
|
|
|
|
|
2009-10-13 10:35:57 +04:00
|
|
|
nsCSSFontDesc
|
2008-08-11 01:13:49 +04:00
|
|
|
nsCSSProps::LookupFontDesc(const nsAString& aFontDesc)
|
|
|
|
{
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(gFontDescTable, "no lookup table, needs addref");
|
2008-08-11 01:13:49 +04:00
|
|
|
return nsCSSFontDesc(gFontDescTable->Lookup(aFontDesc));
|
|
|
|
}
|
|
|
|
|
2009-10-13 10:35:57 +04:00
|
|
|
const nsAFlatCString&
|
1999-07-18 04:32:32 +04:00
|
|
|
nsCSSProps::GetStringValue(nsCSSProperty aProperty)
|
|
|
|
{
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(gPropertyTable, "no lookup table, needs addref");
|
2000-08-22 10:57:32 +04:00
|
|
|
if (gPropertyTable) {
|
|
|
|
return gPropertyTable->GetStringValue(PRInt32(aProperty));
|
|
|
|
} else {
|
2001-11-28 00:13:53 +03:00
|
|
|
static nsDependentCString sNullStr("");
|
2000-08-22 10:57:32 +04:00
|
|
|
return sNullStr;
|
1999-07-18 04:32:32 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-10-13 10:35:57 +04:00
|
|
|
const nsAFlatCString&
|
2008-08-11 01:13:49 +04:00
|
|
|
nsCSSProps::GetStringValue(nsCSSFontDesc aFontDescID)
|
|
|
|
{
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(gFontDescTable, "no lookup table, needs addref");
|
2008-08-11 01:13:49 +04:00
|
|
|
if (gFontDescTable) {
|
|
|
|
return gFontDescTable->GetStringValue(PRInt32(aFontDescID));
|
|
|
|
} else {
|
|
|
|
static nsDependentCString sNullStr("");
|
|
|
|
return sNullStr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-12-23 22:10:31 +03:00
|
|
|
nsCSSProperty
|
|
|
|
nsCSSProps::OtherNameFor(nsCSSProperty aProperty)
|
|
|
|
{
|
|
|
|
switch (aProperty) {
|
|
|
|
case eCSSProperty_border_left_color_value:
|
|
|
|
return eCSSProperty_border_left_color;
|
|
|
|
case eCSSProperty_border_left_style_value:
|
|
|
|
return eCSSProperty_border_left_style;
|
|
|
|
case eCSSProperty_border_left_width_value:
|
|
|
|
return eCSSProperty_border_left_width;
|
|
|
|
case eCSSProperty_border_right_color_value:
|
|
|
|
return eCSSProperty_border_right_color;
|
|
|
|
case eCSSProperty_border_right_style_value:
|
|
|
|
return eCSSProperty_border_right_style;
|
|
|
|
case eCSSProperty_border_right_width_value:
|
|
|
|
return eCSSProperty_border_right_width;
|
|
|
|
case eCSSProperty_margin_left_value:
|
|
|
|
return eCSSProperty_margin_left;
|
|
|
|
case eCSSProperty_margin_right_value:
|
|
|
|
return eCSSProperty_margin_right;
|
|
|
|
case eCSSProperty_padding_left_value:
|
|
|
|
return eCSSProperty_padding_left;
|
|
|
|
case eCSSProperty_padding_right_value:
|
|
|
|
return eCSSProperty_padding_right;
|
|
|
|
default:
|
|
|
|
NS_ABORT_IF_FALSE(PR_FALSE, "bad caller");
|
|
|
|
}
|
|
|
|
return eCSSProperty_UNKNOWN;
|
|
|
|
}
|
1999-07-18 04:32:32 +04:00
|
|
|
|
2000-08-22 10:57:32 +04:00
|
|
|
/***************************************************************************/
|
1999-07-18 04:32:32 +04:00
|
|
|
|
2011-04-12 10:18:42 +04:00
|
|
|
const PRInt32 nsCSSProps::kAnimationDirectionKTable[] = {
|
|
|
|
eCSSKeyword_normal, NS_STYLE_ANIMATION_DIRECTION_NORMAL,
|
|
|
|
eCSSKeyword_alternate, NS_STYLE_ANIMATION_DIRECTION_ALTERNATE,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kAnimationFillModeKTable[] = {
|
|
|
|
eCSSKeyword_none, NS_STYLE_ANIMATION_FILL_MODE_NONE,
|
|
|
|
eCSSKeyword_forwards, NS_STYLE_ANIMATION_FILL_MODE_FORWARDS,
|
|
|
|
eCSSKeyword_backwards, NS_STYLE_ANIMATION_FILL_MODE_BACKWARDS,
|
|
|
|
eCSSKeyword_both, NS_STYLE_ANIMATION_FILL_MODE_BOTH,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kAnimationIterationCountKTable[] = {
|
|
|
|
eCSSKeyword_infinite, NS_STYLE_ANIMATION_ITERATION_COUNT_INFINITE,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kAnimationPlayStateKTable[] = {
|
|
|
|
eCSSKeyword_running, NS_STYLE_ANIMATION_PLAY_STATE_RUNNING,
|
|
|
|
eCSSKeyword_paused, NS_STYLE_ANIMATION_PLAY_STATE_PAUSED,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
2001-12-18 01:51:39 +03:00
|
|
|
const PRInt32 nsCSSProps::kAppearanceKTable[] = {
|
|
|
|
eCSSKeyword_none, NS_THEME_NONE,
|
|
|
|
eCSSKeyword_button, NS_THEME_BUTTON,
|
|
|
|
eCSSKeyword_radio, NS_THEME_RADIO,
|
|
|
|
eCSSKeyword_checkbox, NS_THEME_CHECKBOX,
|
2003-05-30 02:39:05 +04:00
|
|
|
eCSSKeyword_button_bevel, NS_THEME_BUTTON_BEVEL,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_toolbox, NS_THEME_TOOLBOX,
|
|
|
|
eCSSKeyword_toolbar, NS_THEME_TOOLBAR,
|
|
|
|
eCSSKeyword_toolbarbutton, NS_THEME_TOOLBAR_BUTTON,
|
|
|
|
eCSSKeyword_toolbargripper, NS_THEME_TOOLBAR_GRIPPER,
|
|
|
|
eCSSKeyword_dualbutton, NS_THEME_TOOLBAR_DUAL_BUTTON,
|
2008-01-17 13:24:31 +03:00
|
|
|
eCSSKeyword_toolbarbutton_dropdown, NS_THEME_TOOLBAR_BUTTON_DROPDOWN,
|
2010-07-27 18:57:47 +04:00
|
|
|
eCSSKeyword_button_arrow_up, NS_THEME_BUTTON_ARROW_UP,
|
|
|
|
eCSSKeyword_button_arrow_down, NS_THEME_BUTTON_ARROW_DOWN,
|
|
|
|
eCSSKeyword_button_arrow_next, NS_THEME_BUTTON_ARROW_NEXT,
|
|
|
|
eCSSKeyword_button_arrow_previous, NS_THEME_BUTTON_ARROW_PREVIOUS,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_separator, NS_THEME_TOOLBAR_SEPARATOR,
|
2007-12-21 14:17:01 +03:00
|
|
|
eCSSKeyword_splitter, NS_THEME_SPLITTER,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_statusbar, NS_THEME_STATUSBAR,
|
2002-01-04 03:28:01 +03:00
|
|
|
eCSSKeyword_statusbarpanel, NS_THEME_STATUSBAR_PANEL,
|
|
|
|
eCSSKeyword_resizerpanel, NS_THEME_STATUSBAR_RESIZER_PANEL,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_resizer, NS_THEME_RESIZER,
|
|
|
|
eCSSKeyword_listbox, NS_THEME_LISTBOX,
|
|
|
|
eCSSKeyword_listitem, NS_THEME_LISTBOX_LISTITEM,
|
|
|
|
eCSSKeyword_treeview, NS_THEME_TREEVIEW,
|
|
|
|
eCSSKeyword_treeitem, NS_THEME_TREEVIEW_TREEITEM,
|
|
|
|
eCSSKeyword_treetwisty, NS_THEME_TREEVIEW_TWISTY,
|
2002-01-30 00:10:57 +03:00
|
|
|
eCSSKeyword_treetwistyopen, NS_THEME_TREEVIEW_TWISTY_OPEN,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_treeline, NS_THEME_TREEVIEW_LINE,
|
|
|
|
eCSSKeyword_treeheader, NS_THEME_TREEVIEW_HEADER,
|
|
|
|
eCSSKeyword_treeheadercell, NS_THEME_TREEVIEW_HEADER_CELL,
|
|
|
|
eCSSKeyword_treeheadersortarrow, NS_THEME_TREEVIEW_HEADER_SORTARROW,
|
|
|
|
eCSSKeyword_progressbar, NS_THEME_PROGRESSBAR,
|
|
|
|
eCSSKeyword_progresschunk, NS_THEME_PROGRESSBAR_CHUNK,
|
2002-01-05 03:15:48 +03:00
|
|
|
eCSSKeyword_progressbar_vertical, NS_THEME_PROGRESSBAR_VERTICAL,
|
|
|
|
eCSSKeyword_progresschunk_vertical, NS_THEME_PROGRESSBAR_CHUNK_VERTICAL,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_tab, NS_THEME_TAB,
|
2002-01-06 03:22:24 +03:00
|
|
|
eCSSKeyword_tabpanels, NS_THEME_TAB_PANELS,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_tabpanel, NS_THEME_TAB_PANEL,
|
2008-02-15 08:28:44 +03:00
|
|
|
eCSSKeyword_tabscrollarrow_back, NS_THEME_TAB_SCROLLARROW_BACK,
|
|
|
|
eCSSKeyword_tabscrollarrow_forward, NS_THEME_TAB_SCROLLARROW_FORWARD,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_tooltip, NS_THEME_TOOLTIP,
|
|
|
|
eCSSKeyword_spinner, NS_THEME_SPINNER,
|
|
|
|
eCSSKeyword_spinner_upbutton, NS_THEME_SPINNER_UP_BUTTON,
|
|
|
|
eCSSKeyword_spinner_downbutton, NS_THEME_SPINNER_DOWN_BUTTON,
|
2007-12-21 14:30:00 +03:00
|
|
|
eCSSKeyword_spinner_textfield, NS_THEME_SPINNER_TEXTFIELD,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_scrollbar, NS_THEME_SCROLLBAR,
|
2007-01-19 10:03:20 +03:00
|
|
|
eCSSKeyword_scrollbar_small, NS_THEME_SCROLLBAR_SMALL,
|
2002-01-04 03:28:01 +03:00
|
|
|
eCSSKeyword_scrollbarbutton_up, NS_THEME_SCROLLBAR_BUTTON_UP,
|
|
|
|
eCSSKeyword_scrollbarbutton_down, NS_THEME_SCROLLBAR_BUTTON_DOWN,
|
|
|
|
eCSSKeyword_scrollbarbutton_left, NS_THEME_SCROLLBAR_BUTTON_LEFT,
|
|
|
|
eCSSKeyword_scrollbarbutton_right, NS_THEME_SCROLLBAR_BUTTON_RIGHT,
|
|
|
|
eCSSKeyword_scrollbartrack_horizontal, NS_THEME_SCROLLBAR_TRACK_HORIZONTAL,
|
|
|
|
eCSSKeyword_scrollbartrack_vertical, NS_THEME_SCROLLBAR_TRACK_VERTICAL,
|
|
|
|
eCSSKeyword_scrollbarthumb_horizontal, NS_THEME_SCROLLBAR_THUMB_HORIZONTAL,
|
|
|
|
eCSSKeyword_scrollbarthumb_vertical, NS_THEME_SCROLLBAR_THUMB_VERTICAL,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_textfield, NS_THEME_TEXTFIELD,
|
2007-05-07 06:06:58 +04:00
|
|
|
eCSSKeyword_textfield_multiline, NS_THEME_TEXTFIELD_MULTILINE,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_caret, NS_THEME_TEXTFIELD_CARET,
|
2008-12-06 14:40:58 +03:00
|
|
|
eCSSKeyword_searchfield, NS_THEME_SEARCHFIELD,
|
2001-12-18 01:51:39 +03:00
|
|
|
eCSSKeyword_menulist, NS_THEME_DROPDOWN,
|
|
|
|
eCSSKeyword_menulistbutton, NS_THEME_DROPDOWN_BUTTON,
|
2002-01-15 17:59:21 +03:00
|
|
|
eCSSKeyword_menulisttext, NS_THEME_DROPDOWN_TEXT,
|
2002-02-12 03:44:36 +03:00
|
|
|
eCSSKeyword_menulisttextfield, NS_THEME_DROPDOWN_TEXTFIELD,
|
2006-05-30 17:50:48 +04:00
|
|
|
eCSSKeyword_scale_horizontal, NS_THEME_SCALE_HORIZONTAL,
|
|
|
|
eCSSKeyword_scale_vertical, NS_THEME_SCALE_VERTICAL,
|
|
|
|
eCSSKeyword_scalethumb_horizontal, NS_THEME_SCALE_THUMB_HORIZONTAL,
|
|
|
|
eCSSKeyword_scalethumb_vertical, NS_THEME_SCALE_THUMB_VERTICAL,
|
|
|
|
eCSSKeyword_scalethumbstart, NS_THEME_SCALE_THUMB_START,
|
|
|
|
eCSSKeyword_scalethumbend, NS_THEME_SCALE_THUMB_END,
|
|
|
|
eCSSKeyword_scalethumbtick, NS_THEME_SCALE_TICK,
|
2008-03-13 23:24:29 +03:00
|
|
|
eCSSKeyword_groupbox, NS_THEME_GROUPBOX,
|
2002-01-09 04:26:16 +03:00
|
|
|
eCSSKeyword_checkboxcontainer, NS_THEME_CHECKBOX_CONTAINER,
|
|
|
|
eCSSKeyword_radiocontainer, NS_THEME_RADIO_CONTAINER,
|
2004-06-23 02:10:12 +04:00
|
|
|
eCSSKeyword_checkboxlabel, NS_THEME_CHECKBOX_LABEL,
|
|
|
|
eCSSKeyword_radiolabel, NS_THEME_RADIO_LABEL,
|
2004-09-06 07:59:31 +04:00
|
|
|
eCSSKeyword_buttonfocus, NS_THEME_BUTTON_FOCUS,
|
2002-01-30 00:10:57 +03:00
|
|
|
eCSSKeyword_window, NS_THEME_WINDOW,
|
|
|
|
eCSSKeyword_dialog, NS_THEME_DIALOG,
|
|
|
|
eCSSKeyword_menubar, NS_THEME_MENUBAR,
|
2004-03-04 07:55:31 +03:00
|
|
|
eCSSKeyword_menupopup, NS_THEME_MENUPOPUP,
|
|
|
|
eCSSKeyword_menuitem, NS_THEME_MENUITEM,
|
2005-02-18 09:03:08 +03:00
|
|
|
eCSSKeyword_checkmenuitem, NS_THEME_CHECKMENUITEM,
|
|
|
|
eCSSKeyword_radiomenuitem, NS_THEME_RADIOMENUITEM,
|
2007-07-14 19:11:37 +04:00
|
|
|
eCSSKeyword_menucheckbox, NS_THEME_MENUCHECKBOX,
|
|
|
|
eCSSKeyword_menuradio, NS_THEME_MENURADIO,
|
|
|
|
eCSSKeyword_menuseparator, NS_THEME_MENUSEPARATOR,
|
|
|
|
eCSSKeyword_menuarrow, NS_THEME_MENUARROW,
|
2007-08-06 21:45:57 +04:00
|
|
|
eCSSKeyword_menuimage, NS_THEME_MENUIMAGE,
|
|
|
|
eCSSKeyword_menuitemtext, NS_THEME_MENUITEMTEXT,
|
2008-05-08 13:29:38 +04:00
|
|
|
eCSSKeyword__moz_win_media_toolbox, NS_THEME_WIN_MEDIA_TOOLBOX,
|
|
|
|
eCSSKeyword__moz_win_communications_toolbox, NS_THEME_WIN_COMMUNICATIONS_TOOLBOX,
|
|
|
|
eCSSKeyword__moz_win_browsertabbar_toolbox, NS_THEME_WIN_BROWSER_TAB_BAR_TOOLBOX,
|
2008-08-13 04:44:14 +04:00
|
|
|
eCSSKeyword__moz_win_glass, NS_THEME_WIN_GLASS,
|
2010-08-18 07:07:10 +04:00
|
|
|
eCSSKeyword__moz_win_borderless_glass, NS_THEME_WIN_BORDERLESS_GLASS,
|
2010-08-10 05:49:34 +04:00
|
|
|
eCSSKeyword__moz_mac_unified_toolbar, NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR,
|
|
|
|
eCSSKeyword__moz_window_titlebar, NS_THEME_WINDOW_TITLEBAR,
|
|
|
|
eCSSKeyword__moz_window_titlebar_maximized, NS_THEME_WINDOW_TITLEBAR_MAXIMIZED,
|
|
|
|
eCSSKeyword__moz_window_frame_left, NS_THEME_WINDOW_FRAME_LEFT,
|
|
|
|
eCSSKeyword__moz_window_frame_right, NS_THEME_WINDOW_FRAME_RIGHT,
|
|
|
|
eCSSKeyword__moz_window_frame_bottom, NS_THEME_WINDOW_FRAME_BOTTOM,
|
|
|
|
eCSSKeyword__moz_window_button_close, NS_THEME_WINDOW_BUTTON_CLOSE,
|
|
|
|
eCSSKeyword__moz_window_button_minimize, NS_THEME_WINDOW_BUTTON_MINIMIZE,
|
|
|
|
eCSSKeyword__moz_window_button_maximize, NS_THEME_WINDOW_BUTTON_MAXIMIZE,
|
|
|
|
eCSSKeyword__moz_window_button_restore, NS_THEME_WINDOW_BUTTON_RESTORE,
|
2010-08-10 05:49:34 +04:00
|
|
|
eCSSKeyword__moz_window_button_box, NS_THEME_WINDOW_BUTTON_BOX,
|
|
|
|
eCSSKeyword__moz_window_button_box_maximized, NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED,
|
2011-05-13 20:40:46 +04:00
|
|
|
eCSSKeyword__moz_win_exclude_glass, NS_THEME_WIN_EXCLUDE_GLASS,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
2001-12-18 01:51:39 +03:00
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kBackgroundAttachmentKTable[] = {
|
|
|
|
eCSSKeyword_fixed, NS_STYLE_BG_ATTACHMENT_FIXED,
|
|
|
|
eCSSKeyword_scroll, NS_STYLE_BG_ATTACHMENT_SCROLL,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2003-01-17 12:33:52 +03:00
|
|
|
const PRInt32 nsCSSProps::kBackgroundInlinePolicyKTable[] = {
|
|
|
|
eCSSKeyword_each_box, NS_STYLE_BG_INLINE_POLICY_EACH_BOX,
|
|
|
|
eCSSKeyword_continuous, NS_STYLE_BG_INLINE_POLICY_CONTINUOUS,
|
|
|
|
eCSSKeyword_bounding_box, NS_STYLE_BG_INLINE_POLICY_BOUNDING_BOX,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
2003-01-17 12:33:52 +03:00
|
|
|
};
|
|
|
|
|
2010-06-09 05:44:32 +04:00
|
|
|
PR_STATIC_ASSERT(NS_STYLE_BG_CLIP_BORDER == NS_STYLE_BG_ORIGIN_BORDER);
|
|
|
|
PR_STATIC_ASSERT(NS_STYLE_BG_CLIP_PADDING == NS_STYLE_BG_ORIGIN_PADDING);
|
|
|
|
PR_STATIC_ASSERT(NS_STYLE_BG_CLIP_CONTENT == NS_STYLE_BG_ORIGIN_CONTENT);
|
2002-10-08 14:24:53 +04:00
|
|
|
const PRInt32 nsCSSProps::kBackgroundOriginKTable[] = {
|
2010-06-09 05:44:33 +04:00
|
|
|
eCSSKeyword_border_box, NS_STYLE_BG_ORIGIN_BORDER,
|
|
|
|
eCSSKeyword_padding_box, NS_STYLE_BG_ORIGIN_PADDING,
|
|
|
|
eCSSKeyword_content_box, NS_STYLE_BG_ORIGIN_CONTENT,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
2002-10-08 14:24:53 +04:00
|
|
|
};
|
|
|
|
|
2007-04-19 00:41:14 +04:00
|
|
|
// Note: Don't change this table unless you update
|
|
|
|
// parseBackgroundPosition!
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kBackgroundPositionKTable[] = {
|
|
|
|
eCSSKeyword_center, NS_STYLE_BG_POSITION_CENTER,
|
|
|
|
eCSSKeyword_top, NS_STYLE_BG_POSITION_TOP,
|
|
|
|
eCSSKeyword_bottom, NS_STYLE_BG_POSITION_BOTTOM,
|
|
|
|
eCSSKeyword_left, NS_STYLE_BG_POSITION_LEFT,
|
|
|
|
eCSSKeyword_right, NS_STYLE_BG_POSITION_RIGHT,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kBackgroundRepeatKTable[] = {
|
|
|
|
eCSSKeyword_no_repeat, NS_STYLE_BG_REPEAT_OFF,
|
|
|
|
eCSSKeyword_repeat, NS_STYLE_BG_REPEAT_XY,
|
|
|
|
eCSSKeyword_repeat_x, NS_STYLE_BG_REPEAT_X,
|
|
|
|
eCSSKeyword_repeat_y, NS_STYLE_BG_REPEAT_Y,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2009-05-28 22:09:05 +04:00
|
|
|
const PRInt32 nsCSSProps::kBackgroundSizeKTable[] = {
|
|
|
|
eCSSKeyword_contain, NS_STYLE_BG_SIZE_CONTAIN,
|
|
|
|
eCSSKeyword_cover, NS_STYLE_BG_SIZE_COVER,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kBorderCollapseKTable[] = {
|
|
|
|
eCSSKeyword_collapse, NS_STYLE_BORDER_COLLAPSE,
|
|
|
|
eCSSKeyword_separate, NS_STYLE_BORDER_SEPARATE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kBorderColorKTable[] = {
|
2001-05-02 14:31:31 +04:00
|
|
|
eCSSKeyword__moz_use_text_color, NS_STYLE_COLOR_MOZ_USE_TEXT_COLOR,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2008-07-17 10:30:25 +04:00
|
|
|
const PRInt32 nsCSSProps::kBorderImageKTable[] = {
|
|
|
|
eCSSKeyword_stretch, NS_STYLE_BORDER_IMAGE_STRETCH,
|
|
|
|
eCSSKeyword_repeat, NS_STYLE_BORDER_IMAGE_REPEAT,
|
|
|
|
eCSSKeyword_round, NS_STYLE_BORDER_IMAGE_ROUND,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kBorderStyleKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_BORDER_STYLE_NONE,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_hidden, NS_STYLE_BORDER_STYLE_HIDDEN,
|
|
|
|
eCSSKeyword_dotted, NS_STYLE_BORDER_STYLE_DOTTED,
|
|
|
|
eCSSKeyword_dashed, NS_STYLE_BORDER_STYLE_DASHED,
|
|
|
|
eCSSKeyword_solid, NS_STYLE_BORDER_STYLE_SOLID,
|
|
|
|
eCSSKeyword_double, NS_STYLE_BORDER_STYLE_DOUBLE,
|
|
|
|
eCSSKeyword_groove, NS_STYLE_BORDER_STYLE_GROOVE,
|
|
|
|
eCSSKeyword_ridge, NS_STYLE_BORDER_STYLE_RIDGE,
|
|
|
|
eCSSKeyword_inset, NS_STYLE_BORDER_STYLE_INSET,
|
|
|
|
eCSSKeyword_outset, NS_STYLE_BORDER_STYLE_OUTSET,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kBorderWidthKTable[] = {
|
|
|
|
eCSSKeyword_thin, NS_STYLE_BORDER_WIDTH_THIN,
|
|
|
|
eCSSKeyword_medium, NS_STYLE_BORDER_WIDTH_MEDIUM,
|
|
|
|
eCSSKeyword_thick, NS_STYLE_BORDER_WIDTH_THICK,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2004-02-04 09:10:56 +03:00
|
|
|
const PRInt32 nsCSSProps::kBoxPropSourceKTable[] = {
|
|
|
|
eCSSKeyword_physical, NS_BOXPROP_SOURCE_PHYSICAL,
|
|
|
|
eCSSKeyword_logical, NS_BOXPROP_SOURCE_LOGICAL,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
2004-02-04 09:10:56 +03:00
|
|
|
};
|
|
|
|
|
2009-02-10 11:45:13 +03:00
|
|
|
const PRInt32 nsCSSProps::kBoxShadowTypeKTable[] = {
|
|
|
|
eCSSKeyword_inset, NS_STYLE_BOX_SHADOW_INSET,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kBoxSizingKTable[] = {
|
|
|
|
eCSSKeyword_content_box, NS_STYLE_BOX_SIZING_CONTENT,
|
|
|
|
eCSSKeyword_border_box, NS_STYLE_BOX_SIZING_BORDER,
|
|
|
|
eCSSKeyword_padding_box, NS_STYLE_BOX_SIZING_PADDING,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kCaptionSideKTable[] = {
|
2008-02-27 05:02:20 +03:00
|
|
|
eCSSKeyword_top, NS_STYLE_CAPTION_SIDE_TOP,
|
|
|
|
eCSSKeyword_right, NS_STYLE_CAPTION_SIDE_RIGHT,
|
|
|
|
eCSSKeyword_bottom, NS_STYLE_CAPTION_SIDE_BOTTOM,
|
|
|
|
eCSSKeyword_left, NS_STYLE_CAPTION_SIDE_LEFT,
|
|
|
|
eCSSKeyword_top_outside, NS_STYLE_CAPTION_SIDE_TOP_OUTSIDE,
|
|
|
|
eCSSKeyword_bottom_outside, NS_STYLE_CAPTION_SIDE_BOTTOM_OUTSIDE,
|
|
|
|
eCSSKeyword_UNKNOWN, -1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kClearKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_CLEAR_NONE,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_left, NS_STYLE_CLEAR_LEFT,
|
|
|
|
eCSSKeyword_right, NS_STYLE_CLEAR_RIGHT,
|
|
|
|
eCSSKeyword_both, NS_STYLE_CLEAR_LEFT_AND_RIGHT,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
1999-09-10 09:54:46 +04:00
|
|
|
const PRInt32 nsCSSProps::kColorKTable[] = {
|
1999-09-30 15:55:15 +04:00
|
|
|
eCSSKeyword_activeborder, nsILookAndFeel::eColor_activeborder,
|
|
|
|
eCSSKeyword_activecaption, nsILookAndFeel::eColor_activecaption,
|
|
|
|
eCSSKeyword_appworkspace, nsILookAndFeel::eColor_appworkspace,
|
|
|
|
eCSSKeyword_background, nsILookAndFeel::eColor_background,
|
|
|
|
eCSSKeyword_buttonface, nsILookAndFeel::eColor_buttonface,
|
|
|
|
eCSSKeyword_buttonhighlight, nsILookAndFeel::eColor_buttonhighlight,
|
|
|
|
eCSSKeyword_buttonshadow, nsILookAndFeel::eColor_buttonshadow,
|
|
|
|
eCSSKeyword_buttontext, nsILookAndFeel::eColor_buttontext,
|
|
|
|
eCSSKeyword_captiontext, nsILookAndFeel::eColor_captiontext,
|
|
|
|
eCSSKeyword_graytext, nsILookAndFeel::eColor_graytext,
|
|
|
|
eCSSKeyword_highlight, nsILookAndFeel::eColor_highlight,
|
|
|
|
eCSSKeyword_highlighttext, nsILookAndFeel::eColor_highlighttext,
|
|
|
|
eCSSKeyword_inactiveborder, nsILookAndFeel::eColor_inactiveborder,
|
|
|
|
eCSSKeyword_inactivecaption, nsILookAndFeel::eColor_inactivecaption,
|
|
|
|
eCSSKeyword_inactivecaptiontext, nsILookAndFeel::eColor_inactivecaptiontext,
|
|
|
|
eCSSKeyword_infobackground, nsILookAndFeel::eColor_infobackground,
|
|
|
|
eCSSKeyword_infotext, nsILookAndFeel::eColor_infotext,
|
|
|
|
eCSSKeyword_menu, nsILookAndFeel::eColor_menu,
|
|
|
|
eCSSKeyword_menutext, nsILookAndFeel::eColor_menutext,
|
|
|
|
eCSSKeyword_scrollbar, nsILookAndFeel::eColor_scrollbar,
|
|
|
|
eCSSKeyword_threeddarkshadow, nsILookAndFeel::eColor_threeddarkshadow,
|
|
|
|
eCSSKeyword_threedface, nsILookAndFeel::eColor_threedface,
|
|
|
|
eCSSKeyword_threedhighlight, nsILookAndFeel::eColor_threedhighlight,
|
|
|
|
eCSSKeyword_threedlightshadow, nsILookAndFeel::eColor_threedlightshadow,
|
|
|
|
eCSSKeyword_threedshadow, nsILookAndFeel::eColor_threedshadow,
|
|
|
|
eCSSKeyword_window, nsILookAndFeel::eColor_window,
|
|
|
|
eCSSKeyword_windowframe, nsILookAndFeel::eColor_windowframe,
|
|
|
|
eCSSKeyword_windowtext, nsILookAndFeel::eColor_windowtext,
|
2003-10-15 05:56:12 +04:00
|
|
|
eCSSKeyword__moz_activehyperlinktext, NS_COLOR_MOZ_ACTIVEHYPERLINKTEXT,
|
2003-06-19 00:47:40 +04:00
|
|
|
eCSSKeyword__moz_buttondefault, nsILookAndFeel::eColor__moz_buttondefault,
|
2004-10-26 05:45:28 +04:00
|
|
|
eCSSKeyword__moz_buttonhoverface, nsILookAndFeel::eColor__moz_buttonhoverface,
|
|
|
|
eCSSKeyword__moz_buttonhovertext, nsILookAndFeel::eColor__moz_buttonhovertext,
|
|
|
|
eCSSKeyword__moz_cellhighlight, nsILookAndFeel::eColor__moz_cellhighlight,
|
|
|
|
eCSSKeyword__moz_cellhighlighttext, nsILookAndFeel::eColor__moz_cellhighlighttext,
|
2008-04-24 12:08:33 +04:00
|
|
|
eCSSKeyword__moz_eventreerow, nsILookAndFeel::eColor__moz_eventreerow,
|
2000-10-04 04:38:03 +04:00
|
|
|
eCSSKeyword__moz_field, nsILookAndFeel::eColor__moz_field,
|
2001-04-17 04:46:07 +04:00
|
|
|
eCSSKeyword__moz_fieldtext, nsILookAndFeel::eColor__moz_fieldtext,
|
2011-03-30 13:28:05 +04:00
|
|
|
eCSSKeyword__moz_default_background_color, NS_COLOR_MOZ_DEFAULT_BACKGROUND_COLOR,
|
|
|
|
eCSSKeyword__moz_default_color, NS_COLOR_MOZ_DEFAULT_COLOR,
|
2001-04-17 04:46:07 +04:00
|
|
|
eCSSKeyword__moz_dialog, nsILookAndFeel::eColor__moz_dialog,
|
|
|
|
eCSSKeyword__moz_dialogtext, nsILookAndFeel::eColor__moz_dialogtext,
|
2000-12-06 00:49:42 +03:00
|
|
|
eCSSKeyword__moz_dragtargetzone, nsILookAndFeel::eColor__moz_dragtargetzone,
|
2002-08-06 18:39:55 +04:00
|
|
|
eCSSKeyword__moz_hyperlinktext, NS_COLOR_MOZ_HYPERLINKTEXT,
|
2008-01-24 12:31:44 +03:00
|
|
|
eCSSKeyword__moz_html_cellhighlight, nsILookAndFeel::eColor__moz_html_cellhighlight,
|
|
|
|
eCSSKeyword__moz_html_cellhighlighttext, nsILookAndFeel::eColor__moz_html_cellhighlighttext,
|
2008-09-17 15:45:30 +04:00
|
|
|
eCSSKeyword__moz_mac_chrome_active, nsILookAndFeel::eColor__moz_mac_chrome_active,
|
|
|
|
eCSSKeyword__moz_mac_chrome_inactive, nsILookAndFeel::eColor__moz_mac_chrome_inactive,
|
2000-12-06 00:49:42 +03:00
|
|
|
eCSSKeyword__moz_mac_focusring, nsILookAndFeel::eColor__moz_mac_focusring,
|
|
|
|
eCSSKeyword__moz_mac_menuselect, nsILookAndFeel::eColor__moz_mac_menuselect,
|
|
|
|
eCSSKeyword__moz_mac_menushadow, nsILookAndFeel::eColor__moz_mac_menushadow,
|
2006-07-14 23:54:08 +04:00
|
|
|
eCSSKeyword__moz_mac_menutextdisable, nsILookAndFeel::eColor__moz_mac_menutextdisable,
|
2000-12-06 00:49:42 +03:00
|
|
|
eCSSKeyword__moz_mac_menutextselect, nsILookAndFeel::eColor__moz_mac_menutextselect,
|
2008-12-09 19:48:51 +03:00
|
|
|
eCSSKeyword__moz_mac_disabledtoolbartext, nsILookAndFeel::eColor__moz_mac_disabledtoolbartext,
|
2006-06-12 23:33:07 +04:00
|
|
|
eCSSKeyword__moz_mac_alternateprimaryhighlight, nsILookAndFeel::eColor__moz_mac_alternateprimaryhighlight,
|
|
|
|
eCSSKeyword__moz_mac_secondaryhighlight, nsILookAndFeel::eColor__moz_mac_secondaryhighlight,
|
2004-10-26 05:45:28 +04:00
|
|
|
eCSSKeyword__moz_menuhover, nsILookAndFeel::eColor__moz_menuhover,
|
|
|
|
eCSSKeyword__moz_menuhovertext, nsILookAndFeel::eColor__moz_menuhovertext,
|
2009-06-15 01:58:14 +04:00
|
|
|
eCSSKeyword__moz_menubartext, nsILookAndFeel::eColor__moz_menubartext,
|
2005-10-07 04:31:36 +04:00
|
|
|
eCSSKeyword__moz_menubarhovertext, nsILookAndFeel::eColor__moz_menubarhovertext,
|
2008-04-24 12:08:33 +04:00
|
|
|
eCSSKeyword__moz_oddtreerow, nsILookAndFeel::eColor__moz_oddtreerow,
|
2002-08-06 18:39:55 +04:00
|
|
|
eCSSKeyword__moz_visitedhyperlinktext, NS_COLOR_MOZ_VISITEDHYPERLINKTEXT,
|
2004-12-10 02:51:25 +03:00
|
|
|
eCSSKeyword_currentcolor, NS_COLOR_CURRENTCOLOR,
|
2008-05-02 07:50:03 +04:00
|
|
|
eCSSKeyword__moz_win_mediatext, nsILookAndFeel::eColor__moz_win_mediatext,
|
|
|
|
eCSSKeyword__moz_win_communicationstext, nsILookAndFeel::eColor__moz_win_communicationstext,
|
2008-07-11 22:34:53 +04:00
|
|
|
eCSSKeyword__moz_nativehyperlinktext, nsILookAndFeel::eColor__moz_nativehyperlinktext,
|
2009-01-16 11:18:49 +03:00
|
|
|
eCSSKeyword__moz_comboboxtext, nsILookAndFeel::eColor__moz_comboboxtext,
|
|
|
|
eCSSKeyword__moz_combobox, nsILookAndFeel::eColor__moz_combobox,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-09-10 09:54:46 +04:00
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kContentKTable[] = {
|
|
|
|
eCSSKeyword_open_quote, NS_STYLE_CONTENT_OPEN_QUOTE,
|
|
|
|
eCSSKeyword_close_quote, NS_STYLE_CONTENT_CLOSE_QUOTE,
|
|
|
|
eCSSKeyword_no_open_quote, NS_STYLE_CONTENT_NO_OPEN_QUOTE,
|
|
|
|
eCSSKeyword_no_close_quote, NS_STYLE_CONTENT_NO_CLOSE_QUOTE,
|
2005-09-18 22:05:40 +04:00
|
|
|
eCSSKeyword__moz_alt_content, NS_STYLE_CONTENT_ALT_CONTENT,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kCursorKTable[] = {
|
2004-09-12 03:24:30 +04:00
|
|
|
// CSS 2.0
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_CURSOR_AUTO,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_crosshair, NS_STYLE_CURSOR_CROSSHAIR,
|
|
|
|
eCSSKeyword_default, NS_STYLE_CURSOR_DEFAULT,
|
|
|
|
eCSSKeyword_pointer, NS_STYLE_CURSOR_POINTER,
|
|
|
|
eCSSKeyword_move, NS_STYLE_CURSOR_MOVE,
|
|
|
|
eCSSKeyword_e_resize, NS_STYLE_CURSOR_E_RESIZE,
|
|
|
|
eCSSKeyword_ne_resize, NS_STYLE_CURSOR_NE_RESIZE,
|
|
|
|
eCSSKeyword_nw_resize, NS_STYLE_CURSOR_NW_RESIZE,
|
|
|
|
eCSSKeyword_n_resize, NS_STYLE_CURSOR_N_RESIZE,
|
|
|
|
eCSSKeyword_se_resize, NS_STYLE_CURSOR_SE_RESIZE,
|
|
|
|
eCSSKeyword_sw_resize, NS_STYLE_CURSOR_SW_RESIZE,
|
|
|
|
eCSSKeyword_s_resize, NS_STYLE_CURSOR_S_RESIZE,
|
|
|
|
eCSSKeyword_w_resize, NS_STYLE_CURSOR_W_RESIZE,
|
|
|
|
eCSSKeyword_text, NS_STYLE_CURSOR_TEXT,
|
|
|
|
eCSSKeyword_wait, NS_STYLE_CURSOR_WAIT,
|
|
|
|
eCSSKeyword_help, NS_STYLE_CURSOR_HELP,
|
2004-01-09 00:27:56 +03:00
|
|
|
// CSS 2.1
|
|
|
|
eCSSKeyword_progress, NS_STYLE_CURSOR_SPINNING,
|
2004-09-12 03:24:30 +04:00
|
|
|
// CSS3 basic user interface module
|
|
|
|
eCSSKeyword_copy, NS_STYLE_CURSOR_COPY,
|
|
|
|
eCSSKeyword_alias, NS_STYLE_CURSOR_ALIAS,
|
|
|
|
eCSSKeyword_context_menu, NS_STYLE_CURSOR_CONTEXT_MENU,
|
|
|
|
eCSSKeyword_cell, NS_STYLE_CURSOR_CELL,
|
|
|
|
eCSSKeyword_not_allowed, NS_STYLE_CURSOR_NOT_ALLOWED,
|
|
|
|
eCSSKeyword_col_resize, NS_STYLE_CURSOR_COL_RESIZE,
|
|
|
|
eCSSKeyword_row_resize, NS_STYLE_CURSOR_ROW_RESIZE,
|
|
|
|
eCSSKeyword_no_drop, NS_STYLE_CURSOR_NO_DROP,
|
|
|
|
eCSSKeyword_vertical_text, NS_STYLE_CURSOR_VERTICAL_TEXT,
|
|
|
|
eCSSKeyword_all_scroll, NS_STYLE_CURSOR_ALL_SCROLL,
|
|
|
|
eCSSKeyword_nesw_resize, NS_STYLE_CURSOR_NESW_RESIZE,
|
|
|
|
eCSSKeyword_nwse_resize, NS_STYLE_CURSOR_NWSE_RESIZE,
|
|
|
|
eCSSKeyword_ns_resize, NS_STYLE_CURSOR_NS_RESIZE,
|
|
|
|
eCSSKeyword_ew_resize, NS_STYLE_CURSOR_EW_RESIZE,
|
2008-01-18 21:39:49 +03:00
|
|
|
eCSSKeyword_none, NS_STYLE_CURSOR_NONE,
|
2004-09-12 03:24:30 +04:00
|
|
|
// -moz- prefixed vendor specific
|
2002-05-01 04:17:04 +04:00
|
|
|
eCSSKeyword__moz_grab, NS_STYLE_CURSOR_GRAB,
|
|
|
|
eCSSKeyword__moz_grabbing, NS_STYLE_CURSOR_GRABBING,
|
2003-05-03 02:23:55 +04:00
|
|
|
eCSSKeyword__moz_zoom_in, NS_STYLE_CURSOR_MOZ_ZOOM_IN,
|
|
|
|
eCSSKeyword__moz_zoom_out, NS_STYLE_CURSOR_MOZ_ZOOM_OUT,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kDirectionKTable[] = {
|
|
|
|
eCSSKeyword_ltr, NS_STYLE_DIRECTION_LTR,
|
|
|
|
eCSSKeyword_rtl, NS_STYLE_DIRECTION_RTL,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kDisplayKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_DISPLAY_NONE,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_inline, NS_STYLE_DISPLAY_INLINE,
|
|
|
|
eCSSKeyword_block, NS_STYLE_DISPLAY_BLOCK,
|
2007-01-27 21:36:57 +03:00
|
|
|
eCSSKeyword_inline_block, NS_STYLE_DISPLAY_INLINE_BLOCK,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_list_item, NS_STYLE_DISPLAY_LIST_ITEM,
|
|
|
|
eCSSKeyword_table, NS_STYLE_DISPLAY_TABLE,
|
2007-01-27 21:36:57 +03:00
|
|
|
eCSSKeyword_inline_table, NS_STYLE_DISPLAY_INLINE_TABLE,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_table_row_group, NS_STYLE_DISPLAY_TABLE_ROW_GROUP,
|
|
|
|
eCSSKeyword_table_header_group, NS_STYLE_DISPLAY_TABLE_HEADER_GROUP,
|
|
|
|
eCSSKeyword_table_footer_group, NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP,
|
|
|
|
eCSSKeyword_table_row, NS_STYLE_DISPLAY_TABLE_ROW,
|
|
|
|
eCSSKeyword_table_column_group, NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP,
|
|
|
|
eCSSKeyword_table_column, NS_STYLE_DISPLAY_TABLE_COLUMN,
|
|
|
|
eCSSKeyword_table_cell, NS_STYLE_DISPLAY_TABLE_CELL,
|
|
|
|
eCSSKeyword_table_caption, NS_STYLE_DISPLAY_TABLE_CAPTION,
|
2006-04-19 19:10:50 +04:00
|
|
|
// Make sure this is kept in sync with the code in
|
|
|
|
// nsCSSFrameConstructor::ConstructXULFrame
|
2001-08-02 04:09:27 +04:00
|
|
|
eCSSKeyword__moz_box, NS_STYLE_DISPLAY_BOX,
|
|
|
|
eCSSKeyword__moz_inline_box, NS_STYLE_DISPLAY_INLINE_BOX,
|
2009-10-13 10:35:57 +04:00
|
|
|
#ifdef MOZ_XUL
|
2001-08-02 04:09:27 +04:00
|
|
|
eCSSKeyword__moz_grid, NS_STYLE_DISPLAY_GRID,
|
|
|
|
eCSSKeyword__moz_inline_grid, NS_STYLE_DISPLAY_INLINE_GRID,
|
|
|
|
eCSSKeyword__moz_grid_group, NS_STYLE_DISPLAY_GRID_GROUP,
|
|
|
|
eCSSKeyword__moz_grid_line, NS_STYLE_DISPLAY_GRID_LINE,
|
|
|
|
eCSSKeyword__moz_stack, NS_STYLE_DISPLAY_STACK,
|
|
|
|
eCSSKeyword__moz_inline_stack, NS_STYLE_DISPLAY_INLINE_STACK,
|
|
|
|
eCSSKeyword__moz_deck, NS_STYLE_DISPLAY_DECK,
|
|
|
|
eCSSKeyword__moz_popup, NS_STYLE_DISPLAY_POPUP,
|
|
|
|
eCSSKeyword__moz_groupbox, NS_STYLE_DISPLAY_GROUPBOX,
|
2006-04-19 19:10:50 +04:00
|
|
|
#endif
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kEmptyCellsKTable[] = {
|
2002-05-01 04:17:04 +04:00
|
|
|
eCSSKeyword_show, NS_STYLE_TABLE_EMPTY_CELLS_SHOW,
|
|
|
|
eCSSKeyword_hide, NS_STYLE_TABLE_EMPTY_CELLS_HIDE,
|
|
|
|
eCSSKeyword__moz_show_background, NS_STYLE_TABLE_EMPTY_CELLS_SHOW_BACKGROUND,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kFloatKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_FLOAT_NONE,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_left, NS_STYLE_FLOAT_LEFT,
|
|
|
|
eCSSKeyword_right, NS_STYLE_FLOAT_RIGHT,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kFloatEdgeKTable[] = {
|
|
|
|
eCSSKeyword_content_box, NS_STYLE_FLOAT_EDGE_CONTENT,
|
|
|
|
eCSSKeyword_margin_box, NS_STYLE_FLOAT_EDGE_MARGIN,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kFontKTable[] = {
|
2002-05-01 04:17:04 +04:00
|
|
|
// CSS2.
|
|
|
|
eCSSKeyword_caption, NS_STYLE_FONT_CAPTION,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_icon, NS_STYLE_FONT_ICON,
|
|
|
|
eCSSKeyword_menu, NS_STYLE_FONT_MENU,
|
|
|
|
eCSSKeyword_message_box, NS_STYLE_FONT_MESSAGE_BOX,
|
|
|
|
eCSSKeyword_small_caption, NS_STYLE_FONT_SMALL_CAPTION,
|
|
|
|
eCSSKeyword_status_bar, NS_STYLE_FONT_STATUS_BAR,
|
2002-05-01 04:17:04 +04:00
|
|
|
|
|
|
|
// Proposed for CSS3.
|
|
|
|
eCSSKeyword__moz_window, NS_STYLE_FONT_WINDOW,
|
|
|
|
eCSSKeyword__moz_document, NS_STYLE_FONT_DOCUMENT,
|
|
|
|
eCSSKeyword__moz_workspace, NS_STYLE_FONT_WORKSPACE,
|
|
|
|
eCSSKeyword__moz_desktop, NS_STYLE_FONT_DESKTOP,
|
|
|
|
eCSSKeyword__moz_info, NS_STYLE_FONT_INFO,
|
|
|
|
eCSSKeyword__moz_dialog, NS_STYLE_FONT_DIALOG,
|
|
|
|
eCSSKeyword__moz_button, NS_STYLE_FONT_BUTTON,
|
|
|
|
eCSSKeyword__moz_pull_down_menu, NS_STYLE_FONT_PULL_DOWN_MENU,
|
|
|
|
eCSSKeyword__moz_list, NS_STYLE_FONT_LIST,
|
|
|
|
eCSSKeyword__moz_field, NS_STYLE_FONT_FIELD,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kFontSizeKTable[] = {
|
|
|
|
eCSSKeyword_xx_small, NS_STYLE_FONT_SIZE_XXSMALL,
|
|
|
|
eCSSKeyword_x_small, NS_STYLE_FONT_SIZE_XSMALL,
|
|
|
|
eCSSKeyword_small, NS_STYLE_FONT_SIZE_SMALL,
|
|
|
|
eCSSKeyword_medium, NS_STYLE_FONT_SIZE_MEDIUM,
|
|
|
|
eCSSKeyword_large, NS_STYLE_FONT_SIZE_LARGE,
|
|
|
|
eCSSKeyword_x_large, NS_STYLE_FONT_SIZE_XLARGE,
|
|
|
|
eCSSKeyword_xx_large, NS_STYLE_FONT_SIZE_XXLARGE,
|
|
|
|
eCSSKeyword_larger, NS_STYLE_FONT_SIZE_LARGER,
|
|
|
|
eCSSKeyword_smaller, NS_STYLE_FONT_SIZE_SMALLER,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kFontStretchKTable[] = {
|
|
|
|
eCSSKeyword_ultra_condensed, NS_STYLE_FONT_STRETCH_ULTRA_CONDENSED,
|
|
|
|
eCSSKeyword_extra_condensed, NS_STYLE_FONT_STRETCH_EXTRA_CONDENSED,
|
|
|
|
eCSSKeyword_condensed, NS_STYLE_FONT_STRETCH_CONDENSED,
|
|
|
|
eCSSKeyword_semi_condensed, NS_STYLE_FONT_STRETCH_SEMI_CONDENSED,
|
2009-11-15 06:16:59 +03:00
|
|
|
eCSSKeyword_normal, NS_STYLE_FONT_STRETCH_NORMAL,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_semi_expanded, NS_STYLE_FONT_STRETCH_SEMI_EXPANDED,
|
|
|
|
eCSSKeyword_expanded, NS_STYLE_FONT_STRETCH_EXPANDED,
|
|
|
|
eCSSKeyword_extra_expanded, NS_STYLE_FONT_STRETCH_EXTRA_EXPANDED,
|
|
|
|
eCSSKeyword_ultra_expanded, NS_STYLE_FONT_STRETCH_ULTRA_EXPANDED,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kFontStyleKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_normal, NS_STYLE_FONT_STYLE_NORMAL,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_italic, NS_STYLE_FONT_STYLE_ITALIC,
|
|
|
|
eCSSKeyword_oblique, NS_STYLE_FONT_STYLE_OBLIQUE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kFontVariantKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_normal, NS_STYLE_FONT_VARIANT_NORMAL,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_small_caps, NS_STYLE_FONT_VARIANT_SMALL_CAPS,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kFontWeightKTable[] = {
|
2009-11-15 06:16:59 +03:00
|
|
|
eCSSKeyword_normal, NS_STYLE_FONT_WEIGHT_NORMAL,
|
2002-05-01 04:17:04 +04:00
|
|
|
eCSSKeyword_bold, NS_STYLE_FONT_WEIGHT_BOLD,
|
|
|
|
eCSSKeyword_bolder, NS_STYLE_FONT_WEIGHT_BOLDER,
|
|
|
|
eCSSKeyword_lighter, NS_STYLE_FONT_WEIGHT_LIGHTER,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2007-05-16 19:51:37 +04:00
|
|
|
const PRInt32 nsCSSProps::kIMEModeKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_normal, NS_STYLE_IME_MODE_NORMAL,
|
|
|
|
eCSSKeyword_auto, NS_STYLE_IME_MODE_AUTO,
|
2007-05-16 19:51:37 +04:00
|
|
|
eCSSKeyword_active, NS_STYLE_IME_MODE_ACTIVE,
|
|
|
|
eCSSKeyword_disabled, NS_STYLE_IME_MODE_DISABLED,
|
|
|
|
eCSSKeyword_inactive, NS_STYLE_IME_MODE_INACTIVE,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
2009-05-19 02:13:12 +04:00
|
|
|
const PRInt32 nsCSSProps::kLineHeightKTable[] = {
|
|
|
|
// -moz- prefixed, intended for internal use for single-line controls
|
|
|
|
eCSSKeyword__moz_block_height, NS_STYLE_LINE_HEIGHT_BLOCK_HEIGHT,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kListStylePositionKTable[] = {
|
|
|
|
eCSSKeyword_inside, NS_STYLE_LIST_STYLE_POSITION_INSIDE,
|
|
|
|
eCSSKeyword_outside, NS_STYLE_LIST_STYLE_POSITION_OUTSIDE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kListStyleKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_LIST_STYLE_NONE,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_disc, NS_STYLE_LIST_STYLE_DISC,
|
|
|
|
eCSSKeyword_circle, NS_STYLE_LIST_STYLE_CIRCLE,
|
|
|
|
eCSSKeyword_square, NS_STYLE_LIST_STYLE_SQUARE,
|
|
|
|
eCSSKeyword_decimal, NS_STYLE_LIST_STYLE_DECIMAL,
|
|
|
|
eCSSKeyword_decimal_leading_zero, NS_STYLE_LIST_STYLE_DECIMAL_LEADING_ZERO,
|
|
|
|
eCSSKeyword_lower_roman, NS_STYLE_LIST_STYLE_LOWER_ROMAN,
|
|
|
|
eCSSKeyword_upper_roman, NS_STYLE_LIST_STYLE_UPPER_ROMAN,
|
|
|
|
eCSSKeyword_lower_greek, NS_STYLE_LIST_STYLE_LOWER_GREEK,
|
|
|
|
eCSSKeyword_lower_alpha, NS_STYLE_LIST_STYLE_LOWER_ALPHA,
|
|
|
|
eCSSKeyword_lower_latin, NS_STYLE_LIST_STYLE_LOWER_LATIN,
|
|
|
|
eCSSKeyword_upper_alpha, NS_STYLE_LIST_STYLE_UPPER_ALPHA,
|
|
|
|
eCSSKeyword_upper_latin, NS_STYLE_LIST_STYLE_UPPER_LATIN,
|
|
|
|
eCSSKeyword_hebrew, NS_STYLE_LIST_STYLE_HEBREW,
|
|
|
|
eCSSKeyword_armenian, NS_STYLE_LIST_STYLE_ARMENIAN,
|
|
|
|
eCSSKeyword_georgian, NS_STYLE_LIST_STYLE_GEORGIAN,
|
|
|
|
eCSSKeyword_cjk_ideographic, NS_STYLE_LIST_STYLE_CJK_IDEOGRAPHIC,
|
|
|
|
eCSSKeyword_hiragana, NS_STYLE_LIST_STYLE_HIRAGANA,
|
|
|
|
eCSSKeyword_katakana, NS_STYLE_LIST_STYLE_KATAKANA,
|
|
|
|
eCSSKeyword_hiragana_iroha, NS_STYLE_LIST_STYLE_HIRAGANA_IROHA,
|
|
|
|
eCSSKeyword_katakana_iroha, NS_STYLE_LIST_STYLE_KATAKANA_IROHA,
|
2001-07-04 06:05:59 +04:00
|
|
|
eCSSKeyword__moz_cjk_heavenly_stem, NS_STYLE_LIST_STYLE_MOZ_CJK_HEAVENLY_STEM,
|
|
|
|
eCSSKeyword__moz_cjk_earthly_branch, NS_STYLE_LIST_STYLE_MOZ_CJK_EARTHLY_BRANCH,
|
|
|
|
eCSSKeyword__moz_trad_chinese_informal, NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_INFORMAL,
|
|
|
|
eCSSKeyword__moz_trad_chinese_formal, NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_FORMAL,
|
|
|
|
eCSSKeyword__moz_simp_chinese_informal, NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_INFORMAL,
|
|
|
|
eCSSKeyword__moz_simp_chinese_formal, NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_FORMAL,
|
|
|
|
eCSSKeyword__moz_japanese_informal, NS_STYLE_LIST_STYLE_MOZ_JAPANESE_INFORMAL,
|
|
|
|
eCSSKeyword__moz_japanese_formal, NS_STYLE_LIST_STYLE_MOZ_JAPANESE_FORMAL,
|
|
|
|
eCSSKeyword__moz_arabic_indic, NS_STYLE_LIST_STYLE_MOZ_ARABIC_INDIC,
|
|
|
|
eCSSKeyword__moz_persian, NS_STYLE_LIST_STYLE_MOZ_PERSIAN,
|
|
|
|
eCSSKeyword__moz_urdu, NS_STYLE_LIST_STYLE_MOZ_URDU,
|
|
|
|
eCSSKeyword__moz_devanagari, NS_STYLE_LIST_STYLE_MOZ_DEVANAGARI,
|
|
|
|
eCSSKeyword__moz_gurmukhi, NS_STYLE_LIST_STYLE_MOZ_GURMUKHI,
|
|
|
|
eCSSKeyword__moz_gujarati, NS_STYLE_LIST_STYLE_MOZ_GUJARATI,
|
|
|
|
eCSSKeyword__moz_oriya, NS_STYLE_LIST_STYLE_MOZ_ORIYA,
|
|
|
|
eCSSKeyword__moz_kannada, NS_STYLE_LIST_STYLE_MOZ_KANNADA,
|
|
|
|
eCSSKeyword__moz_malayalam, NS_STYLE_LIST_STYLE_MOZ_MALAYALAM,
|
|
|
|
eCSSKeyword__moz_bengali, NS_STYLE_LIST_STYLE_MOZ_BENGALI,
|
|
|
|
eCSSKeyword__moz_tamil, NS_STYLE_LIST_STYLE_MOZ_TAMIL,
|
|
|
|
eCSSKeyword__moz_telugu, NS_STYLE_LIST_STYLE_MOZ_TELUGU,
|
|
|
|
eCSSKeyword__moz_thai, NS_STYLE_LIST_STYLE_MOZ_THAI,
|
|
|
|
eCSSKeyword__moz_lao, NS_STYLE_LIST_STYLE_MOZ_LAO,
|
|
|
|
eCSSKeyword__moz_myanmar, NS_STYLE_LIST_STYLE_MOZ_MYANMAR,
|
|
|
|
eCSSKeyword__moz_khmer, NS_STYLE_LIST_STYLE_MOZ_KHMER,
|
|
|
|
eCSSKeyword__moz_hangul, NS_STYLE_LIST_STYLE_MOZ_HANGUL,
|
|
|
|
eCSSKeyword__moz_hangul_consonant, NS_STYLE_LIST_STYLE_MOZ_HANGUL_CONSONANT,
|
2002-02-15 12:21:08 +03:00
|
|
|
eCSSKeyword__moz_ethiopic_halehame, NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME,
|
|
|
|
eCSSKeyword__moz_ethiopic_numeric, NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_NUMERIC,
|
2002-07-13 00:46:19 +04:00
|
|
|
eCSSKeyword__moz_ethiopic_halehame_am, NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_AM,
|
|
|
|
eCSSKeyword__moz_ethiopic_halehame_ti_er, NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ER,
|
|
|
|
eCSSKeyword__moz_ethiopic_halehame_ti_et, NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ET,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2011-05-10 17:47:46 +04:00
|
|
|
const PRInt32 nsCSSProps::kOrientKTable[] = {
|
|
|
|
eCSSKeyword_horizontal, NS_STYLE_ORIENT_HORIZONTAL,
|
|
|
|
eCSSKeyword_vertical, NS_STYLE_ORIENT_VERTICAL,
|
|
|
|
eCSSKeyword_UNKNOWN, -1
|
|
|
|
};
|
|
|
|
|
2005-03-27 15:36:08 +04:00
|
|
|
// Same as kBorderStyleKTable except 'hidden'.
|
|
|
|
const PRInt32 nsCSSProps::kOutlineStyleKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_BORDER_STYLE_NONE,
|
|
|
|
eCSSKeyword_auto, NS_STYLE_BORDER_STYLE_AUTO,
|
2005-03-27 15:36:08 +04:00
|
|
|
eCSSKeyword_dotted, NS_STYLE_BORDER_STYLE_DOTTED,
|
|
|
|
eCSSKeyword_dashed, NS_STYLE_BORDER_STYLE_DASHED,
|
|
|
|
eCSSKeyword_solid, NS_STYLE_BORDER_STYLE_SOLID,
|
|
|
|
eCSSKeyword_double, NS_STYLE_BORDER_STYLE_DOUBLE,
|
|
|
|
eCSSKeyword_groove, NS_STYLE_BORDER_STYLE_GROOVE,
|
|
|
|
eCSSKeyword_ridge, NS_STYLE_BORDER_STYLE_RIDGE,
|
|
|
|
eCSSKeyword_inset, NS_STYLE_BORDER_STYLE_INSET,
|
|
|
|
eCSSKeyword_outset, NS_STYLE_BORDER_STYLE_OUTSET,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kOutlineColorKTable[] = {
|
2007-03-15 19:16:20 +03:00
|
|
|
#ifdef GFX_HAS_INVERT
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_invert, NS_STYLE_COLOR_INVERT,
|
2007-03-15 19:16:20 +03:00
|
|
|
#else
|
|
|
|
eCSSKeyword__moz_use_text_color, NS_STYLE_COLOR_MOZ_USE_TEXT_COLOR,
|
|
|
|
#endif
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kOverflowKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_OVERFLOW_AUTO,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_visible, NS_STYLE_OVERFLOW_VISIBLE,
|
2004-08-10 05:32:10 +04:00
|
|
|
eCSSKeyword_hidden, NS_STYLE_OVERFLOW_HIDDEN,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_scroll, NS_STYLE_OVERFLOW_SCROLL,
|
2004-09-05 04:04:04 +04:00
|
|
|
// Deprecated:
|
2004-08-10 05:32:10 +04:00
|
|
|
eCSSKeyword__moz_scrollbars_none, NS_STYLE_OVERFLOW_HIDDEN,
|
2000-01-10 06:23:44 +03:00
|
|
|
eCSSKeyword__moz_scrollbars_horizontal, NS_STYLE_OVERFLOW_SCROLLBARS_HORIZONTAL,
|
|
|
|
eCSSKeyword__moz_scrollbars_vertical, NS_STYLE_OVERFLOW_SCROLLBARS_VERTICAL,
|
2004-08-10 05:32:10 +04:00
|
|
|
eCSSKeyword__moz_hidden_unscrollable, NS_STYLE_OVERFLOW_CLIP,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2004-09-05 04:04:04 +04:00
|
|
|
const PRInt32 nsCSSProps::kOverflowSubKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_OVERFLOW_AUTO,
|
2004-09-05 04:04:04 +04:00
|
|
|
eCSSKeyword_visible, NS_STYLE_OVERFLOW_VISIBLE,
|
|
|
|
eCSSKeyword_hidden, NS_STYLE_OVERFLOW_HIDDEN,
|
|
|
|
eCSSKeyword_scroll, NS_STYLE_OVERFLOW_SCROLL,
|
|
|
|
// Deprecated:
|
|
|
|
eCSSKeyword__moz_hidden_unscrollable, NS_STYLE_OVERFLOW_CLIP,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
2004-09-05 04:04:04 +04:00
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kPageBreakKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_PAGE_BREAK_AUTO,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_always, NS_STYLE_PAGE_BREAK_ALWAYS,
|
|
|
|
eCSSKeyword_avoid, NS_STYLE_PAGE_BREAK_AVOID,
|
|
|
|
eCSSKeyword_left, NS_STYLE_PAGE_BREAK_LEFT,
|
|
|
|
eCSSKeyword_right, NS_STYLE_PAGE_BREAK_RIGHT,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kPageBreakInsideKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_PAGE_BREAK_AUTO,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_avoid, NS_STYLE_PAGE_BREAK_AVOID,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kPageMarksKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_PAGE_MARKS_NONE,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_crop, NS_STYLE_PAGE_MARKS_CROP,
|
|
|
|
eCSSKeyword_cross, NS_STYLE_PAGE_MARKS_REGISTER,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kPageSizeKTable[] = {
|
|
|
|
eCSSKeyword_landscape, NS_STYLE_PAGE_SIZE_LANDSCAPE,
|
|
|
|
eCSSKeyword_portrait, NS_STYLE_PAGE_SIZE_PORTRAIT,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2009-08-27 07:53:35 +04:00
|
|
|
const PRInt32 nsCSSProps::kPointerEventsKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_POINTER_EVENTS_NONE,
|
2009-08-27 07:53:35 +04:00
|
|
|
eCSSKeyword_visiblepainted, NS_STYLE_POINTER_EVENTS_VISIBLEPAINTED,
|
|
|
|
eCSSKeyword_visiblefill, NS_STYLE_POINTER_EVENTS_VISIBLEFILL,
|
|
|
|
eCSSKeyword_visiblestroke, NS_STYLE_POINTER_EVENTS_VISIBLESTROKE,
|
|
|
|
eCSSKeyword_visible, NS_STYLE_POINTER_EVENTS_VISIBLE,
|
|
|
|
eCSSKeyword_painted, NS_STYLE_POINTER_EVENTS_PAINTED,
|
|
|
|
eCSSKeyword_fill, NS_STYLE_POINTER_EVENTS_FILL,
|
|
|
|
eCSSKeyword_stroke, NS_STYLE_POINTER_EVENTS_STROKE,
|
|
|
|
eCSSKeyword_all, NS_STYLE_POINTER_EVENTS_ALL,
|
|
|
|
eCSSKeyword_auto, NS_STYLE_POINTER_EVENTS_AUTO,
|
|
|
|
eCSSKeyword_UNKNOWN, -1
|
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kPositionKTable[] = {
|
2002-09-30 18:46:56 +04:00
|
|
|
eCSSKeyword_static, NS_STYLE_POSITION_STATIC,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_relative, NS_STYLE_POSITION_RELATIVE,
|
|
|
|
eCSSKeyword_absolute, NS_STYLE_POSITION_ABSOLUTE,
|
|
|
|
eCSSKeyword_fixed, NS_STYLE_POSITION_FIXED,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2009-11-02 22:36:43 +03:00
|
|
|
const PRInt32 nsCSSProps::kRadialGradientShapeKTable[] = {
|
|
|
|
eCSSKeyword_circle, NS_STYLE_GRADIENT_SHAPE_CIRCULAR,
|
|
|
|
eCSSKeyword_ellipse, NS_STYLE_GRADIENT_SHAPE_ELLIPTICAL,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kRadialGradientSizeKTable[] = {
|
|
|
|
eCSSKeyword_closest_side, NS_STYLE_GRADIENT_SIZE_CLOSEST_SIDE,
|
|
|
|
eCSSKeyword_closest_corner, NS_STYLE_GRADIENT_SIZE_CLOSEST_CORNER,
|
|
|
|
eCSSKeyword_farthest_side, NS_STYLE_GRADIENT_SIZE_FARTHEST_SIDE,
|
|
|
|
eCSSKeyword_farthest_corner, NS_STYLE_GRADIENT_SIZE_FARTHEST_CORNER,
|
|
|
|
// synonyms
|
|
|
|
eCSSKeyword_contain, NS_STYLE_GRADIENT_SIZE_CLOSEST_SIDE,
|
|
|
|
eCSSKeyword_cover, NS_STYLE_GRADIENT_SIZE_FARTHEST_CORNER,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
2010-03-19 14:49:33 +03:00
|
|
|
const PRInt32 nsCSSProps::kResizeKTable[] = {
|
|
|
|
eCSSKeyword_none, NS_STYLE_RESIZE_NONE,
|
|
|
|
eCSSKeyword_both, NS_STYLE_RESIZE_BOTH,
|
|
|
|
eCSSKeyword_horizontal, NS_STYLE_RESIZE_HORIZONTAL,
|
|
|
|
eCSSKeyword_vertical, NS_STYLE_RESIZE_VERTICAL,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
2008-06-05 10:46:24 +04:00
|
|
|
const PRInt32 nsCSSProps::kStackSizingKTable[] = {
|
|
|
|
eCSSKeyword_ignore, NS_STYLE_STACK_SIZING_IGNORE,
|
|
|
|
eCSSKeyword_stretch_to_fit, NS_STYLE_STACK_SIZING_STRETCH_TO_FIT,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kTableLayoutKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_TABLE_LAYOUT_AUTO,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_fixed, NS_STYLE_TABLE_LAYOUT_FIXED,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kTextAlignKTable[] = {
|
|
|
|
eCSSKeyword_left, NS_STYLE_TEXT_ALIGN_LEFT,
|
|
|
|
eCSSKeyword_right, NS_STYLE_TEXT_ALIGN_RIGHT,
|
|
|
|
eCSSKeyword_center, NS_STYLE_TEXT_ALIGN_CENTER,
|
|
|
|
eCSSKeyword_justify, NS_STYLE_TEXT_ALIGN_JUSTIFY,
|
|
|
|
eCSSKeyword__moz_center, NS_STYLE_TEXT_ALIGN_MOZ_CENTER,
|
|
|
|
eCSSKeyword__moz_right, NS_STYLE_TEXT_ALIGN_MOZ_RIGHT,
|
2005-06-16 03:45:06 +04:00
|
|
|
eCSSKeyword__moz_left, NS_STYLE_TEXT_ALIGN_MOZ_LEFT,
|
2000-08-17 17:28:18 +04:00
|
|
|
eCSSKeyword_start, NS_STYLE_TEXT_ALIGN_DEFAULT,
|
2009-02-06 06:48:30 +03:00
|
|
|
eCSSKeyword_end, NS_STYLE_TEXT_ALIGN_END,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2011-04-23 09:16:41 +04:00
|
|
|
const PRInt32 nsCSSProps::kTextBlinkKTable[] = {
|
|
|
|
eCSSKeyword_none, NS_STYLE_TEXT_BLINK_NONE,
|
|
|
|
eCSSKeyword_blink, NS_STYLE_TEXT_BLINK_BLINK,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kTextDecorationLineKTable[] = {
|
|
|
|
eCSSKeyword_none, NS_STYLE_TEXT_DECORATION_LINE_NONE,
|
|
|
|
eCSSKeyword_underline, NS_STYLE_TEXT_DECORATION_LINE_UNDERLINE,
|
|
|
|
eCSSKeyword_overline, NS_STYLE_TEXT_DECORATION_LINE_OVERLINE,
|
|
|
|
eCSSKeyword_line_through, NS_STYLE_TEXT_DECORATION_LINE_LINE_THROUGH,
|
|
|
|
eCSSKeyword__moz_anchor_decoration, NS_STYLE_TEXT_DECORATION_LINE_PREF_ANCHORS,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2011-03-31 16:26:35 +04:00
|
|
|
const PRInt32 nsCSSProps::kTextDecorationStyleKTable[] = {
|
|
|
|
eCSSKeyword__moz_none, NS_STYLE_TEXT_DECORATION_STYLE_NONE,
|
|
|
|
eCSSKeyword_solid, NS_STYLE_TEXT_DECORATION_STYLE_SOLID,
|
|
|
|
eCSSKeyword_double, NS_STYLE_TEXT_DECORATION_STYLE_DOUBLE,
|
|
|
|
eCSSKeyword_dotted, NS_STYLE_TEXT_DECORATION_STYLE_DOTTED,
|
|
|
|
eCSSKeyword_dashed, NS_STYLE_TEXT_DECORATION_STYLE_DASHED,
|
|
|
|
eCSSKeyword_wavy, NS_STYLE_TEXT_DECORATION_STYLE_WAVY,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kTextTransformKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_TEXT_TRANSFORM_NONE,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_capitalize, NS_STYLE_TEXT_TRANSFORM_CAPITALIZE,
|
|
|
|
eCSSKeyword_lowercase, NS_STYLE_TEXT_TRANSFORM_LOWERCASE,
|
|
|
|
eCSSKeyword_uppercase, NS_STYLE_TEXT_TRANSFORM_UPPERCASE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2009-08-21 01:52:47 +04:00
|
|
|
const PRInt32 nsCSSProps::kTransitionTimingFunctionKTable[] = {
|
|
|
|
eCSSKeyword_ease, NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE,
|
|
|
|
eCSSKeyword_linear, NS_STYLE_TRANSITION_TIMING_FUNCTION_LINEAR,
|
|
|
|
eCSSKeyword_ease_in, NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE_IN,
|
|
|
|
eCSSKeyword_ease_out, NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE_OUT,
|
|
|
|
eCSSKeyword_ease_in_out, NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE_IN_OUT,
|
2011-04-12 10:18:42 +04:00
|
|
|
eCSSKeyword_step_start, NS_STYLE_TRANSITION_TIMING_FUNCTION_STEP_START,
|
|
|
|
eCSSKeyword_step_end, NS_STYLE_TRANSITION_TIMING_FUNCTION_STEP_END,
|
2009-08-21 01:52:47 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kUnicodeBidiKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_normal, NS_STYLE_UNICODE_BIDI_NORMAL,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_embed, NS_STYLE_UNICODE_BIDI_EMBED,
|
|
|
|
eCSSKeyword_bidi_override, NS_STYLE_UNICODE_BIDI_OVERRIDE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
1999-09-04 03:40:35 +04:00
|
|
|
const PRInt32 nsCSSProps::kUserFocusKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_USER_FOCUS_NONE,
|
|
|
|
eCSSKeyword_normal, NS_STYLE_USER_FOCUS_NORMAL,
|
1999-10-12 04:30:54 +04:00
|
|
|
eCSSKeyword_ignore, NS_STYLE_USER_FOCUS_IGNORE,
|
1999-09-04 03:40:35 +04:00
|
|
|
eCSSKeyword_select_all, NS_STYLE_USER_FOCUS_SELECT_ALL,
|
|
|
|
eCSSKeyword_select_before, NS_STYLE_USER_FOCUS_SELECT_BEFORE,
|
|
|
|
eCSSKeyword_select_after, NS_STYLE_USER_FOCUS_SELECT_AFTER,
|
|
|
|
eCSSKeyword_select_same, NS_STYLE_USER_FOCUS_SELECT_SAME,
|
|
|
|
eCSSKeyword_select_menu, NS_STYLE_USER_FOCUS_SELECT_MENU,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-09-04 03:40:35 +04:00
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kUserInputKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_USER_INPUT_NONE,
|
|
|
|
eCSSKeyword_auto, NS_STYLE_USER_INPUT_AUTO,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_enabled, NS_STYLE_USER_INPUT_ENABLED,
|
|
|
|
eCSSKeyword_disabled, NS_STYLE_USER_INPUT_DISABLED,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
1999-09-04 03:40:35 +04:00
|
|
|
const PRInt32 nsCSSProps::kUserModifyKTable[] = {
|
|
|
|
eCSSKeyword_read_only, NS_STYLE_USER_MODIFY_READ_ONLY,
|
|
|
|
eCSSKeyword_read_write, NS_STYLE_USER_MODIFY_READ_WRITE,
|
|
|
|
eCSSKeyword_write_only, NS_STYLE_USER_MODIFY_WRITE_ONLY,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-09-04 03:40:35 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kUserSelectKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_USER_SELECT_NONE,
|
|
|
|
eCSSKeyword_auto, NS_STYLE_USER_SELECT_AUTO,
|
1999-10-15 06:11:09 +04:00
|
|
|
eCSSKeyword_text, NS_STYLE_USER_SELECT_TEXT,
|
|
|
|
eCSSKeyword_element, NS_STYLE_USER_SELECT_ELEMENT,
|
|
|
|
eCSSKeyword_elements, NS_STYLE_USER_SELECT_ELEMENTS,
|
|
|
|
eCSSKeyword_all, NS_STYLE_USER_SELECT_ALL,
|
|
|
|
eCSSKeyword_toggle, NS_STYLE_USER_SELECT_TOGGLE,
|
|
|
|
eCSSKeyword_tri_state, NS_STYLE_USER_SELECT_TRI_STATE,
|
2000-08-12 05:00:14 +04:00
|
|
|
eCSSKeyword__moz_all, NS_STYLE_USER_SELECT_MOZ_ALL,
|
2005-09-11 23:22:57 +04:00
|
|
|
eCSSKeyword__moz_none, NS_STYLE_USER_SELECT_MOZ_NONE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-09-04 03:40:35 +04:00
|
|
|
};
|
|
|
|
|
1999-07-18 04:32:32 +04:00
|
|
|
const PRInt32 nsCSSProps::kVerticalAlignKTable[] = {
|
|
|
|
eCSSKeyword_baseline, NS_STYLE_VERTICAL_ALIGN_BASELINE,
|
|
|
|
eCSSKeyword_sub, NS_STYLE_VERTICAL_ALIGN_SUB,
|
|
|
|
eCSSKeyword_super, NS_STYLE_VERTICAL_ALIGN_SUPER,
|
|
|
|
eCSSKeyword_top, NS_STYLE_VERTICAL_ALIGN_TOP,
|
|
|
|
eCSSKeyword_text_top, NS_STYLE_VERTICAL_ALIGN_TEXT_TOP,
|
|
|
|
eCSSKeyword_middle, NS_STYLE_VERTICAL_ALIGN_MIDDLE,
|
2005-08-31 02:46:45 +04:00
|
|
|
eCSSKeyword__moz_middle_with_baseline, NS_STYLE_VERTICAL_ALIGN_MIDDLE_WITH_BASELINE,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_bottom, NS_STYLE_VERTICAL_ALIGN_BOTTOM,
|
|
|
|
eCSSKeyword_text_bottom, NS_STYLE_VERTICAL_ALIGN_TEXT_BOTTOM,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kVisibilityKTable[] = {
|
|
|
|
eCSSKeyword_visible, NS_STYLE_VISIBILITY_VISIBLE,
|
|
|
|
eCSSKeyword_hidden, NS_STYLE_VISIBILITY_HIDDEN,
|
|
|
|
eCSSKeyword_collapse, NS_STYLE_VISIBILITY_COLLAPSE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kWhitespaceKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_normal, NS_STYLE_WHITESPACE_NORMAL,
|
1999-07-18 04:32:32 +04:00
|
|
|
eCSSKeyword_pre, NS_STYLE_WHITESPACE_PRE,
|
|
|
|
eCSSKeyword_nowrap, NS_STYLE_WHITESPACE_NOWRAP,
|
2008-02-20 05:07:48 +03:00
|
|
|
eCSSKeyword_pre_wrap, NS_STYLE_WHITESPACE_PRE_WRAP,
|
2008-08-12 12:31:56 +04:00
|
|
|
eCSSKeyword_pre_line, NS_STYLE_WHITESPACE_PRE_LINE,
|
2007-05-04 03:11:02 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
2007-05-04 03:11:00 +04:00
|
|
|
const PRInt32 nsCSSProps::kWidthKTable[] = {
|
2007-11-15 21:10:31 +03:00
|
|
|
eCSSKeyword__moz_max_content, NS_STYLE_WIDTH_MAX_CONTENT,
|
|
|
|
eCSSKeyword__moz_min_content, NS_STYLE_WIDTH_MIN_CONTENT,
|
|
|
|
eCSSKeyword__moz_fit_content, NS_STYLE_WIDTH_FIT_CONTENT,
|
|
|
|
eCSSKeyword__moz_available, NS_STYLE_WIDTH_AVAILABLE,
|
2007-05-04 03:11:00 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
2008-10-14 18:44:25 +04:00
|
|
|
const PRInt32 nsCSSProps::kWindowShadowKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_none, NS_STYLE_WINDOW_SHADOW_NONE,
|
2008-10-14 18:44:25 +04:00
|
|
|
eCSSKeyword_default, NS_STYLE_WINDOW_SHADOW_DEFAULT,
|
2009-12-30 18:24:08 +03:00
|
|
|
eCSSKeyword_menu, NS_STYLE_WINDOW_SHADOW_MENU,
|
|
|
|
eCSSKeyword_tooltip, NS_STYLE_WINDOW_SHADOW_TOOLTIP,
|
|
|
|
eCSSKeyword_sheet, NS_STYLE_WINDOW_SHADOW_SHEET,
|
2008-10-14 18:44:25 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
2008-07-24 11:16:18 +04:00
|
|
|
const PRInt32 nsCSSProps::kWordwrapKTable[] = {
|
|
|
|
eCSSKeyword_normal, NS_STYLE_WORDWRAP_NORMAL,
|
|
|
|
eCSSKeyword_break_word, NS_STYLE_WORDWRAP_BREAK_WORD,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
2011-05-04 15:14:50 +04:00
|
|
|
const PRInt32 nsCSSProps::kHyphensKTable[] = {
|
|
|
|
eCSSKeyword_none, NS_STYLE_HYPHENS_NONE,
|
|
|
|
eCSSKeyword_manual, NS_STYLE_HYPHENS_MANUAL,
|
|
|
|
eCSSKeyword_auto, NS_STYLE_HYPHENS_AUTO,
|
|
|
|
eCSSKeyword_UNKNOWN,-1
|
|
|
|
};
|
|
|
|
|
2001-03-06 05:27:50 +03:00
|
|
|
// Specific keyword tables for XUL.properties
|
2001-08-02 04:09:27 +04:00
|
|
|
const PRInt32 nsCSSProps::kBoxAlignKTable[] = {
|
|
|
|
eCSSKeyword_stretch, NS_STYLE_BOX_ALIGN_STRETCH,
|
|
|
|
eCSSKeyword_start, NS_STYLE_BOX_ALIGN_START,
|
|
|
|
eCSSKeyword_center, NS_STYLE_BOX_ALIGN_CENTER,
|
2009-10-13 10:35:57 +04:00
|
|
|
eCSSKeyword_baseline, NS_STYLE_BOX_ALIGN_BASELINE,
|
|
|
|
eCSSKeyword_end, NS_STYLE_BOX_ALIGN_END,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
2001-08-02 04:09:27 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kBoxDirectionKTable[] = {
|
|
|
|
eCSSKeyword_normal, NS_STYLE_BOX_DIRECTION_NORMAL,
|
|
|
|
eCSSKeyword_reverse, NS_STYLE_BOX_DIRECTION_REVERSE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
2001-08-02 04:09:27 +04:00
|
|
|
};
|
|
|
|
|
2001-03-06 05:27:50 +03:00
|
|
|
const PRInt32 nsCSSProps::kBoxOrientKTable[] = {
|
|
|
|
eCSSKeyword_horizontal, NS_STYLE_BOX_ORIENT_HORIZONTAL,
|
|
|
|
eCSSKeyword_vertical, NS_STYLE_BOX_ORIENT_VERTICAL,
|
|
|
|
eCSSKeyword_inline_axis, NS_STYLE_BOX_ORIENT_HORIZONTAL,
|
2009-10-13 10:35:57 +04:00
|
|
|
eCSSKeyword_block_axis, NS_STYLE_BOX_ORIENT_VERTICAL,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
2001-03-06 05:27:50 +03:00
|
|
|
};
|
2001-08-02 04:09:27 +04:00
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kBoxPackKTable[] = {
|
|
|
|
eCSSKeyword_start, NS_STYLE_BOX_PACK_START,
|
|
|
|
eCSSKeyword_center, NS_STYLE_BOX_PACK_CENTER,
|
|
|
|
eCSSKeyword_end, NS_STYLE_BOX_PACK_END,
|
2009-10-13 10:35:57 +04:00
|
|
|
eCSSKeyword_justify, NS_STYLE_BOX_PACK_JUSTIFY,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN,-1
|
2001-08-02 04:09:27 +04:00
|
|
|
};
|
2001-03-06 05:27:50 +03:00
|
|
|
|
2001-12-12 10:59:31 +03:00
|
|
|
// keyword tables for SVG properties
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kDominantBaselineKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_DOMINANT_BASELINE_AUTO,
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
eCSSKeyword_use_script, NS_STYLE_DOMINANT_BASELINE_USE_SCRIPT,
|
|
|
|
eCSSKeyword_no_change, NS_STYLE_DOMINANT_BASELINE_NO_CHANGE,
|
|
|
|
eCSSKeyword_reset_size, NS_STYLE_DOMINANT_BASELINE_RESET_SIZE,
|
|
|
|
eCSSKeyword_alphabetic, NS_STYLE_DOMINANT_BASELINE_ALPHABETIC,
|
|
|
|
eCSSKeyword_hanging, NS_STYLE_DOMINANT_BASELINE_HANGING,
|
|
|
|
eCSSKeyword_ideographic, NS_STYLE_DOMINANT_BASELINE_IDEOGRAPHIC,
|
|
|
|
eCSSKeyword_mathematical, NS_STYLE_DOMINANT_BASELINE_MATHEMATICAL,
|
|
|
|
eCSSKeyword_central, NS_STYLE_DOMINANT_BASELINE_CENTRAL,
|
|
|
|
eCSSKeyword_middle, NS_STYLE_DOMINANT_BASELINE_MIDDLE,
|
|
|
|
eCSSKeyword_text_after_edge, NS_STYLE_DOMINANT_BASELINE_TEXT_AFTER_EDGE,
|
|
|
|
eCSSKeyword_text_before_edge, NS_STYLE_DOMINANT_BASELINE_TEXT_BEFORE_EDGE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN, -1
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
};
|
|
|
|
|
2001-12-12 10:59:31 +03:00
|
|
|
const PRInt32 nsCSSProps::kFillRuleKTable[] = {
|
|
|
|
eCSSKeyword_nonzero, NS_STYLE_FILL_RULE_NONZERO,
|
|
|
|
eCSSKeyword_evenodd, NS_STYLE_FILL_RULE_EVENODD,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN, -1
|
2001-12-12 10:59:31 +03:00
|
|
|
};
|
|
|
|
|
2009-03-21 18:36:38 +03:00
|
|
|
const PRInt32 nsCSSProps::kImageRenderingKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_IMAGE_RENDERING_AUTO,
|
2009-03-21 18:36:38 +03:00
|
|
|
eCSSKeyword_optimizespeed, NS_STYLE_IMAGE_RENDERING_OPTIMIZESPEED,
|
|
|
|
eCSSKeyword_optimizequality, NS_STYLE_IMAGE_RENDERING_OPTIMIZEQUALITY,
|
2009-04-05 13:52:14 +04:00
|
|
|
eCSSKeyword__moz_crisp_edges, NS_STYLE_IMAGE_RENDERING_CRISPEDGES,
|
2009-03-21 18:36:38 +03:00
|
|
|
eCSSKeyword_UNKNOWN, -1
|
|
|
|
};
|
|
|
|
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
const PRInt32 nsCSSProps::kShapeRenderingKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_SHAPE_RENDERING_AUTO,
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
eCSSKeyword_optimizespeed, NS_STYLE_SHAPE_RENDERING_OPTIMIZESPEED,
|
|
|
|
eCSSKeyword_crispedges, NS_STYLE_SHAPE_RENDERING_CRISPEDGES,
|
|
|
|
eCSSKeyword_geometricprecision, NS_STYLE_SHAPE_RENDERING_GEOMETRICPRECISION,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN, -1
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
};
|
|
|
|
|
2001-12-12 10:59:31 +03:00
|
|
|
const PRInt32 nsCSSProps::kStrokeLinecapKTable[] = {
|
|
|
|
eCSSKeyword_butt, NS_STYLE_STROKE_LINECAP_BUTT,
|
|
|
|
eCSSKeyword_round, NS_STYLE_STROKE_LINECAP_ROUND,
|
|
|
|
eCSSKeyword_square, NS_STYLE_STROKE_LINECAP_SQUARE,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN, -1
|
2001-12-12 10:59:31 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kStrokeLinejoinKTable[] = {
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
eCSSKeyword_miter, NS_STYLE_STROKE_LINEJOIN_MITER,
|
2001-12-12 10:59:31 +03:00
|
|
|
eCSSKeyword_round, NS_STYLE_STROKE_LINEJOIN_ROUND,
|
|
|
|
eCSSKeyword_bevel, NS_STYLE_STROKE_LINEJOIN_BEVEL,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN, -1
|
2001-12-12 10:59:31 +03:00
|
|
|
};
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kTextAnchorKTable[] = {
|
|
|
|
eCSSKeyword_start, NS_STYLE_TEXT_ANCHOR_START,
|
|
|
|
eCSSKeyword_middle, NS_STYLE_TEXT_ANCHOR_MIDDLE,
|
|
|
|
eCSSKeyword_end, NS_STYLE_TEXT_ANCHOR_END,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN, -1
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
const PRInt32 nsCSSProps::kTextRenderingKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_TEXT_RENDERING_AUTO,
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
eCSSKeyword_optimizespeed, NS_STYLE_TEXT_RENDERING_OPTIMIZESPEED,
|
|
|
|
eCSSKeyword_optimizelegibility, NS_STYLE_TEXT_RENDERING_OPTIMIZELEGIBILITY,
|
|
|
|
eCSSKeyword_geometricprecision, NS_STYLE_TEXT_RENDERING_GEOMETRICPRECISION,
|
2004-10-01 21:15:15 +04:00
|
|
|
eCSSKeyword_UNKNOWN, -1
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
};
|
|
|
|
|
2007-01-30 16:19:55 +03:00
|
|
|
const PRInt32 nsCSSProps::kColorInterpolationKTable[] = {
|
2009-10-22 01:57:57 +04:00
|
|
|
eCSSKeyword_auto, NS_STYLE_COLOR_INTERPOLATION_AUTO,
|
2007-01-30 16:19:55 +03:00
|
|
|
eCSSKeyword_srgb, NS_STYLE_COLOR_INTERPOLATION_SRGB,
|
|
|
|
eCSSKeyword_linearrgb, NS_STYLE_COLOR_INTERPOLATION_LINEARRGB,
|
|
|
|
eCSSKeyword_UNKNOWN, -1
|
|
|
|
};
|
|
|
|
|
2004-10-01 21:15:15 +04:00
|
|
|
PRBool
|
|
|
|
nsCSSProps::FindKeyword(nsCSSKeyword aKeyword, const PRInt32 aTable[], PRInt32& aResult)
|
|
|
|
{
|
|
|
|
PRInt32 index = 0;
|
|
|
|
while (eCSSKeyword_UNKNOWN != nsCSSKeyword(aTable[index])) {
|
|
|
|
if (aKeyword == nsCSSKeyword(aTable[index])) {
|
|
|
|
aResult = aTable[index+1];
|
|
|
|
return PR_TRUE;
|
|
|
|
}
|
|
|
|
index += 2;
|
|
|
|
}
|
|
|
|
return PR_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsCSSKeyword
|
|
|
|
nsCSSProps::ValueToKeywordEnum(PRInt32 aValue, const PRInt32 aTable[])
|
1999-07-18 04:32:32 +04:00
|
|
|
{
|
|
|
|
PRInt32 i = 1;
|
|
|
|
for (;;) {
|
2004-10-01 21:15:15 +04:00
|
|
|
if (aTable[i] == -1 && aTable[i-1] == eCSSKeyword_UNKNOWN) {
|
1999-07-18 04:32:32 +04:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (aValue == aTable[i]) {
|
2004-10-01 21:15:15 +04:00
|
|
|
return nsCSSKeyword(aTable[i-1]);
|
1999-07-18 04:32:32 +04:00
|
|
|
}
|
|
|
|
i += 2;
|
|
|
|
}
|
2004-10-01 21:15:15 +04:00
|
|
|
return eCSSKeyword_UNKNOWN;
|
1999-07-18 04:32:32 +04:00
|
|
|
}
|
|
|
|
|
2001-11-28 00:13:53 +03:00
|
|
|
const nsAFlatCString&
|
2004-10-01 21:15:15 +04:00
|
|
|
nsCSSProps::ValueToKeyword(PRInt32 aValue, const PRInt32 aTable[])
|
2000-03-31 11:08:36 +04:00
|
|
|
{
|
2004-10-01 21:15:15 +04:00
|
|
|
nsCSSKeyword keyword = ValueToKeywordEnum(aValue, aTable);
|
|
|
|
if (keyword == eCSSKeyword_UNKNOWN) {
|
2001-11-28 00:13:53 +03:00
|
|
|
static nsDependentCString sNullStr("");
|
2000-08-22 10:57:32 +04:00
|
|
|
return sNullStr;
|
2000-03-31 11:08:36 +04:00
|
|
|
} else {
|
2004-10-01 21:15:15 +04:00
|
|
|
return nsCSSKeywords::GetStringValue(keyword);
|
2000-03-31 11:08:36 +04:00
|
|
|
}
|
|
|
|
}
|
1999-07-18 04:32:32 +04:00
|
|
|
|
2004-02-19 21:02:20 +03:00
|
|
|
/* static */ const PRInt32* const
|
|
|
|
nsCSSProps::kKeywordTableTable[eCSSProperty_COUNT_no_shorthands] = {
|
2011-03-29 03:07:27 +04:00
|
|
|
#define CSS_PROP(name_, id_, method_, flags_, parsevariant_, kwtable_, \
|
|
|
|
stylestruct_, stylestructoffset_, animtype_) \
|
2009-09-11 14:46:36 +04:00
|
|
|
kwtable_,
|
2004-02-19 21:02:20 +03:00
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP
|
|
|
|
};
|
|
|
|
|
2009-10-13 10:35:57 +04:00
|
|
|
const nsAFlatCString&
|
1999-07-18 04:32:32 +04:00
|
|
|
nsCSSProps::LookupPropertyValue(nsCSSProperty aProp, PRInt32 aValue)
|
|
|
|
{
|
2010-08-19 23:33:44 +04:00
|
|
|
NS_ABORT_IF_FALSE(aProp >= 0 && aProp < eCSSProperty_COUNT,
|
|
|
|
"property out of range");
|
2004-02-19 21:02:20 +03:00
|
|
|
|
|
|
|
const PRInt32* kwtable = nsnull;
|
|
|
|
if (aProp < eCSSProperty_COUNT_no_shorthands)
|
|
|
|
kwtable = kKeywordTableTable[aProp];
|
|
|
|
|
|
|
|
if (kwtable)
|
2004-10-01 21:15:15 +04:00
|
|
|
return ValueToKeyword(aValue, kwtable);
|
2001-03-06 05:27:50 +03:00
|
|
|
|
2001-11-28 00:13:53 +03:00
|
|
|
static nsDependentCString sNullStr("");
|
2000-08-22 10:57:32 +04:00
|
|
|
return sNullStr;
|
1999-07-18 04:32:32 +04:00
|
|
|
}
|
|
|
|
|
2000-03-31 11:08:36 +04:00
|
|
|
PRBool nsCSSProps::GetColorName(PRInt32 aPropValue, nsCString &aStr)
|
|
|
|
{
|
|
|
|
PRBool rv = PR_FALSE;
|
|
|
|
|
|
|
|
// first get the keyword corresponding to the property Value from the color table
|
2004-10-01 21:15:15 +04:00
|
|
|
nsCSSKeyword keyword = ValueToKeywordEnum(aPropValue, kColorKTable);
|
2000-03-31 11:08:36 +04:00
|
|
|
|
|
|
|
// next get the name as a string from the keywords table
|
2004-10-01 21:15:15 +04:00
|
|
|
if (keyword != eCSSKeyword_UNKNOWN) {
|
2000-03-31 11:08:36 +04:00
|
|
|
nsCSSKeywords::AddRefTable();
|
2004-10-01 21:15:15 +04:00
|
|
|
aStr = nsCSSKeywords::GetStringValue(keyword);
|
2000-03-31 11:08:36 +04:00
|
|
|
nsCSSKeywords::ReleaseTable();
|
|
|
|
rv = PR_TRUE;
|
2004-10-01 21:15:15 +04:00
|
|
|
}
|
2000-03-31 11:08:36 +04:00
|
|
|
return rv;
|
|
|
|
}
|
1999-07-18 04:32:32 +04:00
|
|
|
|
2003-06-08 02:14:42 +04:00
|
|
|
const nsStyleStructID nsCSSProps::kSIDTable[eCSSProperty_COUNT_no_shorthands] = {
|
2009-09-11 14:46:36 +04:00
|
|
|
// Note that this uses the special BackendOnly style struct ID
|
|
|
|
// (which does need to be valid for storing in the
|
|
|
|
// nsCSSCompressedDataBlock::mStyleBits bitfield).
|
2011-03-29 03:07:27 +04:00
|
|
|
#define CSS_PROP(name_, id_, method_, flags_, parsevariant_, kwtable_, \
|
|
|
|
stylestruct_, stylestructoffset_, animtype_) \
|
2009-09-11 14:46:36 +04:00
|
|
|
eStyleStruct_##stylestruct_,
|
2003-06-08 02:14:42 +04:00
|
|
|
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
|
2009-09-11 14:46:36 +04:00
|
|
|
#undef CSS_PROP
|
2003-06-08 02:14:42 +04:00
|
|
|
};
|
|
|
|
|
2009-09-11 14:46:36 +04:00
|
|
|
const nsStyleAnimType
|
|
|
|
nsCSSProps::kAnimTypeTable[eCSSProperty_COUNT_no_shorthands] = {
|
2011-03-29 03:07:27 +04:00
|
|
|
#define CSS_PROP(name_, id_, method_, flags_, parsevariant_, kwtable_, \
|
|
|
|
stylestruct_, stylestructoffset_, animtype_) \
|
2009-09-11 14:46:36 +04:00
|
|
|
animtype_,
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP
|
|
|
|
};
|
|
|
|
|
|
|
|
const ptrdiff_t
|
|
|
|
nsCSSProps::kStyleStructOffsetTable[eCSSProperty_COUNT_no_shorthands] = {
|
2011-03-29 03:07:27 +04:00
|
|
|
#define CSS_PROP(name_, id_, method_, flags_, parsevariant_, kwtable_, \
|
|
|
|
stylestruct_, stylestructoffset_, animtype_) \
|
2009-09-11 14:46:36 +04:00
|
|
|
stylestructoffset_,
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP
|
|
|
|
};
|
|
|
|
|
2008-10-08 02:10:19 +04:00
|
|
|
const PRUint32 nsCSSProps::kFlagsTable[eCSSProperty_COUNT] = {
|
2011-03-29 03:07:27 +04:00
|
|
|
#define CSS_PROP(name_, id_, method_, flags_, parsevariant_, kwtable_, \
|
|
|
|
stylestruct_, stylestructoffset_, animtype_) \
|
2009-09-11 14:46:36 +04:00
|
|
|
flags_,
|
2009-09-11 14:46:36 +04:00
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP
|
|
|
|
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_) flags_,
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_SHORTHAND
|
2008-10-08 02:10:19 +04:00
|
|
|
};
|
|
|
|
|
2011-04-12 10:18:42 +04:00
|
|
|
static const nsCSSProperty gAnimationSubpropTable[] = {
|
|
|
|
eCSSProperty_animation_duration,
|
|
|
|
eCSSProperty_animation_timing_function,
|
|
|
|
eCSSProperty_animation_delay,
|
|
|
|
eCSSProperty_animation_direction,
|
|
|
|
eCSSProperty_animation_fill_mode,
|
|
|
|
eCSSProperty_animation_iteration_count,
|
|
|
|
// List animation-name last so we serialize it last, in case it has
|
|
|
|
// a value that conflicts with one of the other properties. (See
|
|
|
|
// how Declaration::GetValue serializes 'animation'.
|
|
|
|
eCSSProperty_animation_name,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2010-09-09 19:21:48 +04:00
|
|
|
static const nsCSSProperty gBorderRadiusSubpropTable[] = {
|
2003-06-08 02:14:42 +04:00
|
|
|
// Code relies on these being in topleft-topright-bottomright-bottomleft
|
|
|
|
// order.
|
2010-09-09 19:21:47 +04:00
|
|
|
eCSSProperty_border_top_left_radius,
|
|
|
|
eCSSProperty_border_top_right_radius,
|
|
|
|
eCSSProperty_border_bottom_right_radius,
|
|
|
|
eCSSProperty_border_bottom_left_radius,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gOutlineRadiusSubpropTable[] = {
|
2003-06-08 02:14:42 +04:00
|
|
|
// Code relies on these being in topleft-topright-bottomright-bottomleft
|
|
|
|
// order.
|
|
|
|
eCSSProperty__moz_outline_radius_topLeft,
|
|
|
|
eCSSProperty__moz_outline_radius_topRight,
|
|
|
|
eCSSProperty__moz_outline_radius_bottomRight,
|
|
|
|
eCSSProperty__moz_outline_radius_bottomLeft,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBackgroundSubpropTable[] = {
|
|
|
|
eCSSProperty_background_color,
|
|
|
|
eCSSProperty_background_image,
|
|
|
|
eCSSProperty_background_repeat,
|
|
|
|
eCSSProperty_background_attachment,
|
2007-04-16 02:25:20 +04:00
|
|
|
eCSSProperty_background_position,
|
2010-06-09 05:44:33 +04:00
|
|
|
eCSSProperty_background_clip,
|
|
|
|
eCSSProperty_background_origin,
|
2010-06-09 05:44:33 +04:00
|
|
|
eCSSProperty_background_size,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderSubpropTable[] = {
|
|
|
|
eCSSProperty_border_top_width,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_right_width_value,
|
|
|
|
eCSSProperty_border_right_width_ltr_source,
|
|
|
|
eCSSProperty_border_right_width_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_bottom_width,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_left_width_value,
|
|
|
|
eCSSProperty_border_left_width_ltr_source,
|
|
|
|
eCSSProperty_border_left_width_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_top_style,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_right_style_value,
|
|
|
|
eCSSProperty_border_right_style_ltr_source,
|
|
|
|
eCSSProperty_border_right_style_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_bottom_style,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_left_style_value,
|
|
|
|
eCSSProperty_border_left_style_ltr_source,
|
|
|
|
eCSSProperty_border_left_style_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_top_color,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_right_color_value,
|
|
|
|
eCSSProperty_border_right_color_ltr_source,
|
|
|
|
eCSSProperty_border_right_color_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_bottom_color,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_left_color_value,
|
|
|
|
eCSSProperty_border_left_color_ltr_source,
|
|
|
|
eCSSProperty_border_left_color_rtl_source,
|
2010-02-26 21:35:09 +03:00
|
|
|
eCSSProperty_border_top_colors,
|
|
|
|
eCSSProperty_border_right_colors,
|
|
|
|
eCSSProperty_border_bottom_colors,
|
|
|
|
eCSSProperty_border_left_colors,
|
|
|
|
eCSSProperty_border_image,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderBottomSubpropTable[] = {
|
|
|
|
// nsCSSDeclaration.cpp outputs the subproperties in this order.
|
2008-12-23 17:06:57 +03:00
|
|
|
// It also depends on the color being third.
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_bottom_width,
|
|
|
|
eCSSProperty_border_bottom_style,
|
|
|
|
eCSSProperty_border_bottom_color,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2010-04-03 05:58:26 +04:00
|
|
|
PR_STATIC_ASSERT(NS_SIDE_TOP == 0);
|
|
|
|
PR_STATIC_ASSERT(NS_SIDE_RIGHT == 1);
|
|
|
|
PR_STATIC_ASSERT(NS_SIDE_BOTTOM == 2);
|
|
|
|
PR_STATIC_ASSERT(NS_SIDE_LEFT == 3);
|
2003-06-08 02:14:42 +04:00
|
|
|
static const nsCSSProperty gBorderColorSubpropTable[] = {
|
|
|
|
// Code relies on these being in top-right-bottom-left order.
|
2010-04-03 05:58:26 +04:00
|
|
|
// Code relies on these matching the NS_SIDE_* constants.
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_top_color,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_right_color_value,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_bottom_color,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_left_color_value,
|
|
|
|
// extras:
|
|
|
|
eCSSProperty_border_left_color_ltr_source,
|
|
|
|
eCSSProperty_border_left_color_rtl_source,
|
|
|
|
eCSSProperty_border_right_color_ltr_source,
|
|
|
|
eCSSProperty_border_right_color_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gBorderEndColorSubpropTable[] = {
|
2007-07-04 22:51:16 +04:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_end_color_value,
|
|
|
|
eCSSProperty_border_right_color_ltr_source,
|
|
|
|
eCSSProperty_border_left_color_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderLeftColorSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_left_color_value,
|
|
|
|
eCSSProperty_border_left_color_ltr_source,
|
|
|
|
eCSSProperty_border_left_color_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderRightColorSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_right_color_value,
|
|
|
|
eCSSProperty_border_right_color_ltr_source,
|
|
|
|
eCSSProperty_border_right_color_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gBorderStartColorSubpropTable[] = {
|
2007-07-04 22:51:16 +04:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_start_color_value,
|
|
|
|
eCSSProperty_border_left_color_ltr_source,
|
|
|
|
eCSSProperty_border_right_color_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gBorderEndSubpropTable[] = {
|
2007-07-04 22:51:16 +04:00
|
|
|
// nsCSSDeclaration.cpp output the subproperties in this order.
|
2008-12-23 17:06:57 +03:00
|
|
|
// It also depends on the color being third.
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_end_width_value,
|
|
|
|
eCSSProperty_border_end_style_value,
|
|
|
|
eCSSProperty_border_end_color_value,
|
|
|
|
// extras:
|
|
|
|
eCSSProperty_border_right_width_ltr_source,
|
|
|
|
eCSSProperty_border_left_width_rtl_source,
|
|
|
|
eCSSProperty_border_right_style_ltr_source,
|
|
|
|
eCSSProperty_border_left_style_rtl_source,
|
|
|
|
eCSSProperty_border_right_color_ltr_source,
|
|
|
|
eCSSProperty_border_left_color_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderLeftSubpropTable[] = {
|
|
|
|
// nsCSSDeclaration.cpp outputs the subproperties in this order.
|
2008-12-23 17:06:57 +03:00
|
|
|
// It also depends on the color being third.
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_left_width_value,
|
|
|
|
eCSSProperty_border_left_style_value,
|
|
|
|
eCSSProperty_border_left_color_value,
|
|
|
|
// extras:
|
|
|
|
eCSSProperty_border_left_width_ltr_source,
|
|
|
|
eCSSProperty_border_left_width_rtl_source,
|
|
|
|
eCSSProperty_border_left_style_ltr_source,
|
|
|
|
eCSSProperty_border_left_style_rtl_source,
|
|
|
|
eCSSProperty_border_left_color_ltr_source,
|
|
|
|
eCSSProperty_border_left_color_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderRightSubpropTable[] = {
|
|
|
|
// nsCSSDeclaration.cpp outputs the subproperties in this order.
|
2008-12-23 17:06:57 +03:00
|
|
|
// It also depends on the color being third.
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_right_width_value,
|
|
|
|
eCSSProperty_border_right_style_value,
|
|
|
|
eCSSProperty_border_right_color_value,
|
|
|
|
// extras:
|
|
|
|
eCSSProperty_border_right_width_ltr_source,
|
|
|
|
eCSSProperty_border_right_width_rtl_source,
|
|
|
|
eCSSProperty_border_right_style_ltr_source,
|
|
|
|
eCSSProperty_border_right_style_rtl_source,
|
|
|
|
eCSSProperty_border_right_color_ltr_source,
|
|
|
|
eCSSProperty_border_right_color_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gBorderStartSubpropTable[] = {
|
2007-07-04 22:51:16 +04:00
|
|
|
// nsCSSDeclaration.cpp outputs the subproperties in this order.
|
2008-12-23 17:06:57 +03:00
|
|
|
// It also depends on the color being third.
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_start_width_value,
|
|
|
|
eCSSProperty_border_start_style_value,
|
|
|
|
eCSSProperty_border_start_color_value,
|
|
|
|
// extras:
|
|
|
|
eCSSProperty_border_left_width_ltr_source,
|
|
|
|
eCSSProperty_border_right_width_rtl_source,
|
|
|
|
eCSSProperty_border_left_style_ltr_source,
|
|
|
|
eCSSProperty_border_right_style_rtl_source,
|
|
|
|
eCSSProperty_border_left_color_ltr_source,
|
|
|
|
eCSSProperty_border_right_color_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderStyleSubpropTable[] = {
|
|
|
|
// Code relies on these being in top-right-bottom-left order.
|
|
|
|
eCSSProperty_border_top_style,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_right_style_value,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_bottom_style,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_left_style_value,
|
|
|
|
// extras:
|
|
|
|
eCSSProperty_border_left_style_ltr_source,
|
|
|
|
eCSSProperty_border_left_style_rtl_source,
|
|
|
|
eCSSProperty_border_right_style_ltr_source,
|
|
|
|
eCSSProperty_border_right_style_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderLeftStyleSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_left_style_value,
|
|
|
|
eCSSProperty_border_left_style_ltr_source,
|
|
|
|
eCSSProperty_border_left_style_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderRightStyleSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_right_style_value,
|
|
|
|
eCSSProperty_border_right_style_ltr_source,
|
|
|
|
eCSSProperty_border_right_style_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gBorderStartStyleSubpropTable[] = {
|
2007-07-04 22:51:16 +04:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_start_style_value,
|
|
|
|
eCSSProperty_border_left_style_ltr_source,
|
|
|
|
eCSSProperty_border_right_style_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gBorderEndStyleSubpropTable[] = {
|
2007-07-04 22:51:16 +04:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_end_style_value,
|
|
|
|
eCSSProperty_border_right_style_ltr_source,
|
|
|
|
eCSSProperty_border_left_style_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderTopSubpropTable[] = {
|
|
|
|
// nsCSSDeclaration.cpp outputs the subproperties in this order.
|
2008-12-23 17:06:57 +03:00
|
|
|
// It also depends on the color being third.
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_top_width,
|
|
|
|
eCSSProperty_border_top_style,
|
|
|
|
eCSSProperty_border_top_color,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderWidthSubpropTable[] = {
|
|
|
|
// Code relies on these being in top-right-bottom-left order.
|
|
|
|
eCSSProperty_border_top_width,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_right_width_value,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_border_bottom_width,
|
2007-07-04 22:51:16 +04:00
|
|
|
eCSSProperty_border_left_width_value,
|
|
|
|
// extras:
|
|
|
|
eCSSProperty_border_left_width_ltr_source,
|
|
|
|
eCSSProperty_border_left_width_rtl_source,
|
|
|
|
eCSSProperty_border_right_width_ltr_source,
|
|
|
|
eCSSProperty_border_right_width_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderLeftWidthSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_left_width_value,
|
|
|
|
eCSSProperty_border_left_width_ltr_source,
|
|
|
|
eCSSProperty_border_left_width_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gBorderRightWidthSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_right_width_value,
|
|
|
|
eCSSProperty_border_right_width_ltr_source,
|
|
|
|
eCSSProperty_border_right_width_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gBorderStartWidthSubpropTable[] = {
|
2007-07-04 22:51:16 +04:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_start_width_value,
|
|
|
|
eCSSProperty_border_left_width_ltr_source,
|
|
|
|
eCSSProperty_border_right_width_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gBorderEndWidthSubpropTable[] = {
|
2007-07-04 22:51:16 +04:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_border_end_width_value,
|
|
|
|
eCSSProperty_border_right_width_ltr_source,
|
|
|
|
eCSSProperty_border_left_width_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gFontSubpropTable[] = {
|
|
|
|
eCSSProperty_font_family,
|
|
|
|
eCSSProperty_font_style,
|
|
|
|
eCSSProperty_font_variant,
|
|
|
|
eCSSProperty_font_weight,
|
|
|
|
eCSSProperty_font_size,
|
|
|
|
eCSSProperty_line_height,
|
|
|
|
eCSSProperty_font_size_adjust, // XXX Added LDB.
|
|
|
|
eCSSProperty_font_stretch, // XXX Added LDB.
|
2007-06-12 22:28:56 +04:00
|
|
|
eCSSProperty__x_system_font,
|
2010-07-14 00:30:42 +04:00
|
|
|
eCSSProperty_font_feature_settings,
|
|
|
|
eCSSProperty_font_language_override,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gListStyleSubpropTable[] = {
|
|
|
|
eCSSProperty_list_style_type,
|
|
|
|
eCSSProperty_list_style_image,
|
|
|
|
eCSSProperty_list_style_position,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gMarginSubpropTable[] = {
|
|
|
|
// Code relies on these being in top-right-bottom-left order.
|
|
|
|
eCSSProperty_margin_top,
|
2004-02-04 09:10:56 +03:00
|
|
|
eCSSProperty_margin_right_value,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_margin_bottom,
|
2004-02-04 09:10:56 +03:00
|
|
|
eCSSProperty_margin_left_value,
|
|
|
|
// extras:
|
|
|
|
eCSSProperty_margin_left_ltr_source,
|
|
|
|
eCSSProperty_margin_left_rtl_source,
|
|
|
|
eCSSProperty_margin_right_ltr_source,
|
|
|
|
eCSSProperty_margin_right_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gMarginLeftSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_margin_left_value,
|
|
|
|
eCSSProperty_margin_left_ltr_source,
|
|
|
|
eCSSProperty_margin_left_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gMarginRightSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_margin_right_value,
|
|
|
|
eCSSProperty_margin_right_ltr_source,
|
|
|
|
eCSSProperty_margin_right_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gMarginStartSubpropTable[] = {
|
2004-02-04 09:10:56 +03:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_margin_start_value,
|
|
|
|
eCSSProperty_margin_left_ltr_source,
|
|
|
|
eCSSProperty_margin_right_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gMarginEndSubpropTable[] = {
|
2004-02-04 09:10:56 +03:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_margin_end_value,
|
|
|
|
eCSSProperty_margin_right_ltr_source,
|
|
|
|
eCSSProperty_margin_left_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2004-02-04 09:10:56 +03:00
|
|
|
|
2005-03-27 15:36:08 +04:00
|
|
|
static const nsCSSProperty gOutlineSubpropTable[] = {
|
2003-06-08 02:14:42 +04:00
|
|
|
// nsCSSDeclaration.cpp outputs the subproperties in this order.
|
2008-12-23 17:06:57 +03:00
|
|
|
// It also depends on the color being third.
|
2005-03-27 15:36:08 +04:00
|
|
|
eCSSProperty_outline_width,
|
2008-12-23 17:06:57 +03:00
|
|
|
eCSSProperty_outline_style,
|
|
|
|
eCSSProperty_outline_color,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
1999-07-18 04:32:32 +04:00
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gColumnRuleSubpropTable[] = {
|
2008-12-23 17:06:57 +03:00
|
|
|
// nsCSSDeclaration.cpp outputs the subproperties in this order.
|
|
|
|
// It also depends on the color being third.
|
2008-07-19 14:38:25 +04:00
|
|
|
eCSSProperty__moz_column_rule_width,
|
|
|
|
eCSSProperty__moz_column_rule_style,
|
|
|
|
eCSSProperty__moz_column_rule_color,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2004-09-05 04:04:04 +04:00
|
|
|
static const nsCSSProperty gOverflowSubpropTable[] = {
|
|
|
|
eCSSProperty_overflow_x,
|
|
|
|
eCSSProperty_overflow_y,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2003-06-08 02:14:42 +04:00
|
|
|
static const nsCSSProperty gPaddingSubpropTable[] = {
|
|
|
|
// Code relies on these being in top-right-bottom-left order.
|
|
|
|
eCSSProperty_padding_top,
|
2004-02-04 09:10:56 +03:00
|
|
|
eCSSProperty_padding_right_value,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_padding_bottom,
|
2004-02-04 09:10:56 +03:00
|
|
|
eCSSProperty_padding_left_value,
|
|
|
|
// extras:
|
|
|
|
eCSSProperty_padding_left_ltr_source,
|
|
|
|
eCSSProperty_padding_left_rtl_source,
|
|
|
|
eCSSProperty_padding_right_ltr_source,
|
|
|
|
eCSSProperty_padding_right_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gPaddingLeftSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_padding_left_value,
|
|
|
|
eCSSProperty_padding_left_ltr_source,
|
|
|
|
eCSSProperty_padding_left_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
static const nsCSSProperty gPaddingRightSubpropTable[] = {
|
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_padding_right_value,
|
|
|
|
eCSSProperty_padding_right_ltr_source,
|
|
|
|
eCSSProperty_padding_right_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gPaddingStartSubpropTable[] = {
|
2004-02-04 09:10:56 +03:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_padding_start_value,
|
|
|
|
eCSSProperty_padding_left_ltr_source,
|
|
|
|
eCSSProperty_padding_right_rtl_source,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gPaddingEndSubpropTable[] = {
|
2004-02-04 09:10:56 +03:00
|
|
|
// nsCSSParser::ParseDirectionalBoxProperty depends on this order
|
|
|
|
eCSSProperty_padding_end_value,
|
|
|
|
eCSSProperty_padding_right_ltr_source,
|
|
|
|
eCSSProperty_padding_left_rtl_source,
|
2003-06-08 02:14:42 +04:00
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-04-23 09:16:41 +04:00
|
|
|
static const nsCSSProperty gTextDecorationSubpropTable[] = {
|
|
|
|
eCSSProperty_text_blink,
|
|
|
|
eCSSProperty_text_decoration_color,
|
|
|
|
eCSSProperty_text_decoration_line,
|
|
|
|
eCSSProperty_text_decoration_style,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
static const nsCSSProperty gTransitionSubpropTable[] = {
|
2009-08-21 01:52:47 +04:00
|
|
|
eCSSProperty_transition_property,
|
|
|
|
eCSSProperty_transition_duration,
|
|
|
|
eCSSProperty_transition_timing_function,
|
|
|
|
eCSSProperty_transition_delay,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2004-12-09 06:16:15 +03:00
|
|
|
static const nsCSSProperty gMarkerSubpropTable[] = {
|
|
|
|
eCSSProperty_marker_start,
|
|
|
|
eCSSProperty_marker_mid,
|
|
|
|
eCSSProperty_marker_end,
|
|
|
|
eCSSProperty_UNKNOWN
|
|
|
|
};
|
|
|
|
|
2003-06-08 02:14:42 +04:00
|
|
|
const nsCSSProperty *const
|
|
|
|
nsCSSProps::kSubpropertyTable[eCSSProperty_COUNT - eCSSProperty_COUNT_no_shorthands] = {
|
2011-03-18 06:14:31 +03:00
|
|
|
#define CSS_PROP_DOMPROP_PREFIXED(prop_) prop_
|
2011-03-18 06:14:30 +03:00
|
|
|
// Need an extra level of macro nesting to force expansion of method_
|
|
|
|
// params before they get pasted.
|
|
|
|
#define NSCSSPROPS_INNER_MACRO(method_) g##method_##SubpropTable,
|
|
|
|
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_) NSCSSPROPS_INNER_MACRO(method_)
|
2009-09-11 14:46:36 +04:00
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_SHORTHAND
|
2011-03-18 06:14:30 +03:00
|
|
|
#undef NSCSSPROPS_INNER_MACRO
|
|
|
|
#undef CSS_PROP_DOMPROP_PREFIXED
|
2003-06-08 02:14:42 +04:00
|
|
|
};
|
2011-03-18 06:14:31 +03:00
|
|
|
|
|
|
|
|
2011-03-29 03:07:27 +04:00
|
|
|
#define ENUM_DATA_FOR_PROPERTY(name_, id_, method_, flags_, parsevariant_, \
|
|
|
|
kwtable_, stylestructoffset_, animtype_) \
|
2011-03-18 06:14:31 +03:00
|
|
|
ePropertyIndex_for_##id_,
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
// The order of these enums must match the g*Flags arrays in nsRuleNode.cpp.
|
|
|
|
|
2011-03-18 06:14:31 +03:00
|
|
|
enum FontCheckCounter {
|
|
|
|
#define CSS_PROP_FONT ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_FONT
|
|
|
|
ePropertyCount_for_Font
|
|
|
|
};
|
|
|
|
|
|
|
|
enum DisplayCheckCounter {
|
|
|
|
#define CSS_PROP_DISPLAY ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_DISPLAY
|
|
|
|
ePropertyCount_for_Display
|
|
|
|
};
|
|
|
|
|
|
|
|
enum VisibilityCheckCounter {
|
|
|
|
#define CSS_PROP_VISIBILITY ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_VISIBILITY
|
|
|
|
ePropertyCount_for_Visibility
|
|
|
|
};
|
|
|
|
|
|
|
|
enum MarginCheckCounter {
|
|
|
|
#define CSS_PROP_MARGIN ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_MARGIN
|
|
|
|
ePropertyCount_for_Margin
|
|
|
|
};
|
|
|
|
|
|
|
|
enum BorderCheckCounter {
|
|
|
|
#define CSS_PROP_BORDER ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_BORDER
|
|
|
|
ePropertyCount_for_Border
|
|
|
|
};
|
|
|
|
|
|
|
|
enum PaddingCheckCounter {
|
|
|
|
#define CSS_PROP_PADDING ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_PADDING
|
|
|
|
ePropertyCount_for_Padding
|
|
|
|
};
|
|
|
|
|
|
|
|
enum OutlineCheckCounter {
|
|
|
|
#define CSS_PROP_OUTLINE ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_OUTLINE
|
|
|
|
ePropertyCount_for_Outline
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ListCheckCounter {
|
|
|
|
#define CSS_PROP_LIST ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_LIST
|
|
|
|
ePropertyCount_for_List
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ColorCheckCounter {
|
|
|
|
#define CSS_PROP_COLOR ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_COLOR
|
|
|
|
ePropertyCount_for_Color
|
|
|
|
};
|
|
|
|
|
|
|
|
enum BackgroundCheckCounter {
|
|
|
|
#define CSS_PROP_BACKGROUND ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_BACKGROUND
|
|
|
|
ePropertyCount_for_Background
|
|
|
|
};
|
|
|
|
|
|
|
|
enum PositionCheckCounter {
|
|
|
|
#define CSS_PROP_POSITION ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_POSITION
|
|
|
|
ePropertyCount_for_Position
|
|
|
|
};
|
|
|
|
|
|
|
|
enum TableCheckCounter {
|
|
|
|
#define CSS_PROP_TABLE ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_TABLE
|
|
|
|
ePropertyCount_for_Table
|
|
|
|
};
|
|
|
|
|
|
|
|
enum TableBorderCheckCounter {
|
|
|
|
#define CSS_PROP_TABLEBORDER ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_TABLEBORDER
|
|
|
|
ePropertyCount_for_TableBorder
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ContentCheckCounter {
|
|
|
|
#define CSS_PROP_CONTENT ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_CONTENT
|
|
|
|
ePropertyCount_for_Content
|
|
|
|
};
|
|
|
|
|
|
|
|
enum QuotesCheckCounter {
|
|
|
|
#define CSS_PROP_QUOTES ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_QUOTES
|
|
|
|
ePropertyCount_for_Quotes
|
|
|
|
};
|
|
|
|
|
|
|
|
enum TextCheckCounter {
|
|
|
|
#define CSS_PROP_TEXT ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_TEXT
|
|
|
|
ePropertyCount_for_Text
|
|
|
|
};
|
|
|
|
|
|
|
|
enum TextResetCheckCounter {
|
|
|
|
#define CSS_PROP_TEXTRESET ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_TEXTRESET
|
|
|
|
ePropertyCount_for_TextReset
|
|
|
|
};
|
|
|
|
|
|
|
|
enum UserInterfaceCheckCounter {
|
|
|
|
#define CSS_PROP_USERINTERFACE ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_USERINTERFACE
|
|
|
|
ePropertyCount_for_UserInterface
|
|
|
|
};
|
|
|
|
|
|
|
|
enum UIResetCheckCounter {
|
|
|
|
#define CSS_PROP_UIRESET ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_UIRESET
|
|
|
|
ePropertyCount_for_UIReset
|
|
|
|
};
|
|
|
|
|
|
|
|
enum XULCheckCounter {
|
|
|
|
#define CSS_PROP_XUL ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_XUL
|
|
|
|
ePropertyCount_for_XUL
|
|
|
|
};
|
|
|
|
|
|
|
|
enum SVGCheckCounter {
|
|
|
|
#define CSS_PROP_SVG ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_SVG
|
|
|
|
ePropertyCount_for_SVG
|
|
|
|
};
|
|
|
|
|
|
|
|
enum SVGResetCheckCounter {
|
|
|
|
#define CSS_PROP_SVGRESET ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_SVGRESET
|
|
|
|
ePropertyCount_for_SVGReset
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ColumnCheckCounter {
|
|
|
|
#define CSS_PROP_COLUMN ENUM_DATA_FOR_PROPERTY
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP_COLUMN
|
|
|
|
ePropertyCount_for_Column
|
|
|
|
};
|
|
|
|
|
|
|
|
#undef ENUM_DATA_FOR_PROPERTY
|
|
|
|
|
|
|
|
/* static */ const size_t
|
|
|
|
nsCSSProps::gPropertyCountInStruct[nsStyleStructID_Length] = {
|
|
|
|
#define STYLE_STRUCT(name, checkdata_cb, ctor_args) \
|
|
|
|
ePropertyCount_for_##name,
|
|
|
|
#include "nsStyleStructList.h"
|
|
|
|
#undef STYLE_STRUCT
|
|
|
|
};
|
|
|
|
|
|
|
|
/* static */ const size_t
|
|
|
|
nsCSSProps::gPropertyIndexInStruct[eCSSProperty_COUNT_no_shorthands] = {
|
|
|
|
|
2011-03-29 03:07:27 +04:00
|
|
|
#define CSS_PROP_BACKENDONLY(name_, id_, method_, flags_, parsevariant_, \
|
|
|
|
kwtable_) \
|
2011-03-18 06:14:31 +03:00
|
|
|
size_t(-1),
|
2011-03-29 03:07:27 +04:00
|
|
|
#define CSS_PROP(name_, id_, method_, flags_, parsevariant_, kwtable_, \
|
|
|
|
stylestruct_, stylestructoffset_, animtype_) \
|
2011-03-18 06:14:31 +03:00
|
|
|
ePropertyIndex_for_##id_,
|
|
|
|
#include "nsCSSPropList.h"
|
|
|
|
#undef CSS_PROP
|
|
|
|
#undef CSS_PROP_BACKENDONLY
|
|
|
|
|
|
|
|
};
|