diff options
author | win7-7 <win7-7@users.noreply.github.com> | 2020-06-02 11:55:46 +0300 |
---|---|---|
committer | win7-7 <win7-7@users.noreply.github.com> | 2020-06-02 11:55:46 +0300 |
commit | fb564353f2f8e9b4ba01e814c06bb29828099268 (patch) | |
tree | b3ad0991109bcd25f3e791b54c1bc896442b1a7e /layout/generic | |
parent | 4d373c1d360b29f94026b72c6f66e4ad313732cf (diff) | |
download | uxp-fb564353f2f8e9b4ba01e814c06bb29828099268.tar.gz |
issue #1575 - Fix the wrong position when we calculate the position for position:absolute child and add reftests
Use |GetUsedBorder| instead of |GetComputedBorder| when we calculate the position for position:absolute child.
Diffstat (limited to 'layout/generic')
-rw-r--r-- | layout/generic/nsAbsoluteContainingBlock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layout/generic/nsAbsoluteContainingBlock.cpp b/layout/generic/nsAbsoluteContainingBlock.cpp index f444757e8f..326468c07e 100644 --- a/layout/generic/nsAbsoluteContainingBlock.cpp +++ b/layout/generic/nsAbsoluteContainingBlock.cpp @@ -658,8 +658,8 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat // Get the border values WritingMode outerWM = aReflowInput.GetWritingMode(); - const LogicalMargin border(outerWM, - aReflowInput.mStyleBorder->GetComputedBorder()); + const LogicalMargin border(outerWM, aDelegatingFrame->GetUsedBorder()); + LogicalMargin margin = kidReflowInput.ComputedLogicalMargin().ConvertTo(outerWM, wm); |