summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-08-16 14:05:16 -0400
committerGaming4JC <g4jc@hyperbola.info>2020-08-16 14:08:38 -0400
commit22c6728132677aee60062790abc208b2c14928f2 (patch)
treeec0fbd10dad98a0172e176bc5c064d94057d44df /layout
parentd3383327a749ddb5c0626146c6f83bdfa3ea9936 (diff)
downloaduxp-22c6728132677aee60062790abc208b2c14928f2.tar.gz
Issue #1620 - Intrinsic Aspect Ratio: Debug Follow up.
Newly introduced aspect-ratio property did not have CSS_PROP_LIST_EXCLUDE_INTERNAL defines, resulting in the following assertion: \!nsCSSProps::PropHasFlags(p, (1<<28)) (properties defined outside of #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL sections must not have the CSS_PROPERTY_INTERNAL flag), at ...layout/style/nsCSSProps.cpp:289 This patch resolves the assertion by adding #ifndef around the aspect-ratio property.
Diffstat (limited to 'layout')
-rw-r--r--layout/style/nsCSSPropList.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/layout/style/nsCSSPropList.h b/layout/style/nsCSSPropList.h
index 44bd44cef4..f62aa38272 100644
--- a/layout/style/nsCSSPropList.h
+++ b/layout/style/nsCSSPropList.h
@@ -470,6 +470,7 @@ CSS_PROP_DISPLAY(
kAppearanceKTable,
CSS_PROP_NO_OFFSET,
eStyleAnimType_Discrete)
+#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_POSITION(
aspect-ratio,
aspect_ratio,
@@ -481,6 +482,7 @@ CSS_PROP_POSITION(
nullptr,
offsetof(nsStylePosition, mAspectRatio),
eStyleAnimType_None)
+#endif // CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_DISPLAY(
backface-visibility,
backface_visibility,