зеркало из https://github.com/mozilla/gecko-dev.git
Made sure computedOffsets is initialized to all zeros for the root frame
This commit is contained in:
Родитель
39a61e0df6
Коммит
66fdbcd9b3
|
@ -611,6 +611,7 @@ nsHTMLReflowState::InitConstraints(nsIPresContext& aPresContext)
|
|||
computedWidth = availableWidth;
|
||||
computedHeight = availableHeight;
|
||||
computedMargin.SizeTo(0, 0, 0, 0);
|
||||
computedOffsets.SizeTo(0, 0, 0, 0);
|
||||
|
||||
} else {
|
||||
// Get the containing block reflow state
|
||||
|
|
|
@ -611,6 +611,7 @@ nsHTMLReflowState::InitConstraints(nsIPresContext& aPresContext)
|
|||
computedWidth = availableWidth;
|
||||
computedHeight = availableHeight;
|
||||
computedMargin.SizeTo(0, 0, 0, 0);
|
||||
computedOffsets.SizeTo(0, 0, 0, 0);
|
||||
|
||||
} else {
|
||||
// Get the containing block reflow state
|
||||
|
|
Загрузка…
Ссылка в новой задаче