summaryrefslogtreecommitdiff
path: root/xfa/fde/css/fde_cssdatatable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fde/css/fde_cssdatatable.cpp')
-rw-r--r--xfa/fde/css/fde_cssdatatable.cpp300
1 files changed, 13 insertions, 287 deletions
diff --git a/xfa/fde/css/fde_cssdatatable.cpp b/xfa/fde/css/fde_cssdatatable.cpp
index 910f7f4be0..7421f407b5 100644
--- a/xfa/fde/css/fde_cssdatatable.cpp
+++ b/xfa/fde/css/fde_cssdatatable.cpp
@@ -104,61 +104,21 @@ uint32_t FDE_CSSFontStyleToFDE(IFDE_CSSFontStyle* pFontStyle) {
}
static const FDE_CSSPropertyTable g_FDE_CSSProperties[] = {
- {FDE_CSSProperty::WritingMode, L"writing-mode", 0x01878076,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::ColumnRuleWidth, L"column-rule-width", 0x0200FB00,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::BorderLeft, L"border-left", 0x04080036,
FDE_CSSVALUETYPE_Shorthand},
- {FDE_CSSProperty::ColumnRule, L"column-rule", 0x04C83DF3,
- FDE_CSSVALUETYPE_Shorthand},
- {FDE_CSSProperty::Height, L"height", 0x05A5C519,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::CounterReset, L"counter-reset", 0x0894F9B0,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber | FDE_CSSVALUETYPE_MaybeString},
- {FDE_CSSProperty::Content, L"content", 0x097BE91B,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeURI | FDE_CSSVALUETYPE_MaybeString},
- {FDE_CSSProperty::RubyPosition, L"ruby-position", 0x09ACD024,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::BackgroundColor, L"background-color", 0x09E8E8AC,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeColor},
- {FDE_CSSProperty::Width, L"width", 0x0A8A8F80,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::Src, L"src", 0x0BD37048,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeURI},
{FDE_CSSProperty::Top, L"top", 0x0BEDAF33,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::Margin, L"margin", 0x0CB016BE,
FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::BorderColor, L"border-color", 0x0CBB528A,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeColor},
- {FDE_CSSProperty::Widows, L"widows", 0x1026C59D,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::BorderBottomColor, L"border-bottom-color", 0x121E22EC,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeColor},
{FDE_CSSProperty::TextIndent, L"text-indent", 0x169ADB74,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::Right, L"right", 0x193ADE3E,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::TextEmphasisStyle, L"text-emphasis-style", 0x20DBAF4A,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeString},
{FDE_CSSProperty::PaddingLeft, L"padding-left", 0x228CF02F,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::ColumnWidth, L"column-width", 0x24C9AC9B,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::MarginLeft, L"margin-left", 0x297C5656,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber |
FDE_CSSVALUETYPE_MaybeEnum},
@@ -166,145 +126,49 @@ static const FDE_CSSPropertyTable g_FDE_CSSProperties[] = {
FDE_CSSVALUETYPE_Shorthand},
{FDE_CSSProperty::BorderTop, L"border-top", 0x2B866ADE,
FDE_CSSVALUETYPE_Shorthand},
- {FDE_CSSProperty::RubyOverhang, L"ruby-overhang", 0x2CCA0D89,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::PageBreakBefore, L"page-break-before", 0x3119B36F,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::MaxHeight, L"max-height", 0x343597EC,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::MinWidth, L"min-width", 0x35832871,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::BorderLeftColor, L"border-left-color", 0x35C64022,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeColor},
{FDE_CSSProperty::Bottom, L"bottom", 0x399F02B5,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::Quotes, L"quotes", 0x3D8C6A01,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeString},
- {FDE_CSSProperty::MaxWidth, L"max-width", 0x3EA274F3,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::PaddingRight, L"padding-right", 0x3F616AC2,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::ListStyleImage, L"list-style-image", 0x42A8A86A,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeURI},
- {FDE_CSSProperty::WhiteSpace, L"white-space", 0x42F0429A,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
{FDE_CSSProperty::BorderBottom, L"border-bottom", 0x452CE780,
FDE_CSSVALUETYPE_Shorthand},
- {FDE_CSSProperty::ListStyleType, L"list-style-type", 0x48094789,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::WordBreak, L"word-break", 0x4D74A3CE,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::OverflowX, L"overflow-x", 0x4ECEBF99,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::OverflowY, L"overflow-y", 0x4ECEBF9A,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::BorderTopColor, L"border-top-color", 0x5109B8CA,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeColor},
{FDE_CSSProperty::FontFamily, L"font-family", 0x574686E6,
FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeString},
- {FDE_CSSProperty::Cursor, L"cursor", 0x59DFCA5E,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeString},
- {FDE_CSSProperty::RubyAlign, L"ruby-align", 0x6077BDFA,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::ColumnRuleColor, L"column-rule-color", 0x65DDFD9F,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeColor},
{FDE_CSSProperty::FontWeight, L"font-weight", 0x6692F60C,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::BorderRightStyle, L"border-right-style", 0x6920DDA7,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::MinHeight, L"min-height", 0x6AAE312A,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::Color, L"color", 0x6E67921F,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeColor},
{FDE_CSSProperty::LetterSpacing, L"letter-spacing", 0x70536102,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::EmptyCells, L"empty-cells", 0x7531528F,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
{FDE_CSSProperty::TextAlign, L"text-align", 0x7553F1BD,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::RubySpan, L"ruby-span", 0x76FCFCE1,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeFunction},
- {FDE_CSSProperty::Position, L"position", 0x814F82B5,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::BorderStyle, L"border-style", 0x82A4CD5C,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::BorderBottomStyle, L"border-bottom-style", 0x88079DBE,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::BorderCollapse, L"border-collapse", 0x8883C7FE,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::ColumnCount, L"column-count", 0x89936A64,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::BorderRightWidth, L"border-right-width", 0x8F5A6036,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::UnicodeBidi, L"unicode-bidi", 0x91670F6C,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
{FDE_CSSProperty::VerticalAlign, L"vertical-align", 0x934A87D2,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::PaddingTop, L"padding-top", 0x959D22B7,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::Columns, L"columns", 0x96FA5D81,
- FDE_CSSVALUETYPE_Shorthand},
- {FDE_CSSProperty::Overflow, L"overflow", 0x97B76B54,
- FDE_CSSVALUETYPE_Shorthand},
- {FDE_CSSProperty::TableLayout, L"table-layout", 0x9B1CB4B3,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
{FDE_CSSProperty::FontVariant, L"font-variant", 0x9C785779,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::ListStyle, L"list-style", 0x9E6C471A,
- FDE_CSSVALUETYPE_Shorthand},
- {FDE_CSSProperty::BackgroundPosition, L"background-position", 0xA8846D22,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::BorderWidth, L"border-width", 0xA8DE4FEB,
FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::TextEmphasisColor, L"text-emphasis-color", 0xAAF23478,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeColor},
- {FDE_CSSProperty::BorderLeftStyle, L"border-left-style", 0xABAFBAF4,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::PageBreakInside, L"page-break-inside", 0xACB695F8,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::TextEmphasis, L"text-emphasis", 0xAD0E580C,
- FDE_CSSVALUETYPE_Shorthand},
{FDE_CSSProperty::BorderBottomWidth, L"border-bottom-width", 0xAE41204D,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::ColumnGap, L"column-gap", 0xB5C1BA73,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::Orphans, L"orphans", 0xB716467B,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::BorderRight, L"border-right", 0xB78E9EA9,
FDE_CSSVALUETYPE_Shorthand},
{FDE_CSSProperty::FontSize, L"font-size", 0xB93956DF,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::PageBreakAfter, L"page-break-after", 0xBC358AEE,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::CaptionSide, L"caption-side", 0xC03F3560,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::BackgroundRepeat, L"background-repeat", 0xC2C2FDCE,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::BorderTopStyle, L"border-top-style", 0xC6F3339C,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
{FDE_CSSProperty::BorderSpacing, L"border-spacing", 0xC72030F0,
FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::TextTransform, L"text-transform", 0xC88EEA6E,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
{FDE_CSSProperty::FontStyle, L"font-style", 0xCB1950F5,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
{FDE_CSSProperty::Font, L"font", 0xCD308B77, FDE_CSSVALUETYPE_Shorthand},
@@ -314,47 +178,19 @@ static const FDE_CSSPropertyTable g_FDE_CSSProperties[] = {
{FDE_CSSProperty::MarginRight, L"margin-right", 0xD13C58C9,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber |
FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::Float, L"float", 0xD1532876,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
{FDE_CSSProperty::BorderLeftWidth, L"border-left-width", 0xD1E93D83,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::Display, L"display", 0xD4224C36,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::Clear, L"clear", 0xD8ED1467,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::ColumnRuleStyle, L"column-rule-style", 0xDBC77871,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::TextCombine, L"text-combine", 0xDC5207CF,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::ListStylePosition, L"list-style-position", 0xE1A1DE3C,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::Visibility, L"visibility", 0xE29F5168,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
{FDE_CSSProperty::PaddingBottom, L"padding-bottom", 0xE555B3B9,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::BackgroundAttachment, L"background-attachment",
- 0xE77981F6, FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::BackgroundImage, L"background-image", 0xE9AEB710,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeURI},
- {FDE_CSSProperty::LineBreak, L"line-break", 0xEA2D1D9A,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::Background, L"background", 0xEB49DD40,
- FDE_CSSVALUETYPE_Shorthand},
{FDE_CSSProperty::BorderTopWidth, L"border-top-width", 0xED2CB62B,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
{FDE_CSSProperty::WordSpacing, L"word-spacing", 0xEDA63BAE,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
- {FDE_CSSProperty::BorderRightColor, L"border-right-color", 0xF33762D5,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeColor},
- {FDE_CSSProperty::CounterIncrement, L"counter-increment", 0xF4CFB1B2,
- FDE_CSSVALUETYPE_List | FDE_CSSVALUETYPE_MaybeEnum |
- FDE_CSSVALUETYPE_MaybeNumber | FDE_CSSVALUETYPE_MaybeString},
{FDE_CSSProperty::Left, L"left", 0xF5AD782B,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum |
FDE_CSSVALUETYPE_MaybeNumber},
@@ -368,184 +204,73 @@ static const FDE_CSSPropertyTable g_FDE_CSSProperties[] = {
{FDE_CSSProperty::MarginTop, L"margin-top", 0xFE51DCFE,
FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeNumber |
FDE_CSSVALUETYPE_MaybeEnum},
- {FDE_CSSProperty::Direction, L"direction", 0xFE746E61,
- FDE_CSSVALUETYPE_Primitive | FDE_CSSVALUETYPE_MaybeEnum},
};
const int32_t g_iCSSPropertyCount =
sizeof(g_FDE_CSSProperties) / sizeof(FDE_CSSPropertyTable);
+static_assert(g_iCSSPropertyCount ==
+ static_cast<int32_t>(FDE_CSSProperty::LAST_MARKER),
+ "Property table differs in size from property enum");
static const FDE_CSSPropertyValueTable g_FDE_CSSPropertyValues[] = {
{FDE_CSSPropertyValue::Bolder, L"bolder", 0x009F1058},
- {FDE_CSSPropertyValue::LowerLatin, L"lower-latin", 0x016014CE},
- {FDE_CSSPropertyValue::Lowercase, L"lowercase", 0x02ACB805},
- {FDE_CSSPropertyValue::LowerGreek, L"lower-greek", 0x03D81D64},
- {FDE_CSSPropertyValue::Sesame, L"sesame", 0x0432ECDE},
{FDE_CSSPropertyValue::None, L"none", 0x048B6670},
- {FDE_CSSPropertyValue::NwResize, L"nw-resize", 0x054B4BE4},
- {FDE_CSSPropertyValue::WResize, L"w-resize", 0x0A2F8D76},
{FDE_CSSPropertyValue::Dot, L"dot", 0x0A48CB27},
- {FDE_CSSPropertyValue::End, L"end", 0x0A631437},
- {FDE_CSSPropertyValue::Ltr, L"ltr", 0x0B1B56D2},
- {FDE_CSSPropertyValue::Pre, L"pre", 0x0B848587},
- {FDE_CSSPropertyValue::Rtl, L"rtl", 0x0BB92C52},
{FDE_CSSPropertyValue::Sub, L"sub", 0x0BD37FAA},
{FDE_CSSPropertyValue::Top, L"top", 0x0BEDAF33},
- {FDE_CSSPropertyValue::Visible, L"visible", 0x0F55D7EE},
- {FDE_CSSPropertyValue::Filled, L"filled", 0x10827DD0},
- {FDE_CSSPropertyValue::SwResize, L"sw-resize", 0x10B548E9},
- {FDE_CSSPropertyValue::NoRepeat, L"no-repeat", 0x1235C18B},
- {FDE_CSSPropertyValue::Default, L"default", 0x14DA2125},
- {FDE_CSSPropertyValue::Transparent, L"transparent", 0x17B64DB2},
- {FDE_CSSPropertyValue::Ridge, L"ridge", 0x18EBEE4B},
{FDE_CSSPropertyValue::Right, L"right", 0x193ADE3E},
- {FDE_CSSPropertyValue::HorizontalTb, L"horizontal-tb", 0x1A66A86D},
- {FDE_CSSPropertyValue::DistributeLetter, L"distribute-letter", 0x1EDBD75C},
- {FDE_CSSPropertyValue::DoubleCircle, L"double-circle", 0x1FF082BA},
- {FDE_CSSPropertyValue::Ruby, L"ruby", 0x20D66C02},
- {FDE_CSSPropertyValue::Collapse, L"collapse", 0x2128D673},
{FDE_CSSPropertyValue::Normal, L"normal", 0x247CF3E9},
- {FDE_CSSPropertyValue::Avoid, L"avoid", 0x24E684B3},
- {FDE_CSSPropertyValue::UpperRoman, L"upper-roman", 0x28BAC2B6},
{FDE_CSSPropertyValue::Auto, L"auto", 0x2B35B6D9},
{FDE_CSSPropertyValue::Text, L"text", 0x2D08AF85},
{FDE_CSSPropertyValue::XSmall, L"x-small", 0x2D2FCAFE},
{FDE_CSSPropertyValue::Thin, L"thin", 0x2D574D53},
- {FDE_CSSPropertyValue::Repeat, L"repeat", 0x306614A1},
{FDE_CSSPropertyValue::Small, L"small", 0x316A3739},
- {FDE_CSSPropertyValue::NeResize, L"ne-resize", 0x31FD5E12},
- {FDE_CSSPropertyValue::NoContent, L"no-content", 0x33A1C545},
- {FDE_CSSPropertyValue::Outside, L"outside", 0x36DF693D},
- {FDE_CSSPropertyValue::EResize, L"e-resize", 0x36E19FA4},
- {FDE_CSSPropertyValue::TableRow, L"table-row", 0x3912A02D},
{FDE_CSSPropertyValue::Bottom, L"bottom", 0x399F02B5},
{FDE_CSSPropertyValue::Underline, L"underline", 0x3A0273A6},
- {FDE_CSSPropertyValue::CjkIdeographic, L"cjk-ideographic", 0x3A641CC4},
- {FDE_CSSPropertyValue::SeResize, L"se-resize", 0x3D675B17},
- {FDE_CSSPropertyValue::Fixed, L"fixed", 0x3D7DEB10},
{FDE_CSSPropertyValue::Double, L"double", 0x3D98515B},
- {FDE_CSSPropertyValue::Solid, L"solid", 0x40623B5B},
- {FDE_CSSPropertyValue::RubyBaseGroup, L"ruby-base-group", 0x41014E84},
- {FDE_CSSPropertyValue::OpenQuote, L"open-quote", 0x44A41E8D},
{FDE_CSSPropertyValue::Lighter, L"lighter", 0x45BEB7AF},
- {FDE_CSSPropertyValue::LowerRoman, L"lower-roman", 0x5044D253},
- {FDE_CSSPropertyValue::Strict, L"strict", 0x52F4EBD9},
- {FDE_CSSPropertyValue::TableCaption, L"table-caption", 0x5325CD63},
{FDE_CSSPropertyValue::Oblique, L"oblique", 0x53EBDDB1},
- {FDE_CSSPropertyValue::Decimal, L"decimal", 0x54034C2F},
- {FDE_CSSPropertyValue::Loose, L"loose", 0x54D3A1E2},
- {FDE_CSSPropertyValue::Hebrew, L"hebrew", 0x565792DD},
- {FDE_CSSPropertyValue::Hidden, L"hidden", 0x573CB40C},
- {FDE_CSSPropertyValue::Dashed, L"dashed", 0x58A3DD29},
- {FDE_CSSPropertyValue::Embed, L"embed", 0x59C8F27D},
- {FDE_CSSPropertyValue::TableRowGroup, L"table-row-group", 0x5A43BD07},
- {FDE_CSSPropertyValue::TableColumn, L"table-column", 0x5E705DA3},
- {FDE_CSSPropertyValue::Static, L"static", 0x5E7555E8},
- {FDE_CSSPropertyValue::Outset, L"outset", 0x61236164},
- {FDE_CSSPropertyValue::DecimalLeadingZero, L"decimal-leading-zero",
- 0x61DFC55D},
- {FDE_CSSPropertyValue::KeepWords, L"keep-words", 0x63964801},
- {FDE_CSSPropertyValue::KatakanaIroha, L"katakana-iroha", 0x65D7C91C},
{FDE_CSSPropertyValue::Super, L"super", 0x6A4F842F},
{FDE_CSSPropertyValue::Center, L"center", 0x6C51AFC1},
- {FDE_CSSPropertyValue::TableHeaderGroup, L"table-header-group", 0x706103D8},
- {FDE_CSSPropertyValue::Inside, L"inside", 0x709CB0FC},
{FDE_CSSPropertyValue::XxLarge, L"xx-large", 0x70BB1508},
- {FDE_CSSPropertyValue::Triangle, L"triangle", 0x7524EDF6},
- {FDE_CSSPropertyValue::RubyTextGroup, L"ruby-text-group", 0x78C2B98E},
- {FDE_CSSPropertyValue::Circle, L"circle", 0x7ABEC0D2},
- {FDE_CSSPropertyValue::Hiragana, L"hiragana", 0x7BF5E25B},
- {FDE_CSSPropertyValue::RepeatX, L"repeat-x", 0x7C8F3226},
- {FDE_CSSPropertyValue::RepeatY, L"repeat-y", 0x7C8F3227},
- {FDE_CSSPropertyValue::Move, L"move", 0x7DA03417},
- {FDE_CSSPropertyValue::HiraganaIroha, L"hiragana-iroha", 0x7EE863FB},
- {FDE_CSSPropertyValue::RubyBase, L"ruby-base", 0x7FD1B1EA},
- {FDE_CSSPropertyValue::Scroll, L"scroll", 0x84787AEF},
{FDE_CSSPropertyValue::Smaller, L"smaller", 0x849769F0},
- {FDE_CSSPropertyValue::TableFooterGroup, L"table-footer-group", 0x85BDD97E},
{FDE_CSSPropertyValue::Baseline, L"baseline", 0x87436BA3},
- {FDE_CSSPropertyValue::Separate, L"separate", 0x877C66B5},
- {FDE_CSSPropertyValue::Armenian, L"armenian", 0x889BE4EB},
- {FDE_CSSPropertyValue::Open, L"open", 0x8B90E1F2},
- {FDE_CSSPropertyValue::Relative, L"relative", 0x8C995B5C},
{FDE_CSSPropertyValue::Thick, L"thick", 0x8CC35EB3},
{FDE_CSSPropertyValue::Justify, L"justify", 0x8D269CAE},
{FDE_CSSPropertyValue::Middle, L"middle", 0x947FA00F},
- {FDE_CSSPropertyValue::Always, L"always", 0x959AB231},
- {FDE_CSSPropertyValue::DistributeSpace, L"distribute-space", 0x97A20E58},
- {FDE_CSSPropertyValue::LineEdge, L"line-edge", 0x9A845D2A},
- {FDE_CSSPropertyValue::PreWrap, L"pre-wrap", 0x9D59588E},
{FDE_CSSPropertyValue::Medium, L"medium", 0xA084A381},
- {FDE_CSSPropertyValue::NResize, L"n-resize", 0xA088968D},
{FDE_CSSPropertyValue::ListItem, L"list-item", 0xA32382B8},
- {FDE_CSSPropertyValue::Show, L"show", 0xA66C10C1},
- {FDE_CSSPropertyValue::Currentcolor, L"currentColor", 0xA7883922},
- {FDE_CSSPropertyValue::NoCloseQuote, L"no-close-quote", 0xA79CBFFB},
- {FDE_CSSPropertyValue::VerticalLr, L"vertical-lr", 0xA8673F65},
- {FDE_CSSPropertyValue::VerticalRl, L"vertical-rl", 0xA8675E25},
- {FDE_CSSPropertyValue::Pointer, L"pointer", 0xA90929C1},
{FDE_CSSPropertyValue::XxSmall, L"xx-small", 0xADE1FC76},
{FDE_CSSPropertyValue::Bold, L"bold", 0xB18313A1},
- {FDE_CSSPropertyValue::Both, L"both", 0xB1833CAD},
{FDE_CSSPropertyValue::SmallCaps, L"small-caps", 0xB299428D},
- {FDE_CSSPropertyValue::Katakana, L"katakana", 0xB421A4BC},
- {FDE_CSSPropertyValue::After, L"after", 0xB6B44172},
- {FDE_CSSPropertyValue::Horizontal, L"horizontal", 0xB7732DEA},
- {FDE_CSSPropertyValue::Dotted, L"dotted", 0xB88652A4},
- {FDE_CSSPropertyValue::Disc, L"disc", 0xBEBC18C3},
- {FDE_CSSPropertyValue::Georgian, L"georgian", 0xBEF99E8C},
{FDE_CSSPropertyValue::Inline, L"inline", 0xC02D649F},
{FDE_CSSPropertyValue::Overline, L"overline", 0xC0EC9FA4},
- {FDE_CSSPropertyValue::Wait, L"wait", 0xC1613BB5},
- {FDE_CSSPropertyValue::BreakAll, L"break-all", 0xC3145BAB},
- {FDE_CSSPropertyValue::UpperAlpha, L"upper-alpha", 0xC52D4A9F},
- {FDE_CSSPropertyValue::Capitalize, L"capitalize", 0xC5321D46},
- {FDE_CSSPropertyValue::Nowrap, L"nowrap", 0xC7994417},
{FDE_CSSPropertyValue::TextBottom, L"text-bottom", 0xC7D08D87},
- {FDE_CSSPropertyValue::NoOpenQuote, L"no-open-quote", 0xC8CD7877},
- {FDE_CSSPropertyValue::Groove, L"groove", 0xCB24A412},
- {FDE_CSSPropertyValue::Progress, L"progress", 0xCD1D9835},
{FDE_CSSPropertyValue::Larger, L"larger", 0xCD3C409D},
- {FDE_CSSPropertyValue::CloseQuote, L"close-quote", 0xCF8696D1},
- {FDE_CSSPropertyValue::TableCell, L"table-cell", 0xCFB5E595},
- {FDE_CSSPropertyValue::PreLine, L"pre-line", 0xD04FEDBC},
- {FDE_CSSPropertyValue::Absolute, L"absolute", 0xD0B2D55F},
{FDE_CSSPropertyValue::InlineTable, L"inline-table", 0xD131F494},
- {FDE_CSSPropertyValue::BidiOverride, L"bidi-override", 0xD161FDE5},
{FDE_CSSPropertyValue::InlineBlock, L"inline-block", 0xD26A8BD7},
- {FDE_CSSPropertyValue::Inset, L"inset", 0xD6F23243},
- {FDE_CSSPropertyValue::Crosshair, L"crosshair", 0xD6F8018E},
- {FDE_CSSPropertyValue::UpperLatin, L"upper-latin", 0xD9D60531},
- {FDE_CSSPropertyValue::Help, L"help", 0xDA002969},
- {FDE_CSSPropertyValue::Hide, L"hide", 0xDA69395A},
- {FDE_CSSPropertyValue::Uppercase, L"uppercase", 0xDAD595A8},
- {FDE_CSSPropertyValue::SResize, L"s-resize", 0xDB3AADF2},
- {FDE_CSSPropertyValue::Table, L"table", 0xDB9BE968},
{FDE_CSSPropertyValue::Blink, L"blink", 0xDC36E390},
{FDE_CSSPropertyValue::Block, L"block", 0xDCD480AB},
- {FDE_CSSPropertyValue::Start, L"start", 0xE1D9D5AE},
- {FDE_CSSPropertyValue::TableColumnGroup, L"table-column-group", 0xE2258EFD},
{FDE_CSSPropertyValue::Italic, L"italic", 0xE31D5396},
{FDE_CSSPropertyValue::LineThrough, L"line-through", 0xE4C5A276},
- {FDE_CSSPropertyValue::KeepAll, L"keep-all", 0xE704A72B},
- {FDE_CSSPropertyValue::LowerAlpha, L"lower-alpha", 0xECB75A3C},
- {FDE_CSSPropertyValue::RunIn, L"run-in", 0xEEC930B9},
- {FDE_CSSPropertyValue::Square, L"square", 0xEF85D351},
{FDE_CSSPropertyValue::XLarge, L"x-large", 0xF008E390},
{FDE_CSSPropertyValue::Large, L"large", 0xF4434FCB},
- {FDE_CSSPropertyValue::Before, L"before", 0xF4FFCE73},
{FDE_CSSPropertyValue::Left, L"left", 0xF5AD782B},
{FDE_CSSPropertyValue::TextTop, L"text-top", 0xFCB58D45},
- {FDE_CSSPropertyValue::RubyText, L"ruby-text", 0xFCC77174},
- {FDE_CSSPropertyValue::NoDisplay, L"no-display", 0xFE482860},
};
const int32_t g_iCSSPropertyValueCount =
sizeof(g_FDE_CSSPropertyValues) / sizeof(FDE_CSSPropertyValueTable);
+static_assert(g_iCSSPropertyValueCount ==
+ static_cast<int32_t>(FDE_CSSPropertyValue::LAST_MARKER),
+ "Property value table differs in size from property value enum");
static const FDE_CSSMEDIATYPETABLE g_FDE_CSSMediaTypes[] = {
- {0xF09, 0x02}, {0x4880, 0x20}, {0x536A, 0x80},
- {0x741D, 0x10}, {0x76ED, 0x08}, {0x7CFB, 0x01},
- {0x9578, 0x04}, {0xC8E1, 0x40}, {0xD0F9, 0xFF},
+ {0xF09, FDE_CSSMEDIATYPE_Emboss}, {FDE_CSSMEDIATYPE_Screen},
+ {0x536A, FDE_CSSMEDIATYPE_TV}, {0x741D, FDE_CSSMEDIATYPE_Projection},
+ {0x76ED, FDE_CSSMEDIATYPE_Print}, {0x7CFB, FDE_CSSMEDIATYPE_Braille},
+ {0x9578, FDE_CSSMEDIATYPE_Handheld}, {0xC8E1, FDE_CSSMEDIATYPE_TTY},
+ {0xD0F9, FDE_CSSMEDIATYPE_ALL},
};
+
static const FDE_CSSLengthUnitTable g_FDE_CSSLengthUnits[] = {
{0x0672, FDE_CSSPrimitiveType::EMS},
{0x067D, FDE_CSSPrimitiveType::EXS},
@@ -556,6 +281,7 @@ static const FDE_CSSLengthUnitTable g_FDE_CSSLengthUnits[] = {
{0x3EE8, FDE_CSSPrimitiveType::Pixels},
{0xFC30, FDE_CSSPrimitiveType::CentiMeters},
};
+
static const FDE_CSSCOLORTABLE g_FDE_CSSColors[] = {
{0x031B47FE, 0xff000080}, {0x0BB8DF5B, 0xffff0000},
{0x0D82A78C, 0xff800000}, {0x2ACC82E8, 0xff00ffff},