Bug 1454830 part 1 - Adjust GETCS_NEEDS_LAYOUT_FLUSH flag in nsCSSPropList.h. r=emilio

margin-inline-{end,start} should have this flag because their
corresponding physical properties have this flag, as well as their
equivalents in the block direction.

{max,min}-{block,inline}-size should not have this flag, because their
corresponding physical properties don't have it, so they shouldn't need
it either.

rotate and scale have nothing to do with the frame at all, so they don't
need layout flush. Note that transform and translate need layout flush
because they need to resolve percentage to length.

MozReview-Commit-ID: BcnnOGJIOwO

--HG--
extra : rebase_source : 6a15fbdd6596d86cb0ab81e77a8000976a967ae2
This commit is contained in:
Xidorn Quan 2018-04-20 19:10:55 +10:00
Родитель fbf116232d
Коммит 6c831e377a
1 изменённых файлов: 8 добавлений и 10 удалений

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

@ -1880,7 +1880,7 @@ CSS_PROP_(
margin-inline-end,
margin_inline_end,
MarginInlineEnd,
0,
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
"",
VARIANT_AHLP | VARIANT_CALC,
nullptr,
@ -1889,7 +1889,7 @@ CSS_PROP_(
margin-inline-start,
margin_inline_start,
MarginInlineStart,
0,
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
"",
VARIANT_AHLP | VARIANT_CALC,
nullptr,
@ -2088,7 +2088,7 @@ CSS_PROP_(
max-block-size,
max_block_size,
MaxBlockSize,
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
0,
"",
VARIANT_HLPO | VARIANT_CALC,
nullptr,
@ -2106,7 +2106,7 @@ CSS_PROP_(
max-inline-size,
max_inline_size,
MaxInlineSize,
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
0,
"",
VARIANT_HKLPO | VARIANT_CALC,
kWidthKTable,
@ -2124,7 +2124,7 @@ CSS_PROP_(
min-block-size,
min_block_size,
MinBlockSize,
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
0,
"",
VARIANT_AHLP | VARIANT_CALC,
nullptr,
@ -2154,7 +2154,7 @@ CSS_PROP_(
min-inline-size,
min_inline_size,
MinInlineSize,
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
0,
"",
VARIANT_AHKLP | VARIANT_CALC,
kWidthKTable,
@ -2634,8 +2634,7 @@ CSS_PROP_(
rotate,
rotate,
Rotate,
CSS_PROPERTY_PARSE_FUNCTION |
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
CSS_PROPERTY_PARSE_FUNCTION,
"layout.css.individual-transform.enabled",
0,
nullptr,
@ -2662,8 +2661,7 @@ CSS_PROP_(
scale,
scale,
Scale,
CSS_PROPERTY_PARSE_FUNCTION |
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
CSS_PROPERTY_PARSE_FUNCTION,
"layout.css.individual-transform.enabled",
0,
nullptr,