mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Bug 958714 Remove obsolete assertion & comment
+ Used "mFrame->GetType()" instead of "mFrame->Type()"
This commit is contained in:
parent
661e649fe5
commit
b2c7373dba
1 changed files with 1 additions and 12 deletions
|
|
@ -154,11 +154,6 @@ FontSizeInflationListMarginAdjustment(const nsIFrame* aFrame)
|
|||
return 0;
|
||||
}
|
||||
|
||||
// NOTE: If we ever want to use SizeComputationInput for a flex item or a
|
||||
// grid item, we need to make it take the containing-block block-size as
|
||||
// well as the inline-size, since flex items and grid items resolve
|
||||
// block-direction percent margins and padding against the
|
||||
// containing-block block-size, rather than its inline-size.
|
||||
SizeComputationInput::SizeComputationInput(nsIFrame *aFrame,
|
||||
nsRenderingContext *aRenderingContext,
|
||||
WritingMode aContainingBlockWritingMode,
|
||||
|
|
@ -167,15 +162,9 @@ SizeComputationInput::SizeComputationInput(nsIFrame *aFrame,
|
|||
, mRenderingContext(aRenderingContext)
|
||||
, mWritingMode(aFrame->GetWritingMode())
|
||||
{
|
||||
MOZ_ASSERT(!aFrame->IsFlexOrGridItem(),
|
||||
"We're about to resolve percent margin & padding "
|
||||
"values against CB inline size, which is incorrect for "
|
||||
"flex/grid items. "
|
||||
"Additionally for grid items, this path doesn't handle baseline "
|
||||
"padding contribution - see SizeComputationInput::InitOffsets");
|
||||
ReflowInputFlags flags;
|
||||
InitOffsets(aContainingBlockWritingMode, aContainingBlockISize,
|
||||
mFrame->Type(), flags);
|
||||
mFrame->GetType(), flags);
|
||||
}
|
||||
|
||||
// Initialize a reflow state for a child frame's reflow. Some state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue