Bug 430352. Use the same border throughout. r+sr=roc

This commit is contained in:
Boris Zbarsky 2008-07-17 09:32:49 -04:00
parent 712e9200d7
commit f2557d6bff
3 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,5 @@
<!DOCTYPE html>
<html style="border: 1px dotted red; font-size: 0; -moz-appearance: scrollbartrack-horizontal; width: 12em;">
<head></head>
<body style="position: absolute;"></body>
</html>

View File

@ -137,3 +137,4 @@ load 416476-1.html
load 418532-1.html load 418532-1.html
load 421404-1.html load 421404-1.html
load 425253-1.html load 425253-1.html
load 430352-1.html

View File

@ -796,9 +796,10 @@ CalculateContainingBlockSizeForAbsolutes(const nsHTMLReflowState& aReflowState,
nsSize cbSize(aFrameSize); nsSize cbSize(aFrameSize);
// Containing block is relative to the padding edge // Containing block is relative to the padding edge
const nsMargin& border = aReflowState.mStyleBorder->GetActualBorder(); const nsMargin& border =
cbSize.width -= border.left + border.right; aReflowState.mComputedBorderPadding - aReflowState.mComputedPadding;
cbSize.height -= border.top + border.bottom; cbSize.width -= border.LeftRight();
cbSize.height -= border.TopBottom();
if (frame->GetParent()->GetContent() == frame->GetContent()) { if (frame->GetParent()->GetContent() == frame->GetContent()) {
// We are a wrapped frame for the content. Use the container's // We are a wrapped frame for the content. Use the container's