fieldset reflow cleanup:

bug 120958 report correct maxElementSize under table reflow conditions
bug 48318 implement correct default alignement under bidi conditions, make legend alignment
          indepedent of fieldset content if fieldset size is not content driven.
bug 80422 route trough events for floats inside a fieldset
bug 42302 honour padding-top
bug 60375 large maxElementsize overwrite computedWidth
r=karnaze sr=waterson


git-svn-id: svn://10.0.0.236/trunk@113292 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bernd.mielke%snafu.de
2002-01-31 05:09:13 +00:00
parent a985708f0f
commit 1cbad10dec
4 changed files with 82 additions and 44 deletions

View File

@@ -137,6 +137,13 @@ nsLegendFrame::Paint(nsIPresContext* aPresContext,
PRInt32 nsLegendFrame::GetAlign()
{
PRInt32 intValue = NS_STYLE_TEXT_ALIGN_LEFT;
#ifdef IBMBIDI
const nsStyleVisibility* vis;
GetStyleData(eStyleStruct_Visibility, (const nsStyleStruct*&)vis);
if (NS_STYLE_DIRECTION_RTL == vis->mDirection) {
intValue = NS_STYLE_TEXT_ALIGN_RIGHT;
}
#endif // IBMBIDI
nsIHTMLContent* content = nsnull;
mContent->QueryInterface(kIHTMLContentIID, (void**) &content);
if (nsnull != content) {