Propagate code that used to be in CSSParserImpl::ParseSingleValueProperty and mark -moz-script-size-multiplier and -moz-script-min-size as inaccessible to parser. (Bug 636029, patch 9) r=bzbarsky

This commit is contained in:
L. David Baron 2011-05-09 15:02:35 -04:00
Родитель 54d99e822a
Коммит f747eefa17
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -2512,6 +2512,8 @@ CSS_PROP_FONT(
script_level,
ScriptLevel,
// REVIEW: no range restriction?
// NOTE: CSSParserImpl::ParseSingleValueProperty only accepts this
// property when mUnsafeRulesEnabled is set.
CSS_PROPERTY_PARSE_VALUE,
// script-level can take Integer or Number values, but only Integer
// ("relative") values can be specified in a style sheet.
@ -2524,7 +2526,7 @@ CSS_PROP_FONT(
script_size_multiplier,
ScriptSizeMultiplier,
// REVIEW: no range restriction?
CSS_PROPERTY_PARSE_VALUE,
CSS_PROPERTY_PARSE_INACCESSIBLE,
0,
nsnull,
CSS_PROP_NO_OFFSET,
@ -2534,7 +2536,7 @@ CSS_PROP_FONT(
script_min_size,
ScriptMinSize,
// REVIEW: no range restriction?
CSS_PROPERTY_PARSE_VALUE,
CSS_PROPERTY_PARSE_INACCESSIBLE,
0,
nsnull,
CSS_PROP_NO_OFFSET,