summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-08-16 14:05:16 -0400
committerMoonchild <moonchild@palemoon.org>2020-08-30 09:24:25 +0000
commitc384fa6e25b07b37e9cc406da0c0aef583c61513 (patch)
treec8d8d8d7b9a6129ad2d61a4af023cca091261564
parent5e8e0d05a683cc38b211088bb42355abb5282005 (diff)
downloadUXP-c384fa6e25b07b37e9cc406da0c0aef583c61513.tar
UXP-c384fa6e25b07b37e9cc406da0c0aef583c61513.tar.gz
UXP-c384fa6e25b07b37e9cc406da0c0aef583c61513.tar.lz
UXP-c384fa6e25b07b37e9cc406da0c0aef583c61513.tar.xz
UXP-c384fa6e25b07b37e9cc406da0c0aef583c61513.zip
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.
-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 44bd44cef..f62aa3827 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,