mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
don't substract caption margins twice, bug 91057, r=karnaze sr=waterson
This commit is contained in:
parent
48925d96bc
commit
46ebaf77da
@ -1806,7 +1806,8 @@ nsHTMLReflowState::ComputeBlockBoxData(nsIPresContext* aPresContext,
|
||||
frame->GetFrameType(getter_AddRefs(fType));
|
||||
if (nsLayoutAtoms::tableOuterFrame == fType.get()) {
|
||||
mComputedWidth = 0; // XXX temp fix for trees
|
||||
} else if (nsLayoutAtoms::tableFrame == fType.get()) {
|
||||
} else if ((nsLayoutAtoms::tableFrame == fType.get()) ||
|
||||
(nsLayoutAtoms::tableCaptionFrame == fType.get())) {
|
||||
mComputedWidth = NS_SHRINKWRAPWIDTH;
|
||||
if (eStyleUnit_Auto == mStyleMargin->mMargin.GetLeftUnit()) {
|
||||
mComputedMargin.left = NS_AUTOMARGIN;
|
||||
|
@ -1806,7 +1806,8 @@ nsHTMLReflowState::ComputeBlockBoxData(nsIPresContext* aPresContext,
|
||||
frame->GetFrameType(getter_AddRefs(fType));
|
||||
if (nsLayoutAtoms::tableOuterFrame == fType.get()) {
|
||||
mComputedWidth = 0; // XXX temp fix for trees
|
||||
} else if (nsLayoutAtoms::tableFrame == fType.get()) {
|
||||
} else if ((nsLayoutAtoms::tableFrame == fType.get()) ||
|
||||
(nsLayoutAtoms::tableCaptionFrame == fType.get())) {
|
||||
mComputedWidth = NS_SHRINKWRAPWIDTH;
|
||||
if (eStyleUnit_Auto == mStyleMargin->mMargin.GetLeftUnit()) {
|
||||
mComputedMargin.left = NS_AUTOMARGIN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user