зеркало из https://github.com/mozilla/gecko-dev.git
Bug 430352. Use the same border throughout. r+sr=roc
This commit is contained in:
Родитель
712e9200d7
Коммит
f2557d6bff
|
@ -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 421404-1.html
|
||||
load 425253-1.html
|
||||
load 430352-1.html
|
||||
|
|
|
@ -796,9 +796,10 @@ CalculateContainingBlockSizeForAbsolutes(const nsHTMLReflowState& aReflowState,
|
|||
|
||||
nsSize cbSize(aFrameSize);
|
||||
// Containing block is relative to the padding edge
|
||||
const nsMargin& border = aReflowState.mStyleBorder->GetActualBorder();
|
||||
cbSize.width -= border.left + border.right;
|
||||
cbSize.height -= border.top + border.bottom;
|
||||
const nsMargin& border =
|
||||
aReflowState.mComputedBorderPadding - aReflowState.mComputedPadding;
|
||||
cbSize.width -= border.LeftRight();
|
||||
cbSize.height -= border.TopBottom();
|
||||
|
||||
if (frame->GetParent()->GetContent() == frame->GetContent()) {
|
||||
// We are a wrapped frame for the content. Use the container's
|
||||
|
|
Загрузка…
Ссылка в новой задаче