Bug 1457802 part 3 - Remove unused keyword tables. r=heycam

MozReview-Commit-ID: A94JflJh368

--HG--
extra : rebase_source : 8c090b26415462a3e55ad59b7aa4b011b99ad342
This commit is contained in:
Xidorn Quan 2018-04-30 09:56:26 +10:00
Родитель 069405ae74
Коммит 8de2cba5fc
2 изменённых файлов: 0 добавлений и 409 удалений

Просмотреть файл

@ -298,11 +298,6 @@ const KTableEntry nsCSSProps::kAnimationFillModeKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kAnimationIterationCountKTable[] = {
{ eCSSKeyword_infinite, NS_STYLE_ANIMATION_ITERATION_COUNT_INFINITE },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kAnimationPlayStateKTable[] = {
{ eCSSKeyword_running, NS_STYLE_ANIMATION_PLAY_STATE_RUNNING },
{ eCSSKeyword_paused, NS_STYLE_ANIMATION_PLAY_STATE_PAUSED },
@ -494,18 +489,6 @@ const KTableEntry nsCSSProps::kMaskClipKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
// Note: Don't change this table unless you update
// ParseImageLayerPosition!
const KTableEntry nsCSSProps::kImageLayerPositionKTable[] = {
{ eCSSKeyword_center, NS_STYLE_IMAGELAYER_POSITION_CENTER },
{ eCSSKeyword_top, NS_STYLE_IMAGELAYER_POSITION_TOP },
{ eCSSKeyword_bottom, NS_STYLE_IMAGELAYER_POSITION_BOTTOM },
{ eCSSKeyword_left, NS_STYLE_IMAGELAYER_POSITION_LEFT },
{ eCSSKeyword_right, NS_STYLE_IMAGELAYER_POSITION_RIGHT },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kImageLayerRepeatKTable[] = {
{ eCSSKeyword_no_repeat, StyleImageLayerRepeat::NoRepeat },
{ eCSSKeyword_repeat, StyleImageLayerRepeat::Repeat },
@ -516,20 +499,6 @@ const KTableEntry nsCSSProps::kImageLayerRepeatKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kImageLayerRepeatPartKTable[] = {
{ eCSSKeyword_no_repeat, StyleImageLayerRepeat::NoRepeat },
{ eCSSKeyword_repeat, StyleImageLayerRepeat::Repeat },
{ eCSSKeyword_round, StyleImageLayerRepeat::Round},
{ eCSSKeyword_space, StyleImageLayerRepeat::Space},
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kImageLayerSizeKTable[] = {
{ eCSSKeyword_contain, NS_STYLE_IMAGELAYER_SIZE_CONTAIN },
{ eCSSKeyword_cover, NS_STYLE_IMAGELAYER_SIZE_COVER },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kImageLayerModeKTable[] = {
{ eCSSKeyword_alpha, NS_STYLE_MASK_MODE_ALPHA },
{ eCSSKeyword_luminance, NS_STYLE_MASK_MODE_LUMINANCE },
@ -579,11 +548,6 @@ const KTableEntry nsCSSProps::kBorderImageRepeatKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kBorderImageSliceKTable[] = {
{ eCSSKeyword_fill, NS_STYLE_BORDER_IMAGE_SLICE_FILL },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kBorderStyleKTable[] = {
{ eCSSKeyword_none, NS_STYLE_BORDER_STYLE_NONE },
{ eCSSKeyword_hidden, NS_STYLE_BORDER_STYLE_HIDDEN },
@ -598,13 +562,6 @@ const KTableEntry nsCSSProps::kBorderStyleKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kBorderWidthKTable[] = {
{ eCSSKeyword_thin, NS_STYLE_BORDER_WIDTH_THIN },
{ eCSSKeyword_medium, NS_STYLE_BORDER_WIDTH_MEDIUM },
{ eCSSKeyword_thick, NS_STYLE_BORDER_WIDTH_THICK },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kBoxDecorationBreakKTable[] = {
{ eCSSKeyword_slice, StyleBoxDecorationBreak::Slice },
{ eCSSKeyword_clone, StyleBoxDecorationBreak::Clone },
@ -642,130 +599,6 @@ const KTableEntry nsCSSProps::kClearKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
// See also kContextPatternKTable for SVG paint-specific values
const KTableEntry nsCSSProps::kColorKTable[] = {
{ eCSSKeyword_activeborder, LookAndFeel::eColorID_activeborder },
{ eCSSKeyword_activecaption, LookAndFeel::eColorID_activecaption },
{ eCSSKeyword_appworkspace, LookAndFeel::eColorID_appworkspace },
{ eCSSKeyword_background, LookAndFeel::eColorID_background },
{ eCSSKeyword_buttonface, LookAndFeel::eColorID_buttonface },
{ eCSSKeyword_buttonhighlight, LookAndFeel::eColorID_buttonhighlight },
{ eCSSKeyword_buttonshadow, LookAndFeel::eColorID_buttonshadow },
{ eCSSKeyword_buttontext, LookAndFeel::eColorID_buttontext },
{ eCSSKeyword_captiontext, LookAndFeel::eColorID_captiontext },
{ eCSSKeyword_graytext, LookAndFeel::eColorID_graytext },
{ eCSSKeyword_highlight, LookAndFeel::eColorID_highlight },
{ eCSSKeyword_highlighttext, LookAndFeel::eColorID_highlighttext },
{ eCSSKeyword_inactiveborder, LookAndFeel::eColorID_inactiveborder },
{ eCSSKeyword_inactivecaption, LookAndFeel::eColorID_inactivecaption },
{ eCSSKeyword_inactivecaptiontext, LookAndFeel::eColorID_inactivecaptiontext },
{ eCSSKeyword_infobackground, LookAndFeel::eColorID_infobackground },
{ eCSSKeyword_infotext, LookAndFeel::eColorID_infotext },
{ eCSSKeyword_menu, LookAndFeel::eColorID_menu },
{ eCSSKeyword_menutext, LookAndFeel::eColorID_menutext },
{ eCSSKeyword_scrollbar, LookAndFeel::eColorID_scrollbar },
{ eCSSKeyword_threeddarkshadow, LookAndFeel::eColorID_threeddarkshadow },
{ eCSSKeyword_threedface, LookAndFeel::eColorID_threedface },
{ eCSSKeyword_threedhighlight, LookAndFeel::eColorID_threedhighlight },
{ eCSSKeyword_threedlightshadow, LookAndFeel::eColorID_threedlightshadow },
{ eCSSKeyword_threedshadow, LookAndFeel::eColorID_threedshadow },
{ eCSSKeyword_window, LookAndFeel::eColorID_window },
{ eCSSKeyword_windowframe, LookAndFeel::eColorID_windowframe },
{ eCSSKeyword_windowtext, LookAndFeel::eColorID_windowtext },
{ eCSSKeyword__moz_activehyperlinktext, NS_COLOR_MOZ_ACTIVEHYPERLINKTEXT },
{ eCSSKeyword__moz_buttondefault, LookAndFeel::eColorID__moz_buttondefault },
{ eCSSKeyword__moz_buttonhoverface, LookAndFeel::eColorID__moz_buttonhoverface },
{ eCSSKeyword__moz_buttonhovertext, LookAndFeel::eColorID__moz_buttonhovertext },
{ eCSSKeyword__moz_cellhighlight, LookAndFeel::eColorID__moz_cellhighlight },
{ eCSSKeyword__moz_cellhighlighttext, LookAndFeel::eColorID__moz_cellhighlighttext },
{ eCSSKeyword__moz_eventreerow, LookAndFeel::eColorID__moz_eventreerow },
{ eCSSKeyword__moz_field, LookAndFeel::eColorID__moz_field },
{ eCSSKeyword__moz_fieldtext, LookAndFeel::eColorID__moz_fieldtext },
{ eCSSKeyword__moz_default_background_color, NS_COLOR_MOZ_DEFAULT_BACKGROUND_COLOR },
{ eCSSKeyword__moz_default_color, NS_COLOR_MOZ_DEFAULT_COLOR },
{ eCSSKeyword__moz_dialog, LookAndFeel::eColorID__moz_dialog },
{ eCSSKeyword__moz_dialogtext, LookAndFeel::eColorID__moz_dialogtext },
{ eCSSKeyword__moz_dragtargetzone, LookAndFeel::eColorID__moz_dragtargetzone },
{ eCSSKeyword__moz_gtk_info_bar_text, LookAndFeel::eColorID__moz_gtk_info_bar_text },
{ eCSSKeyword__moz_hyperlinktext, NS_COLOR_MOZ_HYPERLINKTEXT },
{ eCSSKeyword__moz_html_cellhighlight, LookAndFeel::eColorID__moz_html_cellhighlight },
{ eCSSKeyword__moz_html_cellhighlighttext, LookAndFeel::eColorID__moz_html_cellhighlighttext },
{ eCSSKeyword__moz_mac_buttonactivetext, LookAndFeel::eColorID__moz_mac_buttonactivetext },
{ eCSSKeyword__moz_mac_chrome_active, LookAndFeel::eColorID__moz_mac_chrome_active },
{ eCSSKeyword__moz_mac_chrome_inactive, LookAndFeel::eColorID__moz_mac_chrome_inactive },
{ eCSSKeyword__moz_mac_defaultbuttontext, LookAndFeel::eColorID__moz_mac_defaultbuttontext },
{ eCSSKeyword__moz_mac_focusring, LookAndFeel::eColorID__moz_mac_focusring },
{ eCSSKeyword__moz_mac_menuselect, LookAndFeel::eColorID__moz_mac_menuselect },
{ eCSSKeyword__moz_mac_menushadow, LookAndFeel::eColorID__moz_mac_menushadow },
{ eCSSKeyword__moz_mac_menutextdisable, LookAndFeel::eColorID__moz_mac_menutextdisable },
{ eCSSKeyword__moz_mac_menutextselect, LookAndFeel::eColorID__moz_mac_menutextselect },
{ eCSSKeyword__moz_mac_disabledtoolbartext, LookAndFeel::eColorID__moz_mac_disabledtoolbartext },
{ eCSSKeyword__moz_mac_secondaryhighlight, LookAndFeel::eColorID__moz_mac_secondaryhighlight },
{ eCSSKeyword__moz_mac_vibrancy_light, LookAndFeel::eColorID__moz_mac_vibrancy_light },
{ eCSSKeyword__moz_mac_vibrancy_dark, LookAndFeel::eColorID__moz_mac_vibrancy_dark },
{ eCSSKeyword__moz_mac_vibrant_titlebar_light, LookAndFeel::eColorID__moz_mac_vibrant_titlebar_light },
{ eCSSKeyword__moz_mac_vibrant_titlebar_dark, LookAndFeel::eColorID__moz_mac_vibrant_titlebar_dark },
{ eCSSKeyword__moz_mac_menuitem, LookAndFeel::eColorID__moz_mac_menuitem },
{ eCSSKeyword__moz_mac_active_menuitem, LookAndFeel::eColorID__moz_mac_active_menuitem },
{ eCSSKeyword__moz_mac_menupopup, LookAndFeel::eColorID__moz_mac_menupopup },
{ eCSSKeyword__moz_mac_source_list, LookAndFeel::eColorID__moz_mac_source_list },
{ eCSSKeyword__moz_mac_source_list_selection, LookAndFeel::eColorID__moz_mac_source_list_selection },
{ eCSSKeyword__moz_mac_active_source_list_selection, LookAndFeel::eColorID__moz_mac_active_source_list_selection },
{ eCSSKeyword__moz_mac_tooltip, LookAndFeel::eColorID__moz_mac_tooltip },
{ eCSSKeyword__moz_menuhover, LookAndFeel::eColorID__moz_menuhover },
{ eCSSKeyword__moz_menuhovertext, LookAndFeel::eColorID__moz_menuhovertext },
{ eCSSKeyword__moz_menubartext, LookAndFeel::eColorID__moz_menubartext },
{ eCSSKeyword__moz_menubarhovertext, LookAndFeel::eColorID__moz_menubarhovertext },
{ eCSSKeyword__moz_oddtreerow, LookAndFeel::eColorID__moz_oddtreerow },
{ eCSSKeyword__moz_visitedhyperlinktext, NS_COLOR_MOZ_VISITEDHYPERLINKTEXT },
{ eCSSKeyword_currentcolor, NS_COLOR_CURRENTCOLOR },
{ eCSSKeyword__moz_win_accentcolor, LookAndFeel::eColorID__moz_win_accentcolor },
{ eCSSKeyword__moz_win_accentcolortext, LookAndFeel::eColorID__moz_win_accentcolortext },
{ eCSSKeyword__moz_win_mediatext, LookAndFeel::eColorID__moz_win_mediatext },
{ eCSSKeyword__moz_win_communicationstext, LookAndFeel::eColorID__moz_win_communicationstext },
{ eCSSKeyword__moz_nativehyperlinktext, LookAndFeel::eColorID__moz_nativehyperlinktext },
{ eCSSKeyword__moz_comboboxtext, LookAndFeel::eColorID__moz_comboboxtext },
{ eCSSKeyword__moz_combobox, LookAndFeel::eColorID__moz_combobox },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kContentKTable[] = {
{ eCSSKeyword_open_quote, uint8_t(StyleContent::OpenQuote) },
{ eCSSKeyword_close_quote, uint8_t(StyleContent::CloseQuote) },
{ eCSSKeyword_no_open_quote, uint8_t(StyleContent::NoOpenQuote) },
{ eCSSKeyword_no_close_quote, uint8_t(StyleContent::NoCloseQuote) },
{ eCSSKeyword__moz_alt_content, uint8_t(StyleContent::AltContent) },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kControlCharacterVisibilityKTable[] = {
{ eCSSKeyword_hidden, NS_STYLE_CONTROL_CHARACTER_VISIBILITY_HIDDEN },
{ eCSSKeyword_visible, NS_STYLE_CONTROL_CHARACTER_VISIBILITY_VISIBLE },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kCounterRangeKTable[] = {
{ eCSSKeyword_infinite, NS_STYLE_COUNTER_RANGE_INFINITE },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kCounterSpeakAsKTable[] = {
{ eCSSKeyword_bullets, NS_STYLE_COUNTER_SPEAKAS_BULLETS },
{ eCSSKeyword_numbers, NS_STYLE_COUNTER_SPEAKAS_NUMBERS },
{ eCSSKeyword_words, NS_STYLE_COUNTER_SPEAKAS_WORDS },
{ eCSSKeyword_spell_out, NS_STYLE_COUNTER_SPEAKAS_SPELL_OUT },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kCounterSymbolsSystemKTable[] = {
{ eCSSKeyword_cyclic, NS_STYLE_COUNTER_SYSTEM_CYCLIC },
{ eCSSKeyword_numeric, NS_STYLE_COUNTER_SYSTEM_NUMERIC },
{ eCSSKeyword_alphabetic, NS_STYLE_COUNTER_SYSTEM_ALPHABETIC },
{ eCSSKeyword_symbolic, NS_STYLE_COUNTER_SYSTEM_SYMBOLIC },
{ eCSSKeyword_fixed, NS_STYLE_COUNTER_SYSTEM_FIXED },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kCounterSystemKTable[] = {
{ eCSSKeyword_cyclic, NS_STYLE_COUNTER_SYSTEM_CYCLIC },
{ eCSSKeyword_numeric, NS_STYLE_COUNTER_SYSTEM_NUMERIC },
@ -1079,38 +912,6 @@ const KTableEntry nsCSSProps::kFloatEdgeKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kFontDisplayKTable[] = {
{ eCSSKeyword_auto, NS_FONT_DISPLAY_AUTO },
{ eCSSKeyword_block, NS_FONT_DISPLAY_BLOCK },
{ eCSSKeyword_swap, NS_FONT_DISPLAY_SWAP },
{ eCSSKeyword_fallback, NS_FONT_DISPLAY_FALLBACK },
{ eCSSKeyword_optional, NS_FONT_DISPLAY_OPTIONAL },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kFontKTable[] = {
// CSS2.
{ eCSSKeyword_caption, NS_STYLE_FONT_CAPTION },
{ 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 },
// 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 },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kFontKerningKTable[] = {
{ eCSSKeyword_auto, NS_FONT_KERNING_AUTO },
{ eCSSKeyword_none, NS_FONT_KERNING_NONE },
@ -1124,51 +925,12 @@ const KTableEntry nsCSSProps::kFontOpticalSizingKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry 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 },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kFontSmoothingKTable[] = {
{ eCSSKeyword_auto, NS_FONT_SMOOTHING_AUTO },
{ eCSSKeyword_grayscale, NS_FONT_SMOOTHING_GRAYSCALE },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kFontStretchKTable[] = {
// The spec defines some keywords to be fractional values, which we can't
// represent in this table. We use dummy values since no code cares about
// the actual values that we use here anyway, and this code is going away
// in bug 1448759.
{ eCSSKeyword_ultra_condensed, 1001 },
{ eCSSKeyword_extra_condensed, 1001 },
{ eCSSKeyword_condensed, 1001 },
{ eCSSKeyword_semi_condensed, 1001 },
{ eCSSKeyword_normal, 1001 },
{ eCSSKeyword_semi_expanded, 1001 },
{ eCSSKeyword_expanded, 1001 },
{ eCSSKeyword_extra_expanded, 1001 },
{ eCSSKeyword_ultra_expanded, 1001 },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kFontStyleKTable[] = {
// Dummy values. No code cares any more about the actual values, and this
// code is going away in bug 1448759.
{ eCSSKeyword_normal, 361 },
{ eCSSKeyword_italic, 361 },
{ eCSSKeyword_oblique, 361 },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kFontSynthesisKTable[] = {
{ eCSSKeyword_weight, NS_FONT_SYNTHESIS_WEIGHT },
{ eCSSKeyword_style, NS_FONT_SYNTHESIS_STYLE },
@ -1243,14 +1005,6 @@ const KTableEntry nsCSSProps::kFontVariantPositionKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kFontWeightKTable[] = {
{ eCSSKeyword_normal, NS_FONT_WEIGHT_NORMAL },
{ eCSSKeyword_bold, NS_FONT_WEIGHT_BOLD },
{ eCSSKeyword_bolder, NS_STYLE_FONT_WEIGHT_BOLDER },
{ eCSSKeyword_lighter, NS_STYLE_FONT_WEIGHT_LIGHTER },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kGridAutoFlowKTable[] = {
{ eCSSKeyword_row, NS_STYLE_GRID_AUTO_FLOW_ROW },
{ eCSSKeyword_column, NS_STYLE_GRID_AUTO_FLOW_COLUMN },
@ -1264,17 +1018,6 @@ const KTableEntry nsCSSProps::kGridTrackBreadthKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kImageOrientationKTable[] = {
{ eCSSKeyword_flip, NS_STYLE_IMAGE_ORIENTATION_FLIP },
{ eCSSKeyword_from_image, NS_STYLE_IMAGE_ORIENTATION_FROM_IMAGE },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kImageOrientationFlipKTable[] = {
{ eCSSKeyword_flip, NS_STYLE_IMAGE_ORIENTATION_FLIP },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kIsolationKTable[] = {
{ eCSSKeyword_auto, NS_STYLE_ISOLATION_AUTO },
{ eCSSKeyword_isolate, NS_STYLE_ISOLATION_ISOLATE },
@ -1302,35 +1045,6 @@ const KTableEntry nsCSSProps::kListStylePositionKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kMathVariantKTable[] = {
{ eCSSKeyword_none, NS_MATHML_MATHVARIANT_NONE },
{ eCSSKeyword_normal, NS_MATHML_MATHVARIANT_NORMAL },
{ eCSSKeyword_bold, NS_MATHML_MATHVARIANT_BOLD },
{ eCSSKeyword_italic, NS_MATHML_MATHVARIANT_ITALIC },
{ eCSSKeyword_bold_italic, NS_MATHML_MATHVARIANT_BOLD_ITALIC },
{ eCSSKeyword_script, NS_MATHML_MATHVARIANT_SCRIPT },
{ eCSSKeyword_bold_script, NS_MATHML_MATHVARIANT_BOLD_SCRIPT },
{ eCSSKeyword_fraktur, NS_MATHML_MATHVARIANT_FRAKTUR },
{ eCSSKeyword_double_struck, NS_MATHML_MATHVARIANT_DOUBLE_STRUCK },
{ eCSSKeyword_bold_fraktur, NS_MATHML_MATHVARIANT_BOLD_FRAKTUR },
{ eCSSKeyword_sans_serif, NS_MATHML_MATHVARIANT_SANS_SERIF },
{ eCSSKeyword_bold_sans_serif, NS_MATHML_MATHVARIANT_BOLD_SANS_SERIF },
{ eCSSKeyword_sans_serif_italic, NS_MATHML_MATHVARIANT_SANS_SERIF_ITALIC },
{ eCSSKeyword_sans_serif_bold_italic, NS_MATHML_MATHVARIANT_SANS_SERIF_BOLD_ITALIC },
{ eCSSKeyword_monospace, NS_MATHML_MATHVARIANT_MONOSPACE },
{ eCSSKeyword_initial, NS_MATHML_MATHVARIANT_INITIAL },
{ eCSSKeyword_tailed, NS_MATHML_MATHVARIANT_TAILED },
{ eCSSKeyword_looped, NS_MATHML_MATHVARIANT_LOOPED },
{ eCSSKeyword_stretched, NS_MATHML_MATHVARIANT_STRETCHED },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kMathDisplayKTable[] = {
{ eCSSKeyword_inline, NS_MATHML_DISPLAYSTYLE_INLINE },
{ eCSSKeyword_block, NS_MATHML_DISPLAYSTYLE_BLOCK },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kContainKTable[] = {
{ eCSSKeyword_none, NS_STYLE_CONTAIN_NONE },
{ eCSSKeyword_strict, NS_STYLE_CONTAIN_STRICT },
@ -1340,18 +1054,6 @@ const KTableEntry nsCSSProps::kContainKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kContextOpacityKTable[] = {
{ eCSSKeyword_context_fill_opacity, NS_STYLE_CONTEXT_FILL_OPACITY },
{ eCSSKeyword_context_stroke_opacity, NS_STYLE_CONTEXT_STROKE_OPACITY },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kContextPatternKTable[] = {
{ eCSSKeyword_context_fill, NS_COLOR_CONTEXT_FILL },
{ eCSSKeyword_context_stroke, NS_COLOR_CONTEXT_STROKE },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kObjectFitKTable[] = {
{ eCSSKeyword_fill, NS_STYLE_OBJECT_FIT_FILL },
{ eCSSKeyword_contain, NS_STYLE_OBJECT_FIT_CONTAIN },
@ -1413,34 +1115,12 @@ const KTableEntry nsCSSProps::kOverflowSubKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kPageBreakKTable[] = {
{ eCSSKeyword_auto, NS_STYLE_PAGE_BREAK_AUTO },
{ 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 },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kPageBreakInsideKTable[] = {
{ eCSSKeyword_auto, NS_STYLE_PAGE_BREAK_AUTO },
{ eCSSKeyword_avoid, NS_STYLE_PAGE_BREAK_AVOID },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kPageMarksKTable[] = {
{ eCSSKeyword_none, NS_STYLE_PAGE_MARKS_NONE },
{ eCSSKeyword_crop, NS_STYLE_PAGE_MARKS_CROP },
{ eCSSKeyword_cross, NS_STYLE_PAGE_MARKS_REGISTER },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kPageSizeKTable[] = {
{ eCSSKeyword_landscape, NS_STYLE_PAGE_SIZE_LANDSCAPE },
{ eCSSKeyword_portrait, NS_STYLE_PAGE_SIZE_PORTRAIT },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kPointerEventsKTable[] = {
{ eCSSKeyword_none, NS_STYLE_POINTER_EVENTS_NONE },
{ eCSSKeyword_visiblepainted, NS_STYLE_POINTER_EVENTS_VISIBLEPAINTED },
@ -1464,12 +1144,6 @@ const KTableEntry nsCSSProps::kPositionKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kRadialGradientShapeKTable[] = {
{ eCSSKeyword_circle, NS_STYLE_GRADIENT_SHAPE_CIRCULAR },
{ eCSSKeyword_ellipse, NS_STYLE_GRADIENT_SHAPE_ELLIPTICAL },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kRadialGradientSizeKTable[] = {
{ eCSSKeyword_closest_side, NS_STYLE_GRADIENT_SIZE_CLOSEST_SIDE },
{ eCSSKeyword_closest_corner, NS_STYLE_GRADIENT_SIZE_CLOSEST_CORNER },
@ -1478,17 +1152,6 @@ const KTableEntry nsCSSProps::kRadialGradientSizeKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kRadialGradientLegacySizeKTable[] = {
{ 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 }
};
const KTableEntry nsCSSProps::kResizeKTable[] = {
{ eCSSKeyword_none, NS_STYLE_RESIZE_NONE },
{ eCSSKeyword_both, NS_STYLE_RESIZE_BOTH },
@ -1619,20 +1282,6 @@ const KTableEntry nsCSSProps::kTextOrientationKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kTextEmphasisPositionKTable[] = {
{ eCSSKeyword_over, NS_STYLE_TEXT_EMPHASIS_POSITION_OVER },
{ eCSSKeyword_under, NS_STYLE_TEXT_EMPHASIS_POSITION_UNDER },
{ eCSSKeyword_left, NS_STYLE_TEXT_EMPHASIS_POSITION_LEFT },
{ eCSSKeyword_right, NS_STYLE_TEXT_EMPHASIS_POSITION_RIGHT },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kTextEmphasisStyleFillKTable[] = {
{ eCSSKeyword_filled, NS_STYLE_TEXT_EMPHASIS_STYLE_FILLED },
{ eCSSKeyword_open, NS_STYLE_TEXT_EMPHASIS_STYLE_OPEN },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kTextEmphasisStyleShapeKTable[] = {
{ eCSSKeyword_dot, NS_STYLE_TEXT_EMPHASIS_STYLE_DOT },
{ eCSSKeyword_circle, NS_STYLE_TEXT_EMPHASIS_STYLE_CIRCLE },
@ -1672,12 +1321,6 @@ const KTableEntry nsCSSProps::kTouchActionKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kTopLayerKTable[] = {
{ eCSSKeyword_none, NS_STYLE_TOP_LAYER_NONE },
{ eCSSKeyword_top, NS_STYLE_TOP_LAYER_TOP },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kTransformBoxKTable[] = {
{ eCSSKeyword_border_box, StyleGeometryBox::BorderBox },
{ eCSSKeyword_fill_box, StyleGeometryBox::FillBox },
@ -1973,13 +1616,6 @@ const KTableEntry nsCSSProps::kStrokeLinejoinKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
// Lookup table to store the sole objectValue keyword to let SVG glyphs inherit
// certain stroke-* properties from the outer text object
const KTableEntry nsCSSProps::kStrokeContextValueKTable[] = {
{ eCSSKeyword_context_value, NS_STYLE_STROKE_PROP_CONTEXT_VALUE },
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kTextAnchorKTable[] = {
{ eCSSKeyword_start, NS_STYLE_TEXT_ANCHOR_START },
{ eCSSKeyword_middle, NS_STYLE_TEXT_ANCHOR_MIDDLE },

Просмотреть файл

@ -262,20 +262,14 @@ public:
// Keyword/Enum value tables
static const KTableEntry kAnimationDirectionKTable[];
static const KTableEntry kAnimationFillModeKTable[];
static const KTableEntry kAnimationIterationCountKTable[];
static const KTableEntry kAnimationPlayStateKTable[];
static const KTableEntry kAnimationTimingFunctionKTable[];
static const KTableEntry kAppearanceKTable[];
static const KTableEntry kAzimuthKTable[];
static const KTableEntry kBackfaceVisibilityKTable[];
static const KTableEntry kTransformStyleKTable[];
static const KTableEntry kImageLayerAttachmentKTable[];
static const KTableEntry kBackgroundOriginKTable[];
static const KTableEntry kMaskOriginKTable[];
static const KTableEntry kImageLayerPositionKTable[];
static const KTableEntry kImageLayerRepeatKTable[];
static const KTableEntry kImageLayerRepeatPartKTable[];
static const KTableEntry kImageLayerSizeKTable[];
static const KTableEntry kImageLayerCompositeKTable[];
static const KTableEntry kImageLayerModeKTable[];
// Not const because we modify its entries when the pref
@ -285,18 +279,13 @@ public:
static const KTableEntry kBlendModeKTable[];
static const KTableEntry kBorderCollapseKTable[];
static const KTableEntry kBorderImageRepeatKTable[];
static const KTableEntry kBorderImageSliceKTable[];
static const KTableEntry kBorderStyleKTable[];
static const KTableEntry kBorderWidthKTable[];
static const KTableEntry kBoxAlignKTable[];
static const KTableEntry kBoxDecorationBreakKTable[];
static const KTableEntry kBoxDirectionKTable[];
static const KTableEntry kBoxOrientKTable[];
static const KTableEntry kBoxPackKTable[];
static const KTableEntry kClipPathGeometryBoxKTable[];
static const KTableEntry kCounterRangeKTable[];
static const KTableEntry kCounterSpeakAsKTable[];
static const KTableEntry kCounterSymbolsSystemKTable[];
static const KTableEntry kCounterSystemKTable[];
static const KTableEntry kDominantBaselineKTable[];
static const KTableEntry kShapeRadiusKTable[];
@ -307,7 +296,6 @@ public:
static const KTableEntry kShapeRenderingKTable[];
static const KTableEntry kStrokeLinecapKTable[];
static const KTableEntry kStrokeLinejoinKTable[];
static const KTableEntry kStrokeContextValueKTable[];
static const KTableEntry kVectorEffectKTable[];
static const KTableEntry kTextAnchorKTable[];
static const KTableEntry kTextRenderingKTable[];
@ -315,20 +303,15 @@ public:
static const KTableEntry kColorInterpolationKTable[];
static const KTableEntry kColumnFillKTable[];
static const KTableEntry kColumnSpanKTable[];
static const KTableEntry kBoxPropSourceKTable[];
static const KTableEntry kBoxShadowTypeKTable[];
static const KTableEntry kBoxSizingKTable[];
static const KTableEntry kCaptionSideKTable[];
static const KTableEntry kClearKTable[];
static const KTableEntry kColorKTable[];
static const KTableEntry kContentKTable[];
static const KTableEntry kControlCharacterVisibilityKTable[];
static const KTableEntry kCursorKTable[];
static const KTableEntry kDirectionKTable[];
// Not const because we modify its entries when various
// "layout.css.*.enabled" prefs changes:
static KTableEntry kDisplayKTable[];
static const KTableEntry kElevationKTable[];
static const KTableEntry kEmptyCellsKTable[];
// -- tables for parsing the {align,justify}-{content,items,self} properties --
static const KTableEntry kAlignAllKeywords[];
@ -350,16 +333,10 @@ public:
static const KTableEntry kFlexWrapKTable[];
static const KTableEntry kFloatKTable[];
static const KTableEntry kFloatEdgeKTable[];
static const KTableEntry kFontDisplayKTable[];
static const KTableEntry kFontKTable[];
static const KTableEntry kFontKerningKTable[];
static const KTableEntry kFontOpticalSizingKTable[];
static const KTableEntry kFontSizeKTable[];
static const KTableEntry kFontSmoothingKTable[];
static const KTableEntry kFontStretchKTable[];
static const KTableEntry kFontStyleKTable[];
static const KTableEntry kFontSynthesisKTable[];
static const KTableEntry kFontVariantKTable[];
static const KTableEntry kFontVariantAlternatesKTable[];
static const KTableEntry kFontVariantAlternatesFuncsKTable[];
static const KTableEntry kFontVariantCapsKTable[];
@ -367,22 +344,15 @@ public:
static const KTableEntry kFontVariantLigaturesKTable[];
static const KTableEntry kFontVariantNumericKTable[];
static const KTableEntry kFontVariantPositionKTable[];
static const KTableEntry kFontWeightKTable[];
static const KTableEntry kGridAutoFlowKTable[];
static const KTableEntry kGridTrackBreadthKTable[];
static const KTableEntry kHyphensKTable[];
static const KTableEntry kImageOrientationKTable[];
static const KTableEntry kImageOrientationFlipKTable[];
static const KTableEntry kIsolationKTable[];
static const KTableEntry kIMEModeKTable[];
static const KTableEntry kLineHeightKTable[];
static const KTableEntry kListStylePositionKTable[];
static const KTableEntry kMaskTypeKTable[];
static const KTableEntry kMathVariantKTable[];
static const KTableEntry kMathDisplayKTable[];
static const KTableEntry kContainKTable[];
static const KTableEntry kContextOpacityKTable[];
static const KTableEntry kContextPatternKTable[];
static const KTableEntry kObjectFitKTable[];
static const KTableEntry kOrientKTable[];
static const KTableEntry kOutlineStyleKTable[];
@ -390,27 +360,16 @@ public:
static const KTableEntry kOverflowSubKTable[];
static const KTableEntry kOverflowClipBoxKTable[];
static const KTableEntry kOverflowWrapKTable[];
static const KTableEntry kPageBreakKTable[];
static const KTableEntry kPageBreakInsideKTable[];
static const KTableEntry kPageMarksKTable[];
static const KTableEntry kPageSizeKTable[];
static const KTableEntry kPitchKTable[];
static const KTableEntry kPointerEventsKTable[];
static const KTableEntry kPositionKTable[];
static const KTableEntry kRadialGradientShapeKTable[];
static const KTableEntry kRadialGradientSizeKTable[];
static const KTableEntry kRadialGradientLegacySizeKTable[];
static const KTableEntry kResizeKTable[];
static const KTableEntry kRubyAlignKTable[];
static const KTableEntry kRubyPositionKTable[];
static const KTableEntry kScrollBehaviorKTable[];
static const KTableEntry kOverscrollBehaviorKTable[];
static const KTableEntry kScrollSnapTypeKTable[];
static const KTableEntry kSpeakKTable[];
static const KTableEntry kSpeakHeaderKTable[];
static const KTableEntry kSpeakNumeralKTable[];
static const KTableEntry kSpeakPunctuationKTable[];
static const KTableEntry kSpeechRateKTable[];
static const KTableEntry kStackSizingKTable[];
static const KTableEntry kTableLayoutKTable[];
// Not const because we modify its entries when the pref
@ -420,8 +379,6 @@ public:
static const KTableEntry kTextCombineUprightKTable[];
static const KTableEntry kTextDecorationLineKTable[];
static const KTableEntry kTextDecorationStyleKTable[];
static const KTableEntry kTextEmphasisPositionKTable[];
static const KTableEntry kTextEmphasisStyleFillKTable[];
static const KTableEntry kTextEmphasisStyleShapeKTable[];
static const KTableEntry kTextJustifyKTable[];
static const KTableEntry kTextOrientationKTable[];
@ -429,7 +386,6 @@ public:
static const KTableEntry kTextSizeAdjustKTable[];
static const KTableEntry kTextTransformKTable[];
static const KTableEntry kTouchActionKTable[];
static const KTableEntry kTopLayerKTable[];
static const KTableEntry kTransformBoxKTable[];
static const KTableEntry kTransitionTimingFunctionKTable[];
static const KTableEntry kUnicodeBidiKTable[];
@ -439,7 +395,6 @@ public:
static const KTableEntry kUserSelectKTable[];
static const KTableEntry kVerticalAlignKTable[];
static const KTableEntry kVisibilityKTable[];
static const KTableEntry kVolumeKTable[];
static const KTableEntry kWhitespaceKTable[];
static const KTableEntry kWidthKTable[]; // also min-width, max-width
static const KTableEntry kFlexBasisKTable[];