93519 - new box-ordinal-group xul layout feature, r=waterson, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@103733 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -128,6 +128,7 @@ 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(-moz-box-ordinal-group, box_ordinal_group, FRAMECHANGE)
|
||||
CSS_PROP(caption-side, caption_side, REFLOW)
|
||||
CSS_PROP(clear, clear, REFLOW)
|
||||
CSS_PROP(clip, clip, VISUAL)
|
||||
|
||||
@@ -993,6 +993,7 @@ struct nsStyleXUL : public nsStyleStruct {
|
||||
float mBoxFlex; // [reset] see nsStyleConsts.h
|
||||
PRUint8 mBoxOrient; // [reset] see nsStyleConsts.h
|
||||
PRUint8 mBoxPack; // [reset] see nsStyleConsts.h
|
||||
PRUint32 mBoxOrdinal; // [reset] see nsStyleConsts.h
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -153,6 +153,7 @@ XUL_ATOM(vbox, "vbox")
|
||||
XUL_ATOM(scrollbox, "scrollbox")
|
||||
XUL_ATOM(mousethrough, "mousethrough")
|
||||
XUL_ATOM(flex, "flex")
|
||||
XUL_ATOM(ordinal, "ordinal")
|
||||
XUL_ATOM(spring, "spring")
|
||||
XUL_ATOM(orient, "orient")
|
||||
XUL_ATOM(autostretch, "autostretch")
|
||||
|
||||
@@ -645,6 +645,7 @@ nsStyleXUL::nsStyleXUL()
|
||||
mBoxFlex = 0.0f;
|
||||
mBoxOrient = NS_STYLE_BOX_ORIENT_HORIZONTAL;
|
||||
mBoxPack = NS_STYLE_BOX_PACK_START;
|
||||
mBoxOrdinal = 1;
|
||||
}
|
||||
|
||||
nsStyleXUL::~nsStyleXUL()
|
||||
@@ -663,8 +664,11 @@ nsStyleXUL::CalcDifference(const nsStyleXUL& aOther) const
|
||||
mBoxDirection == aOther.mBoxDirection &&
|
||||
mBoxFlex == aOther.mBoxFlex &&
|
||||
mBoxOrient == aOther.mBoxOrient &&
|
||||
mBoxPack == aOther.mBoxPack)
|
||||
mBoxPack == aOther.mBoxPack &&
|
||||
mBoxOrdinal == aOther.mBoxOrdinal)
|
||||
return NS_STYLE_HINT_NONE;
|
||||
if (mBoxOrdinal != aOther.mBoxOrdinal)
|
||||
return NS_STYLE_HINT_FRAMECHANGE;
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user