mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Issue #1370 - Part 3: Implement content keyword for flex-basis property
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1105111
This commit is contained in:
parent
b6b20a04ec
commit
9dc59c43f1
9 changed files with 63 additions and 8 deletions
|
|
@ -2263,6 +2263,20 @@ const KTableEntry nsCSSProps::kWidthKTable[] = {
|
|||
{ eCSSKeyword_UNKNOWN, -1 }
|
||||
};
|
||||
|
||||
// This must be the same as kWidthKTable, but just with 'content' added:
|
||||
const KTableEntry nsCSSProps::kFlexBasisKTable[] = {
|
||||
{ eCSSKeyword__moz_max_content, NS_STYLE_WIDTH_MAX_CONTENT },
|
||||
{ eCSSKeyword__moz_min_content, NS_STYLE_WIDTH_MIN_CONTENT },
|
||||
{ eCSSKeyword__moz_fit_content, NS_STYLE_WIDTH_FIT_CONTENT },
|
||||
{ eCSSKeyword__moz_available, NS_STYLE_WIDTH_AVAILABLE },
|
||||
{ eCSSKeyword_content, NS_STYLE_FLEX_BASIS_CONTENT },
|
||||
{ eCSSKeyword_UNKNOWN, -1 }
|
||||
};
|
||||
static_assert(ArrayLength(nsCSSProps::kFlexBasisKTable) ==
|
||||
ArrayLength(nsCSSProps::kWidthKTable) + 1,
|
||||
"kFlexBasisKTable should have the same entries as "
|
||||
"kWidthKTable, plus one more for 'content'");
|
||||
|
||||
const KTableEntry nsCSSProps::kWindowDraggingKTable[] = {
|
||||
{ eCSSKeyword_default, StyleWindowDragging::Default },
|
||||
{ eCSSKeyword_drag, StyleWindowDragging::Drag },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue