mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
Bug 430352. Use the same border throughout. r+sr=roc
This commit is contained in:
parent
712e9200d7
commit
f2557d6bff
5
layout/generic/crashtests/430352-1.html
Normal file
5
layout/generic/crashtests/430352-1.html
Normal 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>
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user