mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Issue #1925 - Remove use of NS_SIDE_* macros.
This commit is contained in:
parent
e6e2796541
commit
ec7351a5d4
30 changed files with 322 additions and 328 deletions
|
|
@ -80,7 +80,7 @@ nsPageContentFrame::Reflow(nsPresContext* aPresContext,
|
|||
nscoord xmost = aDesiredSize.ScrollableOverflow().XMost();
|
||||
if (xmost > aDesiredSize.Width()) {
|
||||
nscoord widthToFit = xmost + padding.right +
|
||||
kidReflowInput.mStyleBorder->GetComputedBorderWidth(NS_SIDE_RIGHT);
|
||||
kidReflowInput.mStyleBorder->GetComputedBorderWidth(eSideRight);
|
||||
float ratio = float(maxSize.width) / widthToFit;
|
||||
NS_ASSERTION(ratio >= 0.0 && ratio < 1.0, "invalid shrink-to-fit ratio");
|
||||
mPD->mShrinkToFitRatio = std::min(mPD->mShrinkToFitRatio, ratio);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue