Fix for 71471. r=blake, sr=hewitt

This commit is contained in:
hyatt%netscape.com 2001-08-02 00:09:27 +00:00
Родитель 3b5ac1141b
Коммит e1abe2c919
97 изменённых файлов: 759 добавлений и 416 удалений

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

@ -1124,8 +1124,12 @@ void nsStyleContext::DumpRegressionData(nsIPresContext* aPresContext, FILE* out,
#ifdef INCLUDE_XUL
IndentBy(out,aIndent);
const nsStyleXUL* xul = (const nsStyleXUL*)GetStyleData(eStyleStruct_XUL);
fprintf(out, "<xul data=\"%d",
(int)xul->mBoxOrient);
fprintf(out, "<xul data=\"%d %d %d %d %d",
(int)xul->mBoxAlign,
(int)xul->mBoxDirection,
(int)xul->mBoxFlex,
(int)xul->mBoxOrient,
(int)xul->mBoxPack);
fprintf(out, "\" />\n");
#endif
//#insert new style structs here#

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

@ -985,7 +985,9 @@ nsCSSXUL::nsCSSXUL(void)
}
nsCSSXUL::nsCSSXUL(const nsCSSXUL& aCopy)
: mBoxOrient(aCopy.mBoxOrient)
: mBoxAlign(aCopy.mBoxAlign), mBoxDirection(aCopy.mBoxDirection),
mBoxFlex(aCopy.mBoxFlex), mBoxOrient(aCopy.mBoxOrient),
mBoxPack(aCopy.mBoxPack)
{
MOZ_COUNT_CTOR(nsCSSXUL);
}
@ -1006,7 +1008,11 @@ void nsCSSXUL::List(FILE* out, PRInt32 aIndent) const
nsAutoString buffer;
mBoxAlign.AppendToString(buffer, eCSSProperty_box_align);
mBoxDirection.AppendToString(buffer, eCSSProperty_box_direction);
mBoxFlex.AppendToString(buffer, eCSSProperty_box_flex);
mBoxOrient.AppendToString(buffer, eCSSProperty_box_orient);
mBoxPack.AppendToString(buffer, eCSSProperty_box_pack);
fputs(buffer, out);
}
@ -1746,10 +1752,18 @@ CSSDeclarationImpl::AppendValue(nsCSSProperty aProperty, const nsCSSValue& aValu
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
CSS_ENSURE(XUL) {
switch (aProperty) {
case eCSSProperty_box_align: mXUL->mBoxAlign = aValue; break;
case eCSSProperty_box_direction: mXUL->mBoxDirection = aValue; break;
case eCSSProperty_box_flex: mXUL->mBoxFlex = aValue; break;
case eCSSProperty_box_orient: mXUL->mBoxOrient = aValue; break;
case eCSSProperty_box_pack: mXUL->mBoxPack = aValue; break;
CSS_BOGUS_DEFAULT; // make compiler happy
}
}
@ -2493,11 +2507,19 @@ CSSDeclarationImpl::SetValueImportant(nsCSSProperty aProperty)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
if (nsnull != mXUL) {
CSS_ENSURE_IMPORTANT(XUL) {
switch (aProperty) {
CSS_CASE_IMPORTANT(eCSSProperty_box_align, mXUL->mBoxAlign);
CSS_CASE_IMPORTANT(eCSSProperty_box_direction, mXUL->mBoxDirection);
CSS_CASE_IMPORTANT(eCSSProperty_box_flex, mXUL->mBoxFlex);
CSS_CASE_IMPORTANT(eCSSProperty_box_orient, mXUL->mBoxOrient);
CSS_CASE_IMPORTANT(eCSSProperty_box_pack, mXUL->mBoxPack);
CSS_BOGUS_DEFAULT; // make compiler happy
}
}
@ -3181,10 +3203,18 @@ CSSDeclarationImpl::RemoveProperty(nsCSSProperty aProperty)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
CSS_CHECK(XUL) {
switch(aProperty) {
case eCSSProperty_box_align: mXUL->mBoxAlign.Reset(); break;
case eCSSProperty_box_direction: mXUL->mBoxDirection.Reset(); break;
case eCSSProperty_box_flex: mXUL->mBoxFlex.Reset(); break;
case eCSSProperty_box_orient: mXUL->mBoxOrient.Reset(); break;
case eCSSProperty_box_pack: mXUL->mBoxPack.Reset(); break;
CSS_BOGUS_DEFAULT; // Make compiler happy
}
}
@ -3920,10 +3950,18 @@ CSSDeclarationImpl::GetValue(nsCSSProperty aProperty, nsCSSValue& aValue)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
if (nsnull != mXUL) {
switch (aProperty) {
case eCSSProperty_box_align: aValue = mXUL->mBoxAlign; break;
case eCSSProperty_box_direction: aValue = mXUL->mBoxDirection; break;
case eCSSProperty_box_flex: aValue = mXUL->mBoxFlex; break;
case eCSSProperty_box_orient: aValue = mXUL->mBoxOrient; break;
case eCSSProperty_box_pack: aValue = mXUL->mBoxPack; break;
CSS_BOGUS_DEFAULT; // make compiler happy
}
}

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

@ -3458,9 +3458,20 @@ PRBool CSSParserImpl::ParseSingleValueProperty(PRInt32& aErrorCode,
case eCSSProperty_right:
return ParseVariant(aErrorCode, aValue, VARIANT_AHLP, nsnull);
#ifdef INCLUDE_XUL
case eCSSProperty_box_align:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,
nsCSSProps::kBoxAlignKTable);
case eCSSProperty_box_direction:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,
nsCSSProps::kBoxDirectionKTable);
case eCSSProperty_box_flex:
return ParseVariant(aErrorCode, aValue, VARIANT_HN, nsnull);
case eCSSProperty_box_orient:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,
nsCSSProps::kBoxOrientKTable);
case eCSSProperty_box_pack:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,
nsCSSProps::kBoxPackKTable);
#endif
case eCSSProperty_box_sizing:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,

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

@ -985,7 +985,9 @@ nsCSSXUL::nsCSSXUL(void)
}
nsCSSXUL::nsCSSXUL(const nsCSSXUL& aCopy)
: mBoxOrient(aCopy.mBoxOrient)
: mBoxAlign(aCopy.mBoxAlign), mBoxDirection(aCopy.mBoxDirection),
mBoxFlex(aCopy.mBoxFlex), mBoxOrient(aCopy.mBoxOrient),
mBoxPack(aCopy.mBoxPack)
{
MOZ_COUNT_CTOR(nsCSSXUL);
}
@ -1006,7 +1008,11 @@ void nsCSSXUL::List(FILE* out, PRInt32 aIndent) const
nsAutoString buffer;
mBoxAlign.AppendToString(buffer, eCSSProperty_box_align);
mBoxDirection.AppendToString(buffer, eCSSProperty_box_direction);
mBoxFlex.AppendToString(buffer, eCSSProperty_box_flex);
mBoxOrient.AppendToString(buffer, eCSSProperty_box_orient);
mBoxPack.AppendToString(buffer, eCSSProperty_box_pack);
fputs(buffer, out);
}
@ -1746,10 +1752,18 @@ CSSDeclarationImpl::AppendValue(nsCSSProperty aProperty, const nsCSSValue& aValu
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
CSS_ENSURE(XUL) {
switch (aProperty) {
case eCSSProperty_box_align: mXUL->mBoxAlign = aValue; break;
case eCSSProperty_box_direction: mXUL->mBoxDirection = aValue; break;
case eCSSProperty_box_flex: mXUL->mBoxFlex = aValue; break;
case eCSSProperty_box_orient: mXUL->mBoxOrient = aValue; break;
case eCSSProperty_box_pack: mXUL->mBoxPack = aValue; break;
CSS_BOGUS_DEFAULT; // make compiler happy
}
}
@ -2493,11 +2507,19 @@ CSSDeclarationImpl::SetValueImportant(nsCSSProperty aProperty)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
if (nsnull != mXUL) {
CSS_ENSURE_IMPORTANT(XUL) {
switch (aProperty) {
CSS_CASE_IMPORTANT(eCSSProperty_box_align, mXUL->mBoxAlign);
CSS_CASE_IMPORTANT(eCSSProperty_box_direction, mXUL->mBoxDirection);
CSS_CASE_IMPORTANT(eCSSProperty_box_flex, mXUL->mBoxFlex);
CSS_CASE_IMPORTANT(eCSSProperty_box_orient, mXUL->mBoxOrient);
CSS_CASE_IMPORTANT(eCSSProperty_box_pack, mXUL->mBoxPack);
CSS_BOGUS_DEFAULT; // make compiler happy
}
}
@ -3181,10 +3203,18 @@ CSSDeclarationImpl::RemoveProperty(nsCSSProperty aProperty)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
CSS_CHECK(XUL) {
switch(aProperty) {
case eCSSProperty_box_align: mXUL->mBoxAlign.Reset(); break;
case eCSSProperty_box_direction: mXUL->mBoxDirection.Reset(); break;
case eCSSProperty_box_flex: mXUL->mBoxFlex.Reset(); break;
case eCSSProperty_box_orient: mXUL->mBoxOrient.Reset(); break;
case eCSSProperty_box_pack: mXUL->mBoxPack.Reset(); break;
CSS_BOGUS_DEFAULT; // Make compiler happy
}
}
@ -3920,10 +3950,18 @@ CSSDeclarationImpl::GetValue(nsCSSProperty aProperty, nsCSSValue& aValue)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
if (nsnull != mXUL) {
switch (aProperty) {
case eCSSProperty_box_align: aValue = mXUL->mBoxAlign; break;
case eCSSProperty_box_direction: aValue = mXUL->mBoxDirection; break;
case eCSSProperty_box_flex: aValue = mXUL->mBoxFlex; break;
case eCSSProperty_box_orient: aValue = mXUL->mBoxOrient; break;
case eCSSProperty_box_pack: aValue = mXUL->mBoxPack; break;
CSS_BOGUS_DEFAULT; // make compiler happy
}
}

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

@ -1673,10 +1673,26 @@ MapXULForDeclaration(nsICSSDeclaration* aDecl, nsCSSXUL& aXUL)
if (!ourXUL)
return NS_OK; // We don't have any rules for XUL.
// box-align: enum, inherit
if (aXUL.mBoxAlign.GetUnit() == eCSSUnit_Null && ourXUL->mBoxAlign.GetUnit() != eCSSUnit_Null)
aXUL.mBoxAlign = ourXUL->mBoxAlign;
// box-direction: enum, inherit
if (aXUL.mBoxDirection.GetUnit() == eCSSUnit_Null && ourXUL->mBoxDirection.GetUnit() != eCSSUnit_Null)
aXUL.mBoxDirection = ourXUL->mBoxDirection;
// box-flex: enum, inherit
if (aXUL.mBoxFlex.GetUnit() == eCSSUnit_Null && ourXUL->mBoxFlex.GetUnit() != eCSSUnit_Null)
aXUL.mBoxFlex = ourXUL->mBoxFlex;
// box-orient: enum, inherit
if (aXUL.mBoxOrient.GetUnit() == eCSSUnit_Null && ourXUL->mBoxOrient.GetUnit() != eCSSUnit_Null)
aXUL.mBoxOrient = ourXUL->mBoxOrient;
// box-pack: enum, inherit
if (aXUL.mBoxPack.GetUnit() == eCSSUnit_Null && ourXUL->mBoxPack.GetUnit() != eCSSUnit_Null)
aXUL.mBoxPack = ourXUL->mBoxPack;
return NS_OK;
}
#endif

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

@ -404,7 +404,11 @@ struct nsCSSXUL : public nsCSSStruct {
const nsID& GetID(void);
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
nsCSSValue mBoxAlign;
nsCSSValue mBoxDirection;
nsCSSValue mBoxFlex;
nsCSSValue mBoxOrient;
nsCSSValue mBoxPack;
};
#endif

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

@ -3548,6 +3548,33 @@ nsRuleNode::ComputeXULData(nsStyleStruct* aStartStruct, const nsCSSStruct& aData
PRBool inherited = aInherited;
// box-align: enum, inherit
if (eCSSUnit_Enumerated == xulData.mBoxAlign.GetUnit()) {
xul->mBoxAlign = xulData.mBoxAlign.GetIntValue();
}
else if (eCSSUnit_Inherit == xulData.mBoxAlign.GetUnit()) {
inherited = PR_TRUE;
xul->mBoxAlign = parentXUL->mBoxAlign;
}
// box-direction: enum, inherit
if (eCSSUnit_Enumerated == xulData.mBoxDirection.GetUnit()) {
xul->mBoxDirection = xulData.mBoxDirection.GetIntValue();
}
else if (eCSSUnit_Inherit == xulData.mBoxDirection.GetUnit()) {
inherited = PR_TRUE;
xul->mBoxDirection = parentXUL->mBoxDirection;
}
// box-flex: factor, inherit
if (eCSSUnit_Number == xulData.mBoxFlex.GetUnit()) {
xul->mBoxFlex = xulData.mBoxFlex.GetFloatValue();
}
else if (eCSSUnit_Inherit == xulData.mBoxOrient.GetUnit()) {
inherited = PR_TRUE;
xul->mBoxFlex = parentXUL->mBoxFlex;
}
// box-orient: enum, inherit
if (eCSSUnit_Enumerated == xulData.mBoxOrient.GetUnit()) {
xul->mBoxOrient = xulData.mBoxOrient.GetIntValue();
@ -3557,6 +3584,15 @@ nsRuleNode::ComputeXULData(nsStyleStruct* aStartStruct, const nsCSSStruct& aData
xul->mBoxOrient = parentXUL->mBoxOrient;
}
// box-pack: enum, inherit
if (eCSSUnit_Enumerated == xulData.mBoxPack.GetUnit()) {
xul->mBoxPack = xulData.mBoxPack.GetIntValue();
}
else if (eCSSUnit_Inherit == xulData.mBoxPack.GetUnit()) {
inherited = PR_TRUE;
xul->mBoxPack = parentXUL->mBoxPack;
}
if (inherited)
// We inherited, and therefore can't be cached in the rule node. We have to be put right on the
// style context.
@ -4431,16 +4467,40 @@ nsRuleNode::CheckUIResetProperties(const nsCSSUserInterface& aData)
inline nsRuleNode::RuleDetail
nsRuleNode::CheckXULProperties(const nsCSSXUL& aXULData)
{
const PRUint32 numXULProps = 1;
const PRUint32 numXULProps = 5;
PRUint32 totalCount=0;
PRUint32 inheritCount=0;
if (eCSSUnit_Null != aXULData.mBoxAlign.GetUnit()) {
totalCount++;
if (eCSSUnit_Inherit == aXULData.mBoxAlign.GetUnit())
inheritCount++;
}
if (eCSSUnit_Null != aXULData.mBoxDirection.GetUnit()) {
totalCount++;
if (eCSSUnit_Inherit == aXULData.mBoxDirection.GetUnit())
inheritCount++;
}
if (eCSSUnit_Null != aXULData.mBoxFlex.GetUnit()) {
totalCount++;
if (eCSSUnit_Inherit == aXULData.mBoxFlex.GetUnit())
inheritCount++;
}
if (eCSSUnit_Null != aXULData.mBoxOrient.GetUnit()) {
totalCount++;
if (eCSSUnit_Inherit == aXULData.mBoxOrient.GetUnit())
inheritCount++;
}
if (eCSSUnit_Null != aXULData.mBoxPack.GetUnit()) {
totalCount++;
if (eCSSUnit_Inherit == aXULData.mBoxPack.GetUnit())
inheritCount++;
}
if (inheritCount == numXULProps)
return eRuleFullInherited;
else if (totalCount == numXULProps)

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

@ -74,18 +74,18 @@ CSS_KEY(-moz-scrollbars-none, _moz_scrollbars_none)
CSS_KEY(-moz-scrollbars-horizontal, _moz_scrollbars_horizontal)
CSS_KEY(-moz-scrollbars-vertical, _moz_scrollbars_vertical)
CSS_KEY(-moz-use-text-color, _moz_use_text_color)
CSS_KEY(-moz-xul-box, _moz_xul_box)
CSS_KEY(-moz-xul-inline-box, _moz_xul_inline_box)
CSS_KEY(-moz-xul-bulletinboard, _moz_xul_bulletinboard)
CSS_KEY(-moz-xul-deck, _moz_xul_deck)
CSS_KEY(-moz-xul-grid, _moz_xul_grid)
CSS_KEY(-moz-xul-inline-grid, _moz_xul_inline_grid)
CSS_KEY(-moz-xul-grid-group, _moz_xul_grid_group)
CSS_KEY(-moz-xul-grid-line, _moz_xul_grid_line)
CSS_KEY(-moz-xul-groupbox, _moz_xul_groupbox)
CSS_KEY(-moz-xul-popup, _moz_xul_popup)
CSS_KEY(-moz-xul-stack, _moz_xul_stack)
CSS_KEY(-moz-xul-inline-stack, _moz_xul_inline_stack)
CSS_KEY(-moz-box, _moz_box)
CSS_KEY(-moz-inline-box, _moz_inline_box)
CSS_KEY(-moz-bulletinboard, _moz_bulletinboard)
CSS_KEY(-moz-deck, _moz_deck)
CSS_KEY(-moz-grid, _moz_grid)
CSS_KEY(-moz-inline-grid, _moz_inline_grid)
CSS_KEY(-moz-grid-group, _moz_grid_group)
CSS_KEY(-moz-grid-line, _moz_grid_line)
CSS_KEY(-moz-groupbox, _moz_groupbox)
CSS_KEY(-moz-popup, _moz_popup)
CSS_KEY(-moz-stack, _moz_stack)
CSS_KEY(-moz-inline-stack, _moz_inline_stack)
CSS_KEY(above, above)
CSS_KEY(absolute, absolute)
CSS_KEY(activeborder, activeborder)

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

@ -105,12 +105,12 @@ CSS_PROP(border-width, border_width, REFLOW)
CSS_PROP(-x-border-x-spacing, border_x_spacing, REFLOW) // XXX bug 3935
CSS_PROP(-x-border-y-spacing, border_y_spacing, REFLOW) // XXX bug 3935
CSS_PROP(bottom, bottom, REFLOW)
CSS_PROP(-moz-xul-box-align, box_align, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-direction, box_direction, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-flex, box_flex, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-flex-group, box_flex_group, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-orient, box_orient, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-pack, box_pack, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-align, box_align, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-direction, box_direction, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-flex, box_flex, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-flex-group, box_flex_group, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-orient, box_orient, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-pack, box_pack, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-sizing, box_sizing, REFLOW) // XXX bug 3935
CSS_PROP(caption-side, caption_side, REFLOW)
CSS_PROP(clear, clear, REFLOW)

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

@ -77,7 +77,10 @@ public:
static const PRInt32 kBorderStyleKTable[];
static const PRInt32 kBorderWidthKTable[];
#ifdef INCLUDE_XUL
static const PRInt32 kBoxAlignKTable[];
static const PRInt32 kBoxDirectionKTable[];
static const PRInt32 kBoxOrientKTable[];
static const PRInt32 kBoxPackKTable[];
#endif
static const PRInt32 kBoxSizingKTable[];
static const PRInt32 kCaptionSideKTable[];

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

@ -967,11 +967,11 @@ struct nsStyleXUL : public nsStyleStruct {
PRInt32 CalcDifference(const nsStyleXUL& aOther) const;
// There will be seven more properties coming,
// which is why we warrant our own struct.
// box-align, box-direction, box-flex, box-flex-group, box-pack,
// stack-stretch, stack-policy
PRUint8 mBoxAlign; // [reset] see nsStyleConsts.h
PRUint8 mBoxDirection; // [reset] see nsStyleConsts.h
float mBoxFlex; // [reset] see nsStyleConsts.h
PRUint8 mBoxOrient; // [reset] see nsStyleConsts.h
PRUint8 mBoxPack; // [reset] see nsStyleConsts.h
};
#endif

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

@ -129,6 +129,7 @@ XUL_ATOM(crop, "crop")
XUL_ATOM(mode, "mode")
XUL_ATOM(equalsize, "equalsize")
XUL_ATOM(pack, "pack")
XUL_ATOM(box, "box")
XUL_ATOM(hbox, "hbox")
XUL_ATOM(vbox, "vbox")

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

@ -308,18 +308,18 @@ const PRInt32 nsCSSProps::kDisplayKTable[] = {
eCSSKeyword_table_cell, NS_STYLE_DISPLAY_TABLE_CELL,
eCSSKeyword_table_caption, NS_STYLE_DISPLAY_TABLE_CAPTION,
eCSSKeyword_menu, NS_STYLE_DISPLAY_MENU,
eCSSKeyword__moz_xul_box, NS_STYLE_DISPLAY_BOX,
eCSSKeyword__moz_xul_inline_box, NS_STYLE_DISPLAY_INLINE_BOX,
eCSSKeyword__moz_xul_grid, NS_STYLE_DISPLAY_GRID,
eCSSKeyword__moz_xul_inline_grid, NS_STYLE_DISPLAY_INLINE_GRID,
eCSSKeyword__moz_xul_grid_group, NS_STYLE_DISPLAY_GRID_GROUP,
eCSSKeyword__moz_xul_grid_line, NS_STYLE_DISPLAY_GRID_LINE,
eCSSKeyword__moz_xul_stack, NS_STYLE_DISPLAY_STACK,
eCSSKeyword__moz_xul_inline_stack, NS_STYLE_DISPLAY_INLINE_STACK,
eCSSKeyword__moz_xul_deck, NS_STYLE_DISPLAY_DECK,
eCSSKeyword__moz_xul_bulletinboard, NS_STYLE_DISPLAY_BULLETINBOARD,
eCSSKeyword__moz_xul_popup, NS_STYLE_DISPLAY_POPUP,
eCSSKeyword__moz_xul_groupbox, NS_STYLE_DISPLAY_GROUPBOX,
eCSSKeyword__moz_box, NS_STYLE_DISPLAY_BOX,
eCSSKeyword__moz_inline_box, NS_STYLE_DISPLAY_INLINE_BOX,
eCSSKeyword__moz_grid, NS_STYLE_DISPLAY_GRID,
eCSSKeyword__moz_inline_grid, NS_STYLE_DISPLAY_INLINE_GRID,
eCSSKeyword__moz_grid_group, NS_STYLE_DISPLAY_GRID_GROUP,
eCSSKeyword__moz_grid_line, NS_STYLE_DISPLAY_GRID_LINE,
eCSSKeyword__moz_stack, NS_STYLE_DISPLAY_STACK,
eCSSKeyword__moz_inline_stack, NS_STYLE_DISPLAY_INLINE_STACK,
eCSSKeyword__moz_deck, NS_STYLE_DISPLAY_DECK,
eCSSKeyword__moz_bulletinboard, NS_STYLE_DISPLAY_BULLETINBOARD,
eCSSKeyword__moz_popup, NS_STYLE_DISPLAY_POPUP,
eCSSKeyword__moz_groupbox, NS_STYLE_DISPLAY_GROUPBOX,
-1,-1
};
@ -689,6 +689,21 @@ const PRInt32 nsCSSProps::kWhitespaceKTable[] = {
#ifdef INCLUDE_XUL
// Specific keyword tables for XUL.properties
const PRInt32 nsCSSProps::kBoxAlignKTable[] = {
eCSSKeyword_stretch, NS_STYLE_BOX_ALIGN_STRETCH,
eCSSKeyword_start, NS_STYLE_BOX_ALIGN_START,
eCSSKeyword_center, NS_STYLE_BOX_ALIGN_CENTER,
eCSSKeyword_baseline, NS_STYLE_BOX_ALIGN_BASELINE,
eCSSKeyword_end, NS_STYLE_BOX_ALIGN_END,
-1,-1
};
const PRInt32 nsCSSProps::kBoxDirectionKTable[] = {
eCSSKeyword_normal, NS_STYLE_BOX_DIRECTION_NORMAL,
eCSSKeyword_reverse, NS_STYLE_BOX_DIRECTION_REVERSE,
-1,-1
};
const PRInt32 nsCSSProps::kBoxOrientKTable[] = {
eCSSKeyword_horizontal, NS_STYLE_BOX_ORIENT_HORIZONTAL,
eCSSKeyword_vertical, NS_STYLE_BOX_ORIENT_VERTICAL,
@ -696,6 +711,14 @@ const PRInt32 nsCSSProps::kBoxOrientKTable[] = {
eCSSKeyword_block_axis, NS_STYLE_BOX_ORIENT_VERTICAL,
-1,-1
};
const PRInt32 nsCSSProps::kBoxPackKTable[] = {
eCSSKeyword_start, NS_STYLE_BOX_PACK_START,
eCSSKeyword_center, NS_STYLE_BOX_PACK_CENTER,
eCSSKeyword_end, NS_STYLE_BOX_PACK_END,
eCSSKeyword_justify, NS_STYLE_BOX_PACK_JUSTIFY,
-1,-1
};
#endif
PRInt32
@ -785,8 +808,14 @@ static const PRInt32 kBackgroundYPositionKTable[] = {
return SearchKeywordTable(aValue, kBorderCollapseKTable);
#ifdef INCLUDE_XUL
case eCSSProperty_box_align:
return SearchKeywordTable(aValue, kBoxAlignKTable);
case eCSSProperty_box_direction:
return SearchKeywordTable(aValue, kBoxDirectionKTable);
case eCSSProperty_box_orient:
return SearchKeywordTable(aValue, kBoxOrientKTable);
case eCSSProperty_box_pack:
return SearchKeywordTable(aValue, kBoxPackKTable);
#endif
case eCSSProperty_box_sizing:

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

@ -625,7 +625,11 @@ PRInt32 nsStyleList::CalcDifference(const nsStyleList& aOther) const
//
nsStyleXUL::nsStyleXUL()
{
mBoxAlign = NS_STYLE_BOX_ALIGN_STRETCH;
mBoxDirection = NS_STYLE_BOX_DIRECTION_NORMAL;
mBoxFlex = 0.0f;
mBoxOrient = NS_STYLE_BOX_ORIENT_HORIZONTAL;
mBoxPack = NS_STYLE_BOX_PACK_START;
}
nsStyleXUL::~nsStyleXUL()
@ -640,7 +644,11 @@ nsStyleXUL::nsStyleXUL(const nsStyleXUL& aSource)
PRInt32
nsStyleXUL::CalcDifference(const nsStyleXUL& aOther) const
{
if (mBoxOrient == aOther.mBoxOrient)
if (mBoxAlign == aOther.mBoxAlign &&
mBoxDirection == aOther.mBoxDirection &&
mBoxFlex == aOther.mBoxFlex &&
mBoxOrient == aOther.mBoxOrient &&
mBoxPack == aOther.mBoxPack)
return NS_STYLE_HINT_NONE;
return NS_STYLE_HINT_REFLOW;
}

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

@ -24,12 +24,12 @@
multipanelset {
-moz-binding: url("chrome://inspector/content/extensions/multipanel.xml#multipanelset");
display: -moz-xul-box;
-moz-xul-box-orient: vertical;
display: -moz-box;
-moz-box-orient: vertical;
}
multipanel {
-moz-binding: url("chrome://inspector/content/extensions/multipanel.xml#multipanel");
display: -moz-xul-box;
-moz-xul-box-orient: vertical;
display: -moz-box;
-moz-box-orient: vertical;
}

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

@ -32,12 +32,12 @@
domi|panelset {
-moz-binding: url("chrome://inspector/content/inspector.xml#panelset");
display: -moz-xul-box;
display: -moz-box;
}
domi|panel {
-moz-binding: url("chrome://inspector/content/inspector.xml#panel");
display: -moz-xul-box;
display: -moz-box;
}
#ppsViewerPopupset {

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

@ -100,6 +100,23 @@
#define NS_STYLE_USER_MODIFY_READ_WRITE 1
#define NS_STYLE_USER_MODIFY_WRITE_ONLY 2
// box-align
#define NS_STYLE_BOX_ALIGN_STRETCH 0
#define NS_STYLE_BOX_ALIGN_START 1
#define NS_STYLE_BOX_ALIGN_CENTER 2
#define NS_STYLE_BOX_ALIGN_BASELINE 3
#define NS_STYLE_BOX_ALIGN_END 4
// box-pack
#define NS_STYLE_BOX_PACK_START 0
#define NS_STYLE_BOX_PACK_CENTER 1
#define NS_STYLE_BOX_PACK_END 2
#define NS_STYLE_BOX_PACK_JUSTIFY 3
// box-direction
#define NS_STYLE_BOX_DIRECTION_NORMAL 0
#define NS_STYLE_BOX_DIRECTION_REVERSE 1
// box-orient
#define NS_STYLE_BOX_ORIENT_HORIZONTAL 0
#define NS_STYLE_BOX_ORIENT_VERTICAL 1

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

@ -100,6 +100,23 @@
#define NS_STYLE_USER_MODIFY_READ_WRITE 1
#define NS_STYLE_USER_MODIFY_WRITE_ONLY 2
// box-align
#define NS_STYLE_BOX_ALIGN_STRETCH 0
#define NS_STYLE_BOX_ALIGN_START 1
#define NS_STYLE_BOX_ALIGN_CENTER 2
#define NS_STYLE_BOX_ALIGN_BASELINE 3
#define NS_STYLE_BOX_ALIGN_END 4
// box-pack
#define NS_STYLE_BOX_PACK_START 0
#define NS_STYLE_BOX_PACK_CENTER 1
#define NS_STYLE_BOX_PACK_END 2
#define NS_STYLE_BOX_PACK_JUSTIFY 3
// box-direction
#define NS_STYLE_BOX_DIRECTION_NORMAL 0
#define NS_STYLE_BOX_DIRECTION_REVERSE 1
// box-orient
#define NS_STYLE_BOX_ORIENT_HORIZONTAL 0
#define NS_STYLE_BOX_ORIENT_VERTICAL 1

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

@ -433,7 +433,7 @@ noembed, noscript, param, *|*:-moz-comment, *|*:-moz-pi {
background: inherit;
padding: inherit;
display: inherit;
-moz-xul-box-orient: inherit;
-moz-box-orient: inherit;
}
*|*:wrapped-frame {

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

@ -433,7 +433,7 @@ noembed, noscript, param, *|*:-moz-comment, *|*:-moz-pi {
background: inherit;
padding: inherit;
display: inherit;
-moz-xul-box-orient: inherit;
-moz-box-orient: inherit;
}
*|*:wrapped-frame {

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

@ -985,7 +985,9 @@ nsCSSXUL::nsCSSXUL(void)
}
nsCSSXUL::nsCSSXUL(const nsCSSXUL& aCopy)
: mBoxOrient(aCopy.mBoxOrient)
: mBoxAlign(aCopy.mBoxAlign), mBoxDirection(aCopy.mBoxDirection),
mBoxFlex(aCopy.mBoxFlex), mBoxOrient(aCopy.mBoxOrient),
mBoxPack(aCopy.mBoxPack)
{
MOZ_COUNT_CTOR(nsCSSXUL);
}
@ -1006,7 +1008,11 @@ void nsCSSXUL::List(FILE* out, PRInt32 aIndent) const
nsAutoString buffer;
mBoxAlign.AppendToString(buffer, eCSSProperty_box_align);
mBoxDirection.AppendToString(buffer, eCSSProperty_box_direction);
mBoxFlex.AppendToString(buffer, eCSSProperty_box_flex);
mBoxOrient.AppendToString(buffer, eCSSProperty_box_orient);
mBoxPack.AppendToString(buffer, eCSSProperty_box_pack);
fputs(buffer, out);
}
@ -1746,10 +1752,18 @@ CSSDeclarationImpl::AppendValue(nsCSSProperty aProperty, const nsCSSValue& aValu
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
CSS_ENSURE(XUL) {
switch (aProperty) {
case eCSSProperty_box_align: mXUL->mBoxAlign = aValue; break;
case eCSSProperty_box_direction: mXUL->mBoxDirection = aValue; break;
case eCSSProperty_box_flex: mXUL->mBoxFlex = aValue; break;
case eCSSProperty_box_orient: mXUL->mBoxOrient = aValue; break;
case eCSSProperty_box_pack: mXUL->mBoxPack = aValue; break;
CSS_BOGUS_DEFAULT; // make compiler happy
}
}
@ -2493,11 +2507,19 @@ CSSDeclarationImpl::SetValueImportant(nsCSSProperty aProperty)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
if (nsnull != mXUL) {
CSS_ENSURE_IMPORTANT(XUL) {
switch (aProperty) {
CSS_CASE_IMPORTANT(eCSSProperty_box_align, mXUL->mBoxAlign);
CSS_CASE_IMPORTANT(eCSSProperty_box_direction, mXUL->mBoxDirection);
CSS_CASE_IMPORTANT(eCSSProperty_box_flex, mXUL->mBoxFlex);
CSS_CASE_IMPORTANT(eCSSProperty_box_orient, mXUL->mBoxOrient);
CSS_CASE_IMPORTANT(eCSSProperty_box_pack, mXUL->mBoxPack);
CSS_BOGUS_DEFAULT; // make compiler happy
}
}
@ -3181,10 +3203,18 @@ CSSDeclarationImpl::RemoveProperty(nsCSSProperty aProperty)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
CSS_CHECK(XUL) {
switch(aProperty) {
case eCSSProperty_box_align: mXUL->mBoxAlign.Reset(); break;
case eCSSProperty_box_direction: mXUL->mBoxDirection.Reset(); break;
case eCSSProperty_box_flex: mXUL->mBoxFlex.Reset(); break;
case eCSSProperty_box_orient: mXUL->mBoxOrient.Reset(); break;
case eCSSProperty_box_pack: mXUL->mBoxPack.Reset(); break;
CSS_BOGUS_DEFAULT; // Make compiler happy
}
}
@ -3920,10 +3950,18 @@ CSSDeclarationImpl::GetValue(nsCSSProperty aProperty, nsCSSValue& aValue)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
if (nsnull != mXUL) {
switch (aProperty) {
case eCSSProperty_box_align: aValue = mXUL->mBoxAlign; break;
case eCSSProperty_box_direction: aValue = mXUL->mBoxDirection; break;
case eCSSProperty_box_flex: aValue = mXUL->mBoxFlex; break;
case eCSSProperty_box_orient: aValue = mXUL->mBoxOrient; break;
case eCSSProperty_box_pack: aValue = mXUL->mBoxPack; break;
CSS_BOGUS_DEFAULT; // make compiler happy
}
}

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

@ -74,18 +74,18 @@ CSS_KEY(-moz-scrollbars-none, _moz_scrollbars_none)
CSS_KEY(-moz-scrollbars-horizontal, _moz_scrollbars_horizontal)
CSS_KEY(-moz-scrollbars-vertical, _moz_scrollbars_vertical)
CSS_KEY(-moz-use-text-color, _moz_use_text_color)
CSS_KEY(-moz-xul-box, _moz_xul_box)
CSS_KEY(-moz-xul-inline-box, _moz_xul_inline_box)
CSS_KEY(-moz-xul-bulletinboard, _moz_xul_bulletinboard)
CSS_KEY(-moz-xul-deck, _moz_xul_deck)
CSS_KEY(-moz-xul-grid, _moz_xul_grid)
CSS_KEY(-moz-xul-inline-grid, _moz_xul_inline_grid)
CSS_KEY(-moz-xul-grid-group, _moz_xul_grid_group)
CSS_KEY(-moz-xul-grid-line, _moz_xul_grid_line)
CSS_KEY(-moz-xul-groupbox, _moz_xul_groupbox)
CSS_KEY(-moz-xul-popup, _moz_xul_popup)
CSS_KEY(-moz-xul-stack, _moz_xul_stack)
CSS_KEY(-moz-xul-inline-stack, _moz_xul_inline_stack)
CSS_KEY(-moz-box, _moz_box)
CSS_KEY(-moz-inline-box, _moz_inline_box)
CSS_KEY(-moz-bulletinboard, _moz_bulletinboard)
CSS_KEY(-moz-deck, _moz_deck)
CSS_KEY(-moz-grid, _moz_grid)
CSS_KEY(-moz-inline-grid, _moz_inline_grid)
CSS_KEY(-moz-grid-group, _moz_grid_group)
CSS_KEY(-moz-grid-line, _moz_grid_line)
CSS_KEY(-moz-groupbox, _moz_groupbox)
CSS_KEY(-moz-popup, _moz_popup)
CSS_KEY(-moz-stack, _moz_stack)
CSS_KEY(-moz-inline-stack, _moz_inline_stack)
CSS_KEY(above, above)
CSS_KEY(absolute, absolute)
CSS_KEY(activeborder, activeborder)

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

@ -3458,9 +3458,20 @@ PRBool CSSParserImpl::ParseSingleValueProperty(PRInt32& aErrorCode,
case eCSSProperty_right:
return ParseVariant(aErrorCode, aValue, VARIANT_AHLP, nsnull);
#ifdef INCLUDE_XUL
case eCSSProperty_box_align:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,
nsCSSProps::kBoxAlignKTable);
case eCSSProperty_box_direction:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,
nsCSSProps::kBoxDirectionKTable);
case eCSSProperty_box_flex:
return ParseVariant(aErrorCode, aValue, VARIANT_HN, nsnull);
case eCSSProperty_box_orient:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,
nsCSSProps::kBoxOrientKTable);
case eCSSProperty_box_pack:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,
nsCSSProps::kBoxPackKTable);
#endif
case eCSSProperty_box_sizing:
return ParseVariant(aErrorCode, aValue, VARIANT_HK,

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

@ -105,12 +105,12 @@ CSS_PROP(border-width, border_width, REFLOW)
CSS_PROP(-x-border-x-spacing, border_x_spacing, REFLOW) // XXX bug 3935
CSS_PROP(-x-border-y-spacing, border_y_spacing, REFLOW) // XXX bug 3935
CSS_PROP(bottom, bottom, REFLOW)
CSS_PROP(-moz-xul-box-align, box_align, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-direction, box_direction, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-flex, box_flex, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-flex-group, box_flex_group, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-orient, box_orient, REFLOW) // XXX bug 3935
CSS_PROP(-moz-xul-box-pack, box_pack, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-align, box_align, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-direction, box_direction, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-flex, box_flex, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-flex-group, box_flex_group, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-orient, box_orient, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-pack, box_pack, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-sizing, box_sizing, REFLOW) // XXX bug 3935
CSS_PROP(caption-side, caption_side, REFLOW)
CSS_PROP(clear, clear, REFLOW)

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

@ -308,18 +308,18 @@ const PRInt32 nsCSSProps::kDisplayKTable[] = {
eCSSKeyword_table_cell, NS_STYLE_DISPLAY_TABLE_CELL,
eCSSKeyword_table_caption, NS_STYLE_DISPLAY_TABLE_CAPTION,
eCSSKeyword_menu, NS_STYLE_DISPLAY_MENU,
eCSSKeyword__moz_xul_box, NS_STYLE_DISPLAY_BOX,
eCSSKeyword__moz_xul_inline_box, NS_STYLE_DISPLAY_INLINE_BOX,
eCSSKeyword__moz_xul_grid, NS_STYLE_DISPLAY_GRID,
eCSSKeyword__moz_xul_inline_grid, NS_STYLE_DISPLAY_INLINE_GRID,
eCSSKeyword__moz_xul_grid_group, NS_STYLE_DISPLAY_GRID_GROUP,
eCSSKeyword__moz_xul_grid_line, NS_STYLE_DISPLAY_GRID_LINE,
eCSSKeyword__moz_xul_stack, NS_STYLE_DISPLAY_STACK,
eCSSKeyword__moz_xul_inline_stack, NS_STYLE_DISPLAY_INLINE_STACK,
eCSSKeyword__moz_xul_deck, NS_STYLE_DISPLAY_DECK,
eCSSKeyword__moz_xul_bulletinboard, NS_STYLE_DISPLAY_BULLETINBOARD,
eCSSKeyword__moz_xul_popup, NS_STYLE_DISPLAY_POPUP,
eCSSKeyword__moz_xul_groupbox, NS_STYLE_DISPLAY_GROUPBOX,
eCSSKeyword__moz_box, NS_STYLE_DISPLAY_BOX,
eCSSKeyword__moz_inline_box, NS_STYLE_DISPLAY_INLINE_BOX,
eCSSKeyword__moz_grid, NS_STYLE_DISPLAY_GRID,
eCSSKeyword__moz_inline_grid, NS_STYLE_DISPLAY_INLINE_GRID,
eCSSKeyword__moz_grid_group, NS_STYLE_DISPLAY_GRID_GROUP,
eCSSKeyword__moz_grid_line, NS_STYLE_DISPLAY_GRID_LINE,
eCSSKeyword__moz_stack, NS_STYLE_DISPLAY_STACK,
eCSSKeyword__moz_inline_stack, NS_STYLE_DISPLAY_INLINE_STACK,
eCSSKeyword__moz_deck, NS_STYLE_DISPLAY_DECK,
eCSSKeyword__moz_bulletinboard, NS_STYLE_DISPLAY_BULLETINBOARD,
eCSSKeyword__moz_popup, NS_STYLE_DISPLAY_POPUP,
eCSSKeyword__moz_groupbox, NS_STYLE_DISPLAY_GROUPBOX,
-1,-1
};
@ -689,6 +689,21 @@ const PRInt32 nsCSSProps::kWhitespaceKTable[] = {
#ifdef INCLUDE_XUL
// Specific keyword tables for XUL.properties
const PRInt32 nsCSSProps::kBoxAlignKTable[] = {
eCSSKeyword_stretch, NS_STYLE_BOX_ALIGN_STRETCH,
eCSSKeyword_start, NS_STYLE_BOX_ALIGN_START,
eCSSKeyword_center, NS_STYLE_BOX_ALIGN_CENTER,
eCSSKeyword_baseline, NS_STYLE_BOX_ALIGN_BASELINE,
eCSSKeyword_end, NS_STYLE_BOX_ALIGN_END,
-1,-1
};
const PRInt32 nsCSSProps::kBoxDirectionKTable[] = {
eCSSKeyword_normal, NS_STYLE_BOX_DIRECTION_NORMAL,
eCSSKeyword_reverse, NS_STYLE_BOX_DIRECTION_REVERSE,
-1,-1
};
const PRInt32 nsCSSProps::kBoxOrientKTable[] = {
eCSSKeyword_horizontal, NS_STYLE_BOX_ORIENT_HORIZONTAL,
eCSSKeyword_vertical, NS_STYLE_BOX_ORIENT_VERTICAL,
@ -696,6 +711,14 @@ const PRInt32 nsCSSProps::kBoxOrientKTable[] = {
eCSSKeyword_block_axis, NS_STYLE_BOX_ORIENT_VERTICAL,
-1,-1
};
const PRInt32 nsCSSProps::kBoxPackKTable[] = {
eCSSKeyword_start, NS_STYLE_BOX_PACK_START,
eCSSKeyword_center, NS_STYLE_BOX_PACK_CENTER,
eCSSKeyword_end, NS_STYLE_BOX_PACK_END,
eCSSKeyword_justify, NS_STYLE_BOX_PACK_JUSTIFY,
-1,-1
};
#endif
PRInt32
@ -785,8 +808,14 @@ static const PRInt32 kBackgroundYPositionKTable[] = {
return SearchKeywordTable(aValue, kBorderCollapseKTable);
#ifdef INCLUDE_XUL
case eCSSProperty_box_align:
return SearchKeywordTable(aValue, kBoxAlignKTable);
case eCSSProperty_box_direction:
return SearchKeywordTable(aValue, kBoxDirectionKTable);
case eCSSProperty_box_orient:
return SearchKeywordTable(aValue, kBoxOrientKTable);
case eCSSProperty_box_pack:
return SearchKeywordTable(aValue, kBoxPackKTable);
#endif
case eCSSProperty_box_sizing:

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

@ -77,7 +77,10 @@ public:
static const PRInt32 kBorderStyleKTable[];
static const PRInt32 kBorderWidthKTable[];
#ifdef INCLUDE_XUL
static const PRInt32 kBoxAlignKTable[];
static const PRInt32 kBoxDirectionKTable[];
static const PRInt32 kBoxOrientKTable[];
static const PRInt32 kBoxPackKTable[];
#endif
static const PRInt32 kBoxSizingKTable[];
static const PRInt32 kCaptionSideKTable[];

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

@ -985,7 +985,9 @@ nsCSSXUL::nsCSSXUL(void)
}
nsCSSXUL::nsCSSXUL(const nsCSSXUL& aCopy)
: mBoxOrient(aCopy.mBoxOrient)
: mBoxAlign(aCopy.mBoxAlign), mBoxDirection(aCopy.mBoxDirection),
mBoxFlex(aCopy.mBoxFlex), mBoxOrient(aCopy.mBoxOrient),
mBoxPack(aCopy.mBoxPack)
{
MOZ_COUNT_CTOR(nsCSSXUL);
}
@ -1006,7 +1008,11 @@ void nsCSSXUL::List(FILE* out, PRInt32 aIndent) const
nsAutoString buffer;
mBoxAlign.AppendToString(buffer, eCSSProperty_box_align);
mBoxDirection.AppendToString(buffer, eCSSProperty_box_direction);
mBoxFlex.AppendToString(buffer, eCSSProperty_box_flex);
mBoxOrient.AppendToString(buffer, eCSSProperty_box_orient);
mBoxPack.AppendToString(buffer, eCSSProperty_box_pack);
fputs(buffer, out);
}
@ -1746,10 +1752,18 @@ CSSDeclarationImpl::AppendValue(nsCSSProperty aProperty, const nsCSSValue& aValu
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
CSS_ENSURE(XUL) {
switch (aProperty) {
case eCSSProperty_box_align: mXUL->mBoxAlign = aValue; break;
case eCSSProperty_box_direction: mXUL->mBoxDirection = aValue; break;
case eCSSProperty_box_flex: mXUL->mBoxFlex = aValue; break;
case eCSSProperty_box_orient: mXUL->mBoxOrient = aValue; break;
case eCSSProperty_box_pack: mXUL->mBoxPack = aValue; break;
CSS_BOGUS_DEFAULT; // make compiler happy
}
}
@ -2493,11 +2507,19 @@ CSSDeclarationImpl::SetValueImportant(nsCSSProperty aProperty)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
if (nsnull != mXUL) {
CSS_ENSURE_IMPORTANT(XUL) {
switch (aProperty) {
CSS_CASE_IMPORTANT(eCSSProperty_box_align, mXUL->mBoxAlign);
CSS_CASE_IMPORTANT(eCSSProperty_box_direction, mXUL->mBoxDirection);
CSS_CASE_IMPORTANT(eCSSProperty_box_flex, mXUL->mBoxFlex);
CSS_CASE_IMPORTANT(eCSSProperty_box_orient, mXUL->mBoxOrient);
CSS_CASE_IMPORTANT(eCSSProperty_box_pack, mXUL->mBoxPack);
CSS_BOGUS_DEFAULT; // make compiler happy
}
}
@ -3181,10 +3203,18 @@ CSSDeclarationImpl::RemoveProperty(nsCSSProperty aProperty)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
CSS_CHECK(XUL) {
switch(aProperty) {
case eCSSProperty_box_align: mXUL->mBoxAlign.Reset(); break;
case eCSSProperty_box_direction: mXUL->mBoxDirection.Reset(); break;
case eCSSProperty_box_flex: mXUL->mBoxFlex.Reset(); break;
case eCSSProperty_box_orient: mXUL->mBoxOrient.Reset(); break;
case eCSSProperty_box_pack: mXUL->mBoxPack.Reset(); break;
CSS_BOGUS_DEFAULT; // Make compiler happy
}
}
@ -3920,10 +3950,18 @@ CSSDeclarationImpl::GetValue(nsCSSProperty aProperty, nsCSSValue& aValue)
#ifdef INCLUDE_XUL
// nsCSSXUL
case eCSSProperty_box_align:
case eCSSProperty_box_direction:
case eCSSProperty_box_flex:
case eCSSProperty_box_orient:
case eCSSProperty_box_pack:
if (nsnull != mXUL) {
switch (aProperty) {
case eCSSProperty_box_align: aValue = mXUL->mBoxAlign; break;
case eCSSProperty_box_direction: aValue = mXUL->mBoxDirection; break;
case eCSSProperty_box_flex: aValue = mXUL->mBoxFlex; break;
case eCSSProperty_box_orient: aValue = mXUL->mBoxOrient; break;
case eCSSProperty_box_pack: aValue = mXUL->mBoxPack; break;
CSS_BOGUS_DEFAULT; // make compiler happy
}
}

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

@ -1673,10 +1673,26 @@ MapXULForDeclaration(nsICSSDeclaration* aDecl, nsCSSXUL& aXUL)
if (!ourXUL)
return NS_OK; // We don't have any rules for XUL.
// box-align: enum, inherit
if (aXUL.mBoxAlign.GetUnit() == eCSSUnit_Null && ourXUL->mBoxAlign.GetUnit() != eCSSUnit_Null)
aXUL.mBoxAlign = ourXUL->mBoxAlign;
// box-direction: enum, inherit
if (aXUL.mBoxDirection.GetUnit() == eCSSUnit_Null && ourXUL->mBoxDirection.GetUnit() != eCSSUnit_Null)
aXUL.mBoxDirection = ourXUL->mBoxDirection;
// box-flex: enum, inherit
if (aXUL.mBoxFlex.GetUnit() == eCSSUnit_Null && ourXUL->mBoxFlex.GetUnit() != eCSSUnit_Null)
aXUL.mBoxFlex = ourXUL->mBoxFlex;
// box-orient: enum, inherit
if (aXUL.mBoxOrient.GetUnit() == eCSSUnit_Null && ourXUL->mBoxOrient.GetUnit() != eCSSUnit_Null)
aXUL.mBoxOrient = ourXUL->mBoxOrient;
// box-pack: enum, inherit
if (aXUL.mBoxPack.GetUnit() == eCSSUnit_Null && ourXUL->mBoxPack.GetUnit() != eCSSUnit_Null)
aXUL.mBoxPack = ourXUL->mBoxPack;
return NS_OK;
}
#endif

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

@ -1124,8 +1124,12 @@ void nsStyleContext::DumpRegressionData(nsIPresContext* aPresContext, FILE* out,
#ifdef INCLUDE_XUL
IndentBy(out,aIndent);
const nsStyleXUL* xul = (const nsStyleXUL*)GetStyleData(eStyleStruct_XUL);
fprintf(out, "<xul data=\"%d",
(int)xul->mBoxOrient);
fprintf(out, "<xul data=\"%d %d %d %d %d",
(int)xul->mBoxAlign,
(int)xul->mBoxDirection,
(int)xul->mBoxFlex,
(int)xul->mBoxOrient,
(int)xul->mBoxPack);
fprintf(out, "\" />\n");
#endif
//#insert new style structs here#

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

@ -625,7 +625,11 @@ PRInt32 nsStyleList::CalcDifference(const nsStyleList& aOther) const
//
nsStyleXUL::nsStyleXUL()
{
mBoxAlign = NS_STYLE_BOX_ALIGN_STRETCH;
mBoxDirection = NS_STYLE_BOX_DIRECTION_NORMAL;
mBoxFlex = 0.0f;
mBoxOrient = NS_STYLE_BOX_ORIENT_HORIZONTAL;
mBoxPack = NS_STYLE_BOX_PACK_START;
}
nsStyleXUL::~nsStyleXUL()
@ -640,7 +644,11 @@ nsStyleXUL::nsStyleXUL(const nsStyleXUL& aSource)
PRInt32
nsStyleXUL::CalcDifference(const nsStyleXUL& aOther) const
{
if (mBoxOrient == aOther.mBoxOrient)
if (mBoxAlign == aOther.mBoxAlign &&
mBoxDirection == aOther.mBoxDirection &&
mBoxFlex == aOther.mBoxFlex &&
mBoxOrient == aOther.mBoxOrient &&
mBoxPack == aOther.mBoxPack)
return NS_STYLE_HINT_NONE;
return NS_STYLE_HINT_REFLOW;
}

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

@ -967,11 +967,11 @@ struct nsStyleXUL : public nsStyleStruct {
PRInt32 CalcDifference(const nsStyleXUL& aOther) const;
// There will be seven more properties coming,
// which is why we warrant our own struct.
// box-align, box-direction, box-flex, box-flex-group, box-pack,
// stack-stretch, stack-policy
PRUint8 mBoxAlign; // [reset] see nsStyleConsts.h
PRUint8 mBoxDirection; // [reset] see nsStyleConsts.h
float mBoxFlex; // [reset] see nsStyleConsts.h
PRUint8 mBoxOrient; // [reset] see nsStyleConsts.h
PRUint8 mBoxPack; // [reset] see nsStyleConsts.h
};
#endif

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

@ -1319,6 +1319,16 @@ nsIBox::AddCSSFlex(nsBoxLayoutState& aState, nsIBox* aBox, nscoord& aFlex)
aFlex = value.ToInteger(&error);
flexSet = PR_TRUE;
}
else {
// No attribute value. Check CSS.
const nsStyleXUL* boxInfo;
frame->GetStyleData(eStyleStruct_XUL, (const nsStyleStruct*&)boxInfo);
if (boxInfo->mBoxFlex > 0.0f) {
// The flex was defined in CSS.
aFlex = (nscoord)boxInfo->mBoxFlex;
flexSet = PR_TRUE;
}
}
}
return flexSet;

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

@ -360,13 +360,9 @@ nsBoxFrameInner::CacheAttributes()
printf("\n");
*/
mValign = nsBoxFrame::vAlign_Top;
mValign = nsBoxFrame::vAlign_Middle;
mHalign = nsBoxFrame::hAlign_Left;
mOuter->GetInitialVAlignment(mValign);
mOuter->GetInitialHAlignment(mHalign);
PRBool orient = PR_FALSE;
mOuter->GetInitialOrientation(orient);
if (orient)
@ -374,6 +370,9 @@ nsBoxFrameInner::CacheAttributes()
else
mOuter->mState &= ~NS_STATE_IS_HORIZONTAL;
mOuter->GetInitialVAlignment(mValign);
mOuter->GetInitialHAlignment(mHalign);
PRBool equalSize = PR_FALSE;
mOuter->GetInitialEqualSize(equalSize);
if (equalSize)
@ -438,6 +437,7 @@ nsBoxFrame::GetInitialHAlignment(nsBoxFrame::Halignment& aHalign)
return PR_FALSE;
if (NS_CONTENT_ATTR_HAS_VALUE == content->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::align, value)) {
// XXXdwh Everything inside this if statement is deprecated code.
if (value.EqualsIgnoreCase("left")) {
aHalign = nsBoxFrame::hAlign_Left;
return PR_TRUE;
@ -450,27 +450,62 @@ nsBoxFrame::GetInitialHAlignment(nsBoxFrame::Halignment& aHalign)
}
}
// look at vertical alignment
const nsStyleText* textStyle =
(const nsStyleText*)mStyleContext->GetStyleData(eStyleStruct_Text);
switch (textStyle->mTextAlign)
{
case NS_STYLE_TEXT_ALIGN_RIGHT:
aHalign = nsBoxFrame::hAlign_Right;
return PR_TRUE;
break;
case NS_STYLE_TEXT_ALIGN_CENTER:
aHalign = nsBoxFrame::hAlign_Center;
return PR_TRUE;
break;
default:
// Now that the deprecated stuff is out of the way, we move on to check the appropriate
// attribute. For horizontal boxes, we are checking the PACK attribute. For vertical boxes
// we are checking the ALIGN attribute.
nsresult res;
if (IsHorizontal())
res = content->GetAttribute(kNameSpaceID_None, nsXULAtoms::pack, value);
else res = content->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::align, value);
if (res == NS_CONTENT_ATTR_HAS_VALUE) {
if (value.EqualsIgnoreCase("start")) {
aHalign = nsBoxFrame::hAlign_Left;
return PR_TRUE;
break;
} else if (value.EqualsIgnoreCase("center")) {
aHalign = nsBoxFrame::hAlign_Center;
return PR_TRUE;
} else if (value.EqualsIgnoreCase("end")) {
aHalign = nsBoxFrame::hAlign_Right;
return PR_TRUE;
}
// The attr was present but had a nonsensical value. Revert to the default.
return PR_FALSE;
}
// Now that we've checked for the attribute it's time to check CSS. For
// horizontal boxes we're checking PACK. For vertical boxes we are checking
// ALIGN.
const nsStyleXUL* boxInfo = (const nsStyleXUL*)mStyleContext->GetStyleData(eStyleStruct_XUL);
if (IsHorizontal()) {
switch (boxInfo->mBoxPack) {
case NS_STYLE_BOX_PACK_START:
aHalign = nsBoxFrame::hAlign_Left;
return PR_TRUE;
case NS_STYLE_BOX_PACK_CENTER:
aHalign = nsBoxFrame::hAlign_Center;
return PR_TRUE;
case NS_STYLE_BOX_PACK_END:
aHalign = nsBoxFrame::hAlign_Right;
return PR_TRUE;
default: // Nonsensical value. Just bail.
return PR_FALSE;
}
}
else {
switch (boxInfo->mBoxAlign) {
case NS_STYLE_BOX_ALIGN_START:
aHalign = nsBoxFrame::hAlign_Left;
return PR_TRUE;
case NS_STYLE_BOX_ALIGN_CENTER:
aHalign = nsBoxFrame::hAlign_Center;
return PR_TRUE;
case NS_STYLE_BOX_ALIGN_END:
aHalign = nsBoxFrame::hAlign_Right;
return PR_TRUE;
default: // Nonsensical value. Just bail.
return PR_FALSE;
}
}
return PR_FALSE;
@ -503,39 +538,68 @@ nsBoxFrame::GetInitialVAlignment(nsBoxFrame::Valignment& aValign)
}
}
// look at vertical alignment
const nsStyleTextReset* textStyle =
(const nsStyleTextReset*)mStyleContext->GetStyleData(eStyleStruct_TextReset);
if (textStyle->mVerticalAlign.GetUnit() == eStyleUnit_Enumerated) {
PRInt32 type = textStyle->mVerticalAlign.GetIntValue();
switch (type)
{
case NS_STYLE_VERTICAL_ALIGN_BASELINE:
aValign = nsBoxFrame::vAlign_BaseLine;
return PR_TRUE;
break;
case NS_STYLE_VERTICAL_ALIGN_TOP:
// Now that the deprecated stuff is out of the way, we move on to check the appropriate
// attribute. For horizontal boxes, we are checking the ALIGN attribute. For vertical boxes
// we are checking the PACK attribute.
nsresult res;
if (IsHorizontal())
res = content->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::align, value);
else res = content->GetAttribute(kNameSpaceID_None, nsXULAtoms::pack, value);
if (res == NS_CONTENT_ATTR_HAS_VALUE) {
if (value.EqualsIgnoreCase("start")) {
aValign = nsBoxFrame::vAlign_Top;
return PR_TRUE;
break;
case NS_STYLE_VERTICAL_ALIGN_BOTTOM:
aValign = nsBoxFrame::vAlign_Bottom;
return PR_TRUE;
break;
case NS_STYLE_VERTICAL_ALIGN_MIDDLE:
} else if (value.EqualsIgnoreCase("center")) {
aValign = nsBoxFrame::vAlign_Middle;
return PR_TRUE;
break;
} else if (value.EqualsIgnoreCase("baseline")) {
aValign = nsBoxFrame::vAlign_BaseLine;
return PR_TRUE;
} else if (value.EqualsIgnoreCase("end")) {
aValign = nsBoxFrame::vAlign_Bottom;
return PR_TRUE;
}
// The attr was present but had a nonsensical value. Revert to the default.
return PR_FALSE;
}
// Now that we've checked for the attribute it's time to check CSS. For
// horizontal boxes we're checking ALIGN. For vertical boxes we are checking
// PACK.
const nsStyleXUL* boxInfo = (const nsStyleXUL*)mStyleContext->GetStyleData(eStyleStruct_XUL);
if (IsHorizontal()) {
switch (boxInfo->mBoxAlign) {
case NS_STYLE_BOX_ALIGN_START:
aValign = nsBoxFrame::vAlign_Top;
return PR_TRUE;
case NS_STYLE_BOX_ALIGN_CENTER:
aValign = nsBoxFrame::vAlign_Middle;
return PR_TRUE;
case NS_STYLE_BOX_ALIGN_BASELINE:
aValign = nsBoxFrame::vAlign_BaseLine;
return PR_TRUE;
case NS_STYLE_BOX_ALIGN_END:
aValign = nsBoxFrame::vAlign_Bottom;
return PR_TRUE;
default: // Nonsensical value. Just bail.
return PR_FALSE;
}
}
else {
switch (boxInfo->mBoxPack) {
case NS_STYLE_BOX_PACK_START:
aValign = nsBoxFrame::vAlign_Top;
return PR_TRUE;
case NS_STYLE_BOX_PACK_CENTER:
aValign = nsBoxFrame::vAlign_Middle;
return PR_TRUE;
case NS_STYLE_BOX_PACK_END:
aValign = nsBoxFrame::vAlign_Bottom;
return PR_TRUE;
default: // Nonsensical value. Just bail.
return PR_FALSE;
}
}
return PR_FALSE;
}
@ -619,18 +683,34 @@ nsBoxFrame::GetInitialAutoStretch(PRBool& aStretch)
if (!content)
return PR_FALSE;
PRBool autostretchSet = PR_FALSE;
if (NS_CONTENT_ATTR_HAS_VALUE == content->GetAttribute(kNameSpaceID_None, nsXULAtoms::autostretch, value))
{
if (value.EqualsIgnoreCase("never")) {
aStretch = PR_FALSE;
autostretchSet = PR_TRUE;
return PR_TRUE;
} else if (value.EqualsIgnoreCase("always")) {
aStretch = PR_TRUE;
autostretchSet = PR_TRUE;
return PR_TRUE;
}
}
return PR_FALSE;
if (!autostretchSet) {
// Check the align attribute.
if (NS_CONTENT_ATTR_HAS_VALUE == content->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::align, value)) {
aStretch = value.EqualsIgnoreCase("stretch");
return PR_TRUE;
}
// Check the CSS box-align property.
const nsStyleXUL* boxInfo;
GetStyleData(eStyleStruct_XUL, (const nsStyleStruct*&)boxInfo);
aStretch = (boxInfo->mBoxAlign == NS_STYLE_BOX_ALIGN_STRETCH);
}
return PR_TRUE;
}
@ -1154,12 +1234,9 @@ nsBoxFrame::AttributeChanged(nsIPresContext* aPresContext,
aAttribute == nsXULAtoms::autostretch) {
if (aAttribute == nsXULAtoms::orient || aAttribute == nsXULAtoms::debug || aAttribute == nsHTMLAtoms::align || aAttribute == nsHTMLAtoms::valign) {
mInner->mValign = nsBoxFrame::vAlign_Top;
mInner->mValign = nsBoxFrame::vAlign_Middle;
mInner->mHalign = nsBoxFrame::hAlign_Left;
GetInitialVAlignment(mInner->mValign);
GetInitialHAlignment(mInner->mHalign);
PRBool orient = PR_TRUE;
GetInitialOrientation(orient);
if (orient)
@ -1167,6 +1244,9 @@ nsBoxFrame::AttributeChanged(nsIPresContext* aPresContext,
else
mState &= ~NS_STATE_IS_HORIZONTAL;
GetInitialVAlignment(mInner->mValign);
GetInitialHAlignment(mInner->mHalign);
PRBool equalSize = PR_FALSE;
GetInitialEqualSize(equalSize);
if (equalSize)

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

@ -9,7 +9,6 @@
.button-toolbar.bookmark-item:hover:active
{
border : none !important;
vertical-align : middle;
}
.button-toolbar.bookmark-item > .button-internal-box,
@ -23,7 +22,6 @@
> .menubutton-toolbar-single-internal-box
{
border : none !important;
vertical-align : middle;
padding : 1px 2px 1px 2px;
}
@ -55,7 +53,6 @@
background-color : transparent;
color : inherit;
text-decoration : none;
vertical-align : middle;
}
.bookmark-item.button-toolbar[container="true"]

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

@ -36,14 +36,12 @@
{
border : 1px solid transparent;
padding : 1px 3px;
vertical-align : middle;
}
.button-toolbar-1 > .button-internal-box,
.button-toolbar-2 > .button-internal-box
{
padding : 2px 6px 2px 5px;
vertical-align : middle;
text-align : center;
border : 1px solid transparent;
}
@ -52,7 +50,6 @@
{
border : 1px solid transparent;
padding : 0px 1px;
vertical-align : middle;
text-align : center;
}

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

@ -30,7 +30,6 @@
.box-smallheader > .toolbar-primary
{
border : 1px solid #000000;
vertical-align : middle;
padding-top : 3px;
}
@ -51,11 +50,6 @@
padding : 5px;
}
.box-header-text-box
{
vertical-align : middle;
}
.box-header-text
{
color : #000000;
@ -63,11 +57,6 @@
margin-left : 7px;
}
.box-header-icon-box
{
vertical-align : middle;
}
.box-header-icon
{
list-style-image : inherit;

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

@ -207,7 +207,6 @@
{
border : 1px solid transparent;
padding : 1px 3px 1px 3px;
vertical-align : middle;
}
menubutton.button-toolbar > .menubutton-toolbar-single-internal-box > .menubutton-toolbar-single-icon

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

@ -24,7 +24,6 @@
.button-toolbar-2 > .button-internal-box
{
padding : 2px 7px 2px 6px;
vertical-align : middle;
text-align : center;
border : 1px solid transparent;
color : inherit;
@ -197,7 +196,6 @@
color : inherit;
padding : 0px;
border : 1px solid transparent;
vertical-align : middle;
text-align : center;
}

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

@ -33,7 +33,6 @@
.box-smallheader > .toolbar-primary
{
border : 1px solid ThreeDDarkShadow;
vertical-align : middle;
padding-top : 3px;
}

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

@ -258,7 +258,6 @@
{
border : 1px solid transparent;
padding : 1px 3px 1px 3px;
vertical-align : middle;
}
menubutton.button-toolbar > .menubutton-toolbar-single-internal-box > .menubutton-toolbar-single-icon
@ -326,7 +325,6 @@ menubutton.button-toolbar-2 > .menubutton-internal-box
{
border : 1px solid transparent;
padding : 2px 2px 2px 4px;
vertical-align : middle;
}
menubutton.button-toolbar-2 > .menubutton-internal-box > .menubutton-single-icon

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

@ -49,10 +49,6 @@ groupbox {
margin-left: 10px;
}
.middle {
vertical-align: middle:
}
.bold {
font-weight: bold;
}

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

@ -32,7 +32,7 @@
#EditModeToolbar
{
padding : 0px;
vertical-align: top;
-moz-box-align : start;
border-bottom : 1px solid darkgray;
margin-bottom : 0px;
min-width : 1px;

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

@ -49,10 +49,6 @@ groupbox {
margin-left: 10px;
}
.middle {
vertical-align: middle:
}
.bold {
font-weight: bold;
}

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

@ -32,7 +32,7 @@
#EditModeToolbar
{
padding : 0px;
vertical-align: top;
-moz-box-align : start;
border-bottom : 1px solid darkgray;
margin-bottom : 0px;
min-width : 1px;

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

@ -49,10 +49,6 @@ groupbox {
margin-left: 10px;
}
.middle {
vertical-align: middle;
}
.bold {
font-weight: bold;
}

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

@ -32,7 +32,7 @@
#EditModeToolbar
{
padding : 0px;
vertical-align: top;
-moz-box-align : start;
border-bottom : 1px solid darkgray;
margin-bottom : 0px;
min-width : 1px;

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

@ -132,7 +132,6 @@ button {
.button-text-box {
text-align : center;
vertical-align : middle;
padding : 0px 3px;
}
@ -196,7 +195,6 @@ button:hover:active {
}
.button-text-box {
vertical-align : middle;
text-align : center;
padding : 1px 0px 1px 0px;
}

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

@ -40,7 +40,7 @@
border-right : 1px outset ThreeDFace;
padding : 5px;
background-color : ThreeDFace;
vertical-align : top !important;
-moz-box-align : start !important;
}
.console-icon

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

@ -30,7 +30,6 @@
.box-smallheader > .toolbar-primary
{
border : 1px solid #000000;
vertical-align : middle;
padding-top : 3px;
}
@ -48,11 +47,6 @@
min-height : 34px;
}
.box-header-text-box
{
vertical-align : middle;
}
.box-header-text
{
color : white;
@ -61,11 +55,6 @@
text-decoration : underline;
}
.box-header-icon-box
{
vertical-align : middle;
}
.box-header-circle
{
background-image : url("chrome://global/skin/button28-bg.gif");

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

@ -2,7 +2,6 @@
menu, menuitem
{
color : MenuText;
vertical-align : middle;
list-style-image : none;
}

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

@ -68,7 +68,6 @@
.menulist-mid-top {
background : url("chrome://global/skin/menulist-mid-top.gif") repeat-x;
height : 3px;
vertical-align : top;
}
.menulist-mid-mid {
@ -78,11 +77,9 @@
.menulist-mid-btm {
background : url("chrome://global/skin/menulist-mid-btm.gif") repeat-x;
height : 3px;
vertical-align : bottom;
}
.menulist-text-box {
vertical-align : middle;
text-align : left;
padding : 1px 0px 2px 0px;
}
@ -102,7 +99,6 @@
padding-top : 3px;
/** padding-bottom : 1px; **/
text-align : center;
vertical-align : middle;
}
.menulist-right-btm {

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

@ -28,7 +28,7 @@
<xul:box class="menulist-box-right" inherits="disabled" orient="vertical">
<xul:box class="menulist-right-mid" inherits="disabled" flex="1">
<xul:box class="menulist-right-mid2" inherits="disabled" flex="1" autostretch="never">
<xul:box class="menulist-right-mid2" inherits="disabled" flex="1" align="center">
<xul:image class="menulist-dropmarker" inherits="disabled"/>
</xul:box>
</xul:box>
@ -40,7 +40,7 @@
<binding id="menulist-compact" extends="chrome://global/content/bindings/menulist.xml#menulist">
<content flex="1">
<xul:box class="menulist-compact-internal-box" flex="1" autostretch="never">
<xul:box class="menulist-compact-internal-box" flex="1" align="center">
<xul:image class="menulist-compact-dropmarker" inherits="disabled"/>
<xul:spring flex="1"/>
<xul:text class="menulist-compact-text" inherits="value=label,accesskey,crop,disabled" crop="right"/>

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

@ -39,7 +39,6 @@ outlinerbody:-moz-outliner-cell
{
padding: 0px 0px 1px 2px;
white-space: nowrap;
vertical-align: middle;
}
outlinerbody:-moz-outliner-cell(selected)

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

@ -91,7 +91,7 @@ scrollbarbutton {
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbarbutton");
-moz-user-focus: ignore;
-moz-user-select: none;
vertical-align: bottom;
-moz-box-align: end;
}
scrollbarbutton:hover:active {

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

@ -15,7 +15,6 @@ autorepeatbutton {
padding: 1px;
height: 1em;
text-align: left;
vertical-align: middle;
}
autorepeatbutton:hover {

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

@ -4,7 +4,6 @@ splitter
{
cursor : e-resize;
background-color : #DDDDDD;
vertical-align : middle;
text-align : center;
border-right : 1px solid #000000;
}

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

@ -48,7 +48,6 @@ treeitem[dd-dropon="true"] > treerow {
treecell {
white-space: nowrap;
vertical-align: middle;
padding: 1px 0px 1px 2px;
}
@ -60,7 +59,6 @@ treecell {
border-bottom: 1px solid #333333 !important;
color: black;
padding: 0px;
vertical-align: middle;
}
.treecell-header > .treecell-header-box,

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

@ -83,7 +83,6 @@
button[disabled]:focus > .button-box-1 > .button-box-2 > .button-box-text
{
text-align : center;
vertical-align : middle;
padding : 0px 3px 1px 2px;
border : 1px solid ThreeDFace;
margin : 1px;

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

@ -40,7 +40,7 @@
border-right : 1px outset ThreeDFace;
padding : 5px;
background-color : -moz-Dialog;
vertical-align : top !important;
-moz-box-align : start;
}
.console-icon

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

@ -33,7 +33,6 @@
.box-smallheader > .toolbar-primary
{
border : 1px solid ThreeDDarkShadow;
vertical-align : middle;
padding-top : 3px;
}

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

@ -2,7 +2,6 @@ menu, menuitem
{
font : menu;
color : MenuText;
vertical-align : middle;
list-style-image : none;
}

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

@ -46,8 +46,6 @@ outlinerbody:-moz-outliner-row(current, focus) {
outlinerbody:-moz-outliner-cell {
padding: 0px 0px 1px 2px;
white-space: nowrap;
vertical-align: middle;
}
outlinerbody:-moz-outliner-cell-text {

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

@ -18,7 +18,6 @@ autorepeatbutton
padding : 1px;
height : 1em;
text-align : center;
vertical-align : middle;
}
autorepeatbutton:hover

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

@ -10,7 +10,6 @@
{
cursor : e-resize;
background-color : -moz-Dialog;
vertical-align : middle;
text-align : center;
}
@ -66,10 +65,6 @@
}
/* Grippy alignment */
splitter[autostretch="never"]
{
vertical-align : middle;
}
splitter[orient="vertical"][autostretch="never"]
{

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

@ -66,7 +66,6 @@ treecell
{
padding : 0px 0px 1px 2px;
white-space : nowrap;
vertical-align : middle;
}
tree:focus > treechildren treeitem[selected="true"] > treerow,

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

@ -390,7 +390,7 @@ searchoperator
searchvalue
{
display: -moz-xul-deck;
display: -moz-deck;
-moz-binding : url(chrome://messenger/content/mailWidgets.xml#searchvalue);
}

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

@ -37,7 +37,7 @@ Rights Reserved.
mail-emailaddress {
-moz-binding: url(chrome://messenger/content/mailWidgets.xml#mail-emailaddress);
display: -moz-xul-inline-box;
display: -moz-inline-box;
}
.buttonTopSpacer { height: .3em; }
@ -132,10 +132,6 @@ text.headerValue
/* ::::: collapsed view styles ::::: */
.collapsedToggleHdrBox
{
vertical-align: middle;
}
#collapsedAttachmentBox {
text-align: center;

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

@ -60,7 +60,6 @@
.treecell-addressingWidget
{
vertical-align : middle;
border-bottom : 1px solid #CACAFF;
padding : 0px !important;
}
@ -313,7 +312,7 @@
}
#askImageBox {
vertical-align: top;
-moz-box-align: start;
}
#convertYes {

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

@ -413,7 +413,7 @@ searchoperator
searchvalue
{
display: -moz-xul-deck;
display: -moz-deck;
-moz-binding : url(chrome://messenger/content/mailWidgets.xml#searchvalue);
}

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

@ -38,7 +38,7 @@
mail-emailaddress
{
-moz-binding : url(chrome://messenger/content/mailWidgets.xml#mail-emailaddress);
display : -moz-xul-inline-box;
display : -moz-inline-box;
}
.buttonTopSpacer
@ -162,10 +162,6 @@ text.headerValue
/* ::::: collapsed view styles ::::: */
.collapsedToggleHdrBox
{
vertical-align: middle;
}
#collapsedAttachmentBox {
text-align: center;

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

@ -31,7 +31,6 @@
{
min-width : 0px;
margin : 8px 0px 8px 6px;
vertical-align : middle;
}
#bookmarks-button,

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

@ -46,6 +46,6 @@
#throbber-box,
.throbber-internal-box {
vertical-align: top !important;
-moz-box-align: start !important;
}

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

@ -41,10 +41,6 @@
font: message-box;
}
.button-internal-box {
vertical-align: middle;
}
.button-toolbar > .button-internal-box > .button-icon {
margin: 0px;
padding: 0px 2px 0px 0px;
@ -213,7 +209,6 @@ menubutton.button-toolbar-4 {
.button-text-container {
text-align: center;
vertical-align: middle;
}
.button-text {

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

@ -42,7 +42,6 @@ menubutton.button-toolbar {
border: none;
padding: 1px 3px 1px 3px;
background-color: transparent;
vertical-align: middle;
}
.button-toolbar > .menubutton-internal-box > .menubutton-single-icon {

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

@ -38,6 +38,5 @@
#engineTabs {
border-bottom: 1px outset #D7D9E0;
padding: 2px 3px 2px 3px;
vertical-align: middle;
}

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

@ -49,10 +49,6 @@
margin-left: 10px;
}
.middle {
vertical-align: middle;
}
.bold {
font-weight: bold;
}

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

@ -50,7 +50,6 @@ html|*.textbox-input {
-moz-binding: url("chrome://global/skin/globalBindings.xml#autostretch-never");
margin: 1px 3px 3px 0px;
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
vertical-align: middle;
}
.autocomplete-history-button[open="true"] {

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

@ -46,7 +46,6 @@ button {
.button-text-box {
padding: 3px 2px 3px 2px;
text-align: center;
vertical-align: middle;
}
.button-text-mid,

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

@ -43,7 +43,7 @@
border-right: 1px outset #C7D0D9;
padding: 5px;
background-color: #C7D0D9;
vertical-align: top !important;
-moz-box-align: start !important;
}
.console-icon {

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

@ -39,7 +39,7 @@
<xul:spring class="button-mid-btm" inherits="default,disabled"/>
</xul:box>
<xul:box class="button-text-box" autostretch="never">
<xul:box class="button-text-box" align="center">
<xul:image class="button-icon-mid" inherits="src"/>
<xul:text class="button-text-mid" inherits="default,value=label,crop,accesskey"/>
<children/>
@ -89,7 +89,7 @@
<xul:spring class="menulist-mid-btm" inherits="disabled"/>
</xul:box>
<xul:box class="menulist-text-box" autostretch="never">
<xul:box class="menulist-text-box" align="center">
<xul:image class="menulist-icon-mid" inherits="src"/>
<xul:text class="menulist-text-mid" inherits="value=label,crop,accesskey" crop="right" flex="1"/>
</xul:box>
@ -102,7 +102,7 @@
<xul:spring class="menulist-right-mid" inherits="disabled" flex="1"/>
<xul:spring class="menulist-right-btm" inherits="disabled"/>
</xul:box>
<xul:box class="menulist-dropmarker-box" autostretch="never">
<xul:box class="menulist-dropmarker-box" align="center">
<xul:image class="menulist-dropmarker" inherits="disabled"/>
</xul:box>
</xul:stack>
@ -116,7 +116,7 @@
<xul:box flex="1" class="menulist-editable-box">
<xul:image class="menu-icon" inherits="src"/>
<html:input type="text" class="menulist-editable-text" flex="1" inherits="value=label,disabled"/>
<xul:box class="menu-dropmarker-box" autostretch="never">
<xul:box class="menu-dropmarker-box" align="center">
<xul:image class="menu-dropmarker"/>
</xul:box>
</xul:box>
@ -126,7 +126,7 @@
<binding id="menulist-compact" extends="chrome://global/content/bindings/menulist.xml#menulist">
<content flex="1">
<xul:box class="menulist-compact-internal-box" flex="1" autostretch="never">
<xul:box class="menulist-compact-internal-box" flex="1" align="center">
<xul:image class="menulist-compact-dropmarker" inherits="disabled"/>
<xul:spring flex="1"/>
<xul:text class="menulist-compact-text" inherits="value=label,accesskey,crop,disabled" crop="right"/>

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

@ -34,7 +34,7 @@ menuitem {
list-style-image: none;
color: #000000;
font: menu;
vertical-align: middle;
-moz-box-align: center;
}
menuitem[default="true"] {

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

@ -46,7 +46,6 @@ menulist {
.menulist-text-box {
padding: 3px 2px 3px 2px;
text-align: left;
vertical-align: middle;
}
.menulist-icon-mid {
@ -94,13 +93,11 @@ menulist:focus {
.menulist-mid-top {
background: url("chrome://global/skin/menulist/mlist-mid-top.gif") repeat-x;
height: 9px;
vertical-align: top;
}
.menulist-mid-btm {
background: url("chrome://global/skin/menulist/mlist-mid-btm.gif") repeat-x;
height: 8px;
vertical-align: bottom;
}
.menulist-box-right {
@ -123,7 +120,6 @@ menulist:focus {
.menulist-dropmarker-box {
text-align: center;
vertical-align: middle;
}
/* ..... active state ..... */

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

@ -103,7 +103,6 @@ outlinerbody:-moz-outliner-line(selected, focus) {
border-top: 1px solid #C7D0D9;
border-right: 1px solid #A5ABB0;
border-bottom: 1px solid #A5ABB0;
vertical-align: middle;
}
.outlinercol-box {

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

@ -146,7 +146,7 @@ thumb:active > .thumb-vert-box-middle > .thumb-vert-grippy {
scrollbarbutton {
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbarbutton");
cursor: default;
vertical-align: bottom;
-moz-box-align: end;
}
/* ..... increment .... */

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

@ -145,7 +145,7 @@ thumb:active > .thumb-vert-box-middle > .thumb-vert-grippy {
scrollbarbutton {
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbarbutton");
cursor: default;
vertical-align: bottom;
-moz-box-align: end;
}
/* ..... increment .... */

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

@ -35,7 +35,6 @@ autorepeatbutton {
padding: 3px;
height: 1em;
text-align: center;
vertical-align: middle;
}
autorepeatbutton:hover {

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

@ -35,7 +35,6 @@ splitter {
border-left: 1px solid #000000;
min-width: 1px;
background-color: #C7D0D9;
vertical-align: middle;
}
.splitter-internal-box {

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

@ -82,7 +82,6 @@ treecell {
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
padding: 0px 0px 1px 2px;
vertical-align: middle;
white-space: nowrap;
}
@ -128,7 +127,6 @@ treeitem[container="true"] > treerow > .treecell-indent > .tree-cell-primary-ico
border-top: 1px solid #C7D0D9;
border-right: 1px solid #A5ABB0;
border-bottom: 1px solid #A5ABB0;
vertical-align: middle;
}
.treecell-header-box {

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

@ -369,7 +369,7 @@ searchoperator {
}
searchvalue {
display: -moz-xul-deck;
display: -moz-deck;
-moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchvalue");
}

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

@ -196,7 +196,6 @@
.treecell-addressingWidget {
border-bottom: 1px solid #C4CADC;
padding: 0px;
vertical-align: middle;
}
.treecell-addressingWidget:first-child {
@ -238,7 +237,7 @@ statusbarpanel,
}
#askImageBox {
vertical-align: top;
-moz-box-align: start;
}
#convertYes {

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

@ -147,10 +147,6 @@ mail-emailaddress {
/* ::::: collapsed view styles ::::: */
.collapsedToggleHdrBox {
vertical-align: middle;
}
#collapsedAttachmentBox {
text-align: center;
}

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

@ -156,7 +156,7 @@
.toolbar-primary-mid-fg {
-moz-binding: url("chrome://global/skin/globalBindings.xml#autostretch-never");
vertical-align: top;
-moz-box-align: start;
}
.toolbar-primary-mid-top {
@ -220,10 +220,6 @@
border-bottom: 1px solid #87929E;
}
.navbar-inner-border-inner {
vertical-align: middle;
}
.navbar-inner-groove-rit {
width: 6px;
}

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

@ -8,5 +8,5 @@
}
.autocomplete-result-popup {
display: -moz-xul-popup !important;
display: -moz-popup !important;
}

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

@ -11,10 +11,10 @@
</binding>
<binding id="menu" extends="chrome://global/content/bindings/menu.xml#menuitem-base">
<content autostretch="never">
<content>
<xul:text class="menu-text" flex="1" align="left" inherits="value=label,accesskey,crop" crop="right"/>
<xul:text class="menu-accel" inherits="value=acceltext"/>
<xul:box autostretch="never" class="menu-right" inherits="menuactive,disabled">
<xul:box align="center" class="menu-right" inherits="menuactive,disabled">
<xul:image/>
</xul:box>
<children includes="menupopup"/>
@ -27,7 +27,7 @@
</binding>
<binding id="menuitem" extends="chrome://global/content/bindings/menu.xml#menuitem-base">
<content autostretch="never">
<content>
<xul:text class="menu-text" flex="1" align="left" inherits="value=label,accesskey,crop" crop="right"/>
<xul:text class="menu-accel" inherits="value=acceltext"/>
</content>
@ -55,7 +55,7 @@
<binding id="menuitem-iconic" extends="chrome://global/content/bindings/menu.xml#menuitem-base">
<content>
<xul:box class="menu-iconic-left" orient="vertical" autostretch="never"
<xul:box class="menu-iconic-left" orient="vertical" align="center"
inherits="selected,menuactive,disabled,checked">
<xul:image inherits="src"/>
</xul:box>
@ -70,13 +70,13 @@
</binding>
<binding id="menu-iconic" extends="chrome://global/content/bindings/menu.xml#menuitem-base">
<content autostretch="never">
<xul:box class="menu-iconic-left" orient="vertical" autostretch="never">
<content>
<xul:box class="menu-iconic-left" orient="vertical" align="center">
<xul:image inherits="src"/>
</xul:box>
<xul:text class="menu-iconic-text" flex="1" align="left" inherits="value=label,accesskey,crop" crop="right"/>
<xul:text class="menu-iconic-accel" inherits="value=acceltext"/>
<xul:box orient="vertical" autostretch="never" class="menu-right" inherits="menuactive,disabled">
<xul:box orient="vertical" align="center" class="menu-right" inherits="menuactive,disabled">
<xul:image/>
</xul:box>
<children includes="menupopup|template"/>
@ -89,7 +89,7 @@
</binding>
<binding id="menubutton-item" extends="chrome://global/content/bindings/menu.xml#menuitem-base">
<content autostretch="never">
<content>
<xul:text class="menubutton-text" flex="1" inherits="value=label,accesskey,crop" crop="right"/>
<children includes="menupopup"/>
</content>

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

@ -1,7 +1,7 @@
tree {
-moz-user-focus: normal;
display: -moz-xul-grid;
display: -moz-grid;
min-width: 0px;
min-height: 0px;
width: 200px;
@ -13,11 +13,11 @@ tree[rows] {
}
treehead, treerows, treechildren, treeitem, treecolgroup {
display: -moz-xul-grid-group;
display: -moz-grid-group;
}
treehead, treerows, treechildren, treeitem {
-moz-xul-box-orient: vertical;
-moz-box-orient: vertical;
}
treechildren, treehead, treerows {
@ -25,22 +25,22 @@ treechildren, treehead, treerows {
}
treecol, treerow {
display: -moz-xul-grid-line;
display: -moz-grid-line;
}
treecol {
min-width: 16px;
width: 16px;
-moz-xul-box-orient: vertical;
-moz-box-orient: vertical;
}
treecol[hidden="true"] {
display: -moz-xul-grid-line;
display: -moz-grid-line;
visibility: collapse;
}
treechildren {
display: -moz-xul-grid-group;
display: -moz-grid-group;
}
tree > treechildren {
@ -53,15 +53,15 @@ treeitem > treechildren {
}
treeitem[open="true"] > treechildren {
display: -moz-xul-grid-group;
display: -moz-grid-group;
}
treecell {
vertical-align: middle;
-moz-box-align: center;
}
treecell[hidden="true"] {
display: -moz-xul-box;
display: -moz-box;
visibility: collapse;
}

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

@ -411,14 +411,14 @@
<binding id="treecell"
extends="chrome://global/content/bindings/tree.xml#tree-base">
<content autostretch="never">
<content>
<xul:text class="tree-cell-text" inherits="crop,value=label,align" flex="1" crop="right"/>
</content>
</binding>
<binding id="treecell-align-right"
extends="chrome://global/content/bindings/tree.xml#tree-base">
<content autostretch="never">
<content>
<xul:spring flex="5"/>
<xul:text class="tree-cell-text" inherits="crop,value=label,align" flex="1" crop="right"/>
</content>
@ -426,7 +426,7 @@
<binding id="treecell-iconic"
extends="chrome://global/content/bindings/tree.xml#tree-base">
<content autostretch="never">
<content>
<xul:image class="tree-cell-icon" inherits="src"/>
<xul:text class="tree-cell-text" inherits="crop,value=label,align" flex="1" crop="right"/>
</content>
@ -434,14 +434,14 @@
<binding id="treecell-image"
extends="chrome://global/content/bindings/tree.xml#tree-base">
<content autostretch="never">
<content>
<xul:image class="tree-cell-image" inherits="src"/>
</content>
</binding>
<binding id="treecell-indented-folder"
extends="chrome://global/content/bindings/tree.xml#tree-base">
<content autostretch="never">
<content>
<xul:treeindentation/>
<xul:image class="tree-cell-twisty" twisty="true" inherits="hidden=notwisty" allowevents="true"/>
<xul:image class="tree-cell-primary-icon" inherits="src"/>
@ -456,7 +456,7 @@
<stylesheet src="chrome://global/skin/tree.css"/>
</resources>
<content autostretch="never">
<content>
<xul:treeindentation/>
<xul:image class="tree-cell-twisty" twisty="true" inherits="hidden=notwisty" allowevents="true"/>
<xul:image class="tree-cell-primary-icon-inline-edit-folder" inherits="src"/>
@ -474,7 +474,7 @@
<stylesheet src="chrome://global/skin/tree.css"/>
</resources>
<content autostretch="never">
<content>
<xul:treeindentation/>
<xul:image class="tree-cell-primary-icon" inherits="src"/>
<xul:box class="inline-edit-cell-box" flex="1" ileattr="text-container">
@ -491,7 +491,7 @@
<stylesheet src="chrome://global/skin/tree.css"/>
</resources>
<content autostretch="never">
<content>
<xul:box class="inline-edit-cell-box" flex="1" ileattr="text-container">
<xul:text class="tree-cell-text" ileattr="text" rootcontent="treecell"
inherits="crop,value=label,align,mode" flex="1" crop="right"/>
@ -501,7 +501,7 @@
<binding id="treecell-indented-leaf"
extends="chrome://global/content/bindings/tree.xml#tree-base">
<content autostretch="never">
<content>
<xul:treeindentation/>
<xul:image class="tree-cell-primary-icon" inherits="src"/>
<xul:text class="tree-cell-text" inherits="crop,value=label,align" flex="1" crop="right"/>
@ -515,7 +515,7 @@
<binding id="treecell-header"
extends="chrome://global/content/bindings/tree.xml#tree-base">
<content>
<xul:box class="treecell-header-box" flex="1" autostretch="never">
<xul:box class="treecell-header-box" flex="1" align="center">
<xul:image class="tree-header-image" inherits="src"/>
<xul:text class="tree-header-text" inherits="crop,value=label,disabled" flex="1" crop="right"/>
<xul:image class="tree-header-sortdirection"/>
@ -526,7 +526,7 @@
<binding id="treecell-header-image"
extends="chrome://global/content/bindings/tree.xml#tree-base">
<content>
<xul:box class="treecell-header-image-box" flex="1" autostretch="never">
<xul:box class="treecell-header-image-box" flex="1" align="center">
<xul:image class="tree-header-image" inherits="src"/>
</xul:box>
</content>

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

@ -12,7 +12,7 @@
* {
-moz-user-focus: ignore;
display: -moz-xul-box;
display: -moz-box;
}
/* hide the content and destroy the frame */
@ -72,39 +72,14 @@ window {
/******** box *******/
hbox[autostretch="never"],
box[autostretch="never"] {
vertical-align: middle;
}
hbox[autostretch="never"][valign="top"],
box[autostretch="never"][valign="top"] {
vertical-align: top;
}
hbox[autostretch="never"][valign="bottom"],
box[autostretch="never"][valign="bottom"] {
vertical-align: bottom;
}
hbox[autostretch="never"][halign="center"],
box[autostretch="never"][halign="center"] {
text-align: center;
}
hbox[autostretch="never"][halign="right"],
box[autostretch="never"][halign="right"] {
text-align: right;
}
vbox {
-moz-xul-box-orient: vertical;
-moz-box-orient: vertical;
}
/******** bulletinboard *******/
bulletinboard {
display: -moz-xul-bulletinboard;
display: -moz-bulletinboard;
}
/********** button **********/
@ -167,7 +142,7 @@ radio {
titledbox,
groupbox {
-moz-binding: url("chrome://global/content/bindings/titledbox.xml#groupbox");
display: -moz-xul-groupbox;
display: -moz-groupbox;
}
label {
@ -175,8 +150,8 @@ label {
}
.groupbox-body {
text-align: inherit;
vertical-align: inherit;
-moz-box-pack: inherit;
-moz-box-align: inherit;
}
/******* toolbar *******/
@ -255,14 +230,14 @@ menuseparator {
popup,
menupopup {
-moz-binding: url("chrome://global/content/bindings/popup.xml#popup");
-moz-xul-box-orient: vertical;
-moz-box-orient: vertical;
display: none;
z-index: 2147483647;
}
menupopup[menugenerated="true"],
popup[menugenerated="true"] {
display: -moz-xul-popup;
display: -moz-popup;
}
popup.tooltip,
@ -303,29 +278,25 @@ button.popupClose {
/******** grid **********/
grid {
display: -moz-xul-grid;
display: -moz-grid;
}
rows,
columns {
display: -moz-xul-grid-group;
display: -moz-grid-group;
}
row,
column {
display: -moz-xul-grid-line;
display: -moz-grid-line;
}
rows {
-moz-xul-box-orient: vertical;
}
row {
vertical-align: middle;
-moz-box-orient: vertical;
}
column {
-moz-xul-box-orient: vertical;
-moz-box-orient: vertical;
}
/******** tree **********/
@ -429,20 +400,20 @@ outlinercol.outliner-columnpicker {
outlinercol[hidden="true"] {
visibility: collapse;
display: -moz-xul-box;
display: -moz-box;
}
/********** deck & stack *********/
deck {
display: -moz-xul-deck;
display: -moz-deck;
}
stack {
display: -moz-xul-stack;
display: -moz-stack;
}
:-moz-xul-deck-hidden {
:-moz-deck-hidden {
visibility: hidden;
}
@ -462,7 +433,7 @@ tab {
tabpanels {
-moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabpanels");
display: -moz-xul-deck;
display: -moz-deck;
}
/********** progressmeter **********/
@ -639,7 +610,7 @@ scrollbox {
arrowscrollbox {
-moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox");
display: -moz-xul-stack;
display: -moz-stack;
}
autorepeatbutton.up {
@ -651,8 +622,8 @@ autorepeatbutton.down {
}
.scrollbox-innerbox {
text-align: inherit;
vertical-align: inherit;
-moz-box-pack: inherit;
-moz-box-align: inherit;
}
/********** statusbar **********/
@ -688,12 +659,12 @@ resourcebundle {
wizard {
-moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard");
-moz-xul-box-orient: vertical;
-moz-box-orient: vertical;
}
wizardpage {
-moz-binding: url("chrome://global/content/bindings/wizard.xml#wizardpage");
-moz-xul-box-orient: vertical;
-moz-box-orient: vertical;
overflow: auto;
}