зеркало из https://github.com/mozilla/pjs.git
Disable parsing of 'marker', 'run-in', and 'compact' in a less hacky way. (Bug 636029) r=bzbarsky
This simply removes all the code for the values. This removes a special-case that would otherwise need to become more complicated in a later patch in this series.
This commit is contained in:
Родитель
db7976c7b6
Коммит
da5e4486fd
|
@ -4380,9 +4380,7 @@ nsCSSFrameConstructor::FindDisplayData(const nsStyleDisplay* aDisplay,
|
|||
}
|
||||
|
||||
// Handle various non-scrollable blocks
|
||||
if (aDisplay->IsBlockInside() ||
|
||||
NS_STYLE_DISPLAY_RUN_IN == aDisplay->mDisplay ||
|
||||
NS_STYLE_DISPLAY_COMPACT == aDisplay->mDisplay) {
|
||||
if (aDisplay->IsBlockInside()) {
|
||||
static const FrameConstructionData sNonScrollableBlockData =
|
||||
FULL_CTOR_FCDATA(0, &nsCSSFrameConstructor::ConstructNonScrollableBlock);
|
||||
return &sNonScrollableBlockData;
|
||||
|
@ -4396,9 +4394,6 @@ nsCSSFrameConstructor::FindDisplayData(const nsStyleDisplay* aDisplay,
|
|||
{ NS_STYLE_DISPLAY_INLINE,
|
||||
FULL_CTOR_FCDATA(FCDATA_IS_INLINE | FCDATA_IS_LINE_PARTICIPANT,
|
||||
&nsCSSFrameConstructor::ConstructInline) },
|
||||
{ NS_STYLE_DISPLAY_MARKER,
|
||||
FULL_CTOR_FCDATA(FCDATA_IS_INLINE | FCDATA_IS_LINE_PARTICIPANT,
|
||||
&nsCSSFrameConstructor::ConstructInline) },
|
||||
{ NS_STYLE_DISPLAY_TABLE,
|
||||
FULL_CTOR_FCDATA(0, &nsCSSFrameConstructor::ConstructTable) },
|
||||
{ NS_STYLE_DISPLAY_INLINE_TABLE,
|
||||
|
|
|
@ -375,9 +375,6 @@ static inline mozilla::css::Side operator++(mozilla::css::Side& side, int) {
|
|||
#define NS_STYLE_DISPLAY_INLINE 2
|
||||
#define NS_STYLE_DISPLAY_INLINE_BLOCK 3
|
||||
#define NS_STYLE_DISPLAY_LIST_ITEM 4
|
||||
#define NS_STYLE_DISPLAY_MARKER 5
|
||||
#define NS_STYLE_DISPLAY_RUN_IN 6
|
||||
#define NS_STYLE_DISPLAY_COMPACT 7
|
||||
#define NS_STYLE_DISPLAY_TABLE 8
|
||||
#define NS_STYLE_DISPLAY_INLINE_TABLE 9
|
||||
#define NS_STYLE_DISPLAY_TABLE_ROW_GROUP 10
|
||||
|
|
|
@ -559,7 +559,6 @@ nsHTMLReflowState::InitFrameType()
|
|||
|
||||
case NS_STYLE_DISPLAY_INLINE:
|
||||
case NS_STYLE_DISPLAY_INLINE_BLOCK:
|
||||
case NS_STYLE_DISPLAY_MARKER:
|
||||
case NS_STYLE_DISPLAY_INLINE_TABLE:
|
||||
case NS_STYLE_DISPLAY_INLINE_BOX:
|
||||
case NS_STYLE_DISPLAY_INLINE_GRID:
|
||||
|
@ -567,12 +566,6 @@ nsHTMLReflowState::InitFrameType()
|
|||
frameType = NS_CSS_FRAME_TYPE_INLINE;
|
||||
break;
|
||||
|
||||
case NS_STYLE_DISPLAY_RUN_IN:
|
||||
case NS_STYLE_DISPLAY_COMPACT:
|
||||
// XXX need to look ahead at the frame's sibling
|
||||
frameType = NS_CSS_FRAME_TYPE_BLOCK;
|
||||
break;
|
||||
|
||||
case NS_STYLE_DISPLAY_TABLE_CELL:
|
||||
case NS_STYLE_DISPLAY_TABLE_ROW_GROUP:
|
||||
case NS_STYLE_DISPLAY_TABLE_COLUMN:
|
||||
|
|
|
@ -86,7 +86,6 @@ CSS_KEY(-moz-cjk-earthly-branch, _moz_cjk_earthly_branch)
|
|||
CSS_KEY(-moz-cjk-heavenly-stem, _moz_cjk_heavenly_stem)
|
||||
CSS_KEY(-moz-combobox, _moz_combobox)
|
||||
CSS_KEY(-moz-comboboxtext, _moz_comboboxtext)
|
||||
CSS_KEY(-moz-compact, _moz_compact) // Disabled because not supported.
|
||||
CSS_KEY(-moz-block-height, _moz_block_height)
|
||||
CSS_KEY(-moz-deck, _moz_deck)
|
||||
CSS_KEY(-moz-desktop, _moz_desktop)
|
||||
|
@ -143,7 +142,6 @@ CSS_KEY(-moz-mac-menutextselect, _moz_mac_menutextselect)
|
|||
CSS_KEY(-moz-mac-disabledtoolbartext, _moz_mac_disabledtoolbartext)
|
||||
CSS_KEY(-moz-mac-secondaryhighlight, _moz_mac_secondaryhighlight)
|
||||
CSS_KEY(-moz-malayalam, _moz_malayalam)
|
||||
CSS_KEY(-moz-marker, _moz_marker) // Disabled because not supported correctly.
|
||||
CSS_KEY(-moz-max-content, _moz_max_content)
|
||||
CSS_KEY(-moz-menuhover, _moz_menuhover)
|
||||
CSS_KEY(-moz-menuhovertext, _moz_menuhovertext)
|
||||
|
@ -160,7 +158,6 @@ CSS_KEY(-moz-persian, _moz_persian)
|
|||
CSS_KEY(-moz-popup, _moz_popup)
|
||||
CSS_KEY(-moz-pull-down-menu, _moz_pull_down_menu)
|
||||
CSS_KEY(-moz-right, _moz_right)
|
||||
CSS_KEY(-moz-run-in, _moz_run_in) // Disabled because not supported.
|
||||
CSS_KEY(-moz-scrollbars-horizontal, _moz_scrollbars_horizontal)
|
||||
CSS_KEY(-moz-scrollbars-none, _moz_scrollbars_none)
|
||||
CSS_KEY(-moz-scrollbars-vertical, _moz_scrollbars_vertical)
|
||||
|
|
|
@ -5775,18 +5775,7 @@ CSSParserImpl::ParseSingleValueProperty(nsCSSValue& aValue,
|
|||
return ParseVariant(aValue, VARIANT_HK,
|
||||
nsCSSProps::kDirectionKTable);
|
||||
case eCSSProperty_display:
|
||||
if (ParseVariant(aValue, VARIANT_HK, nsCSSProps::kDisplayKTable)) {
|
||||
if (aValue.GetUnit() == eCSSUnit_Enumerated) {
|
||||
switch (aValue.GetIntValue()) {
|
||||
case NS_STYLE_DISPLAY_MARKER: // bug 2055
|
||||
case NS_STYLE_DISPLAY_RUN_IN: // bug 2056
|
||||
case NS_STYLE_DISPLAY_COMPACT: // bug 14983
|
||||
return PR_FALSE;
|
||||
}
|
||||
}
|
||||
return PR_TRUE;
|
||||
}
|
||||
return PR_FALSE;
|
||||
return ParseVariant(aValue, VARIANT_HK, nsCSSProps::kDisplayKTable);
|
||||
case eCSSProperty_elevation:
|
||||
return ParseVariant(aValue, VARIANT_HK | VARIANT_ANGLE,
|
||||
nsCSSProps::kElevationKTable);
|
||||
|
|
|
@ -830,9 +830,6 @@ const PRInt32 nsCSSProps::kDisplayKTable[] = {
|
|||
eCSSKeyword_block, NS_STYLE_DISPLAY_BLOCK,
|
||||
eCSSKeyword_inline_block, NS_STYLE_DISPLAY_INLINE_BLOCK,
|
||||
eCSSKeyword_list_item, NS_STYLE_DISPLAY_LIST_ITEM,
|
||||
eCSSKeyword__moz_run_in, NS_STYLE_DISPLAY_RUN_IN,
|
||||
eCSSKeyword__moz_compact, NS_STYLE_DISPLAY_COMPACT,
|
||||
eCSSKeyword__moz_marker, NS_STYLE_DISPLAY_MARKER,
|
||||
eCSSKeyword_table, NS_STYLE_DISPLAY_TABLE,
|
||||
eCSSKeyword_inline_table, NS_STYLE_DISPLAY_INLINE_TABLE,
|
||||
eCSSKeyword_table_row_group, NS_STYLE_DISPLAY_TABLE_ROW_GROUP,
|
||||
|
|
Загрузка…
Ссылка в новой задаче