Bug 151375. Implement css2 outline (still called -moz-outline for now). Makes -moz-outline draw outside of the current frame. Improves appearance of focus outline. Lots of help from roc. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159341 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1256,15 +1256,7 @@ nsPositionedInlineFrame::Reflow(nsIPresContext* aPresContext,
|
||||
mAbsoluteContainer.CalculateChildBounds(aPresContext, childBounds);
|
||||
aDesiredSize.mOverflowArea.UnionRect(aDesiredSize.mOverflowArea, childBounds);
|
||||
|
||||
// Make sure the NS_FRAME_OUTSIDE_CHILDREN flag is set correctly
|
||||
if ((aDesiredSize.mOverflowArea.x < 0) ||
|
||||
(aDesiredSize.mOverflowArea.y < 0) ||
|
||||
(aDesiredSize.mOverflowArea.XMost() > aDesiredSize.width) ||
|
||||
(aDesiredSize.mOverflowArea.YMost() > aDesiredSize.height)) {
|
||||
mState |= NS_FRAME_OUTSIDE_CHILDREN;
|
||||
} else {
|
||||
mState &= ~NS_FRAME_OUTSIDE_CHILDREN;
|
||||
}
|
||||
FinishAndStoreOverflow(&aDesiredSize);
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
@@ -1302,15 +1294,7 @@ nsPositionedInlineFrame::Reflow(nsIPresContext* aPresContext,
|
||||
// Factor the absolutely positioned child bounds into the overflow area
|
||||
aDesiredSize.mOverflowArea.UnionRect(aDesiredSize.mOverflowArea, childBounds);
|
||||
|
||||
// Make sure the NS_FRAME_OUTSIDE_CHILDREN flag is set correctly
|
||||
if ((aDesiredSize.mOverflowArea.x < 0) ||
|
||||
(aDesiredSize.mOverflowArea.y < 0) ||
|
||||
(aDesiredSize.mOverflowArea.XMost() > aDesiredSize.width) ||
|
||||
(aDesiredSize.mOverflowArea.YMost() > aDesiredSize.height)) {
|
||||
mState |= NS_FRAME_OUTSIDE_CHILDREN;
|
||||
} else {
|
||||
mState &= ~NS_FRAME_OUTSIDE_CHILDREN;
|
||||
}
|
||||
FinishAndStoreOverflow(&aDesiredSize);
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user