Closed
Bug 1714468
Opened 3 years ago
Closed 3 years ago
Simplify a condition checking relatively positioned frame
Categories
(Core :: Layout: Positioned, task)
Core
Layout: Positioned
Tracking
()
RESOLVED
INVALID
People
(Reporter: TYLin, Assigned: TYLin)
Details
Attachments
(1 obsolete file)
In ReflowInput::InitConstraints()
, we have
if (mStyleDisplay->IsRelativelyPositioned(mFrame) &&
StylePositionProperty::Relative == mStyleDisplay->mPosition) { ... }
However, if (mStyleDisplay->IsRelativelyPositioned(mFrame)) { ... }
is sufficient.
Assignee | ||
Comment 1•3 years ago
|
||
Calling nsStyleDisplay::IsRelativelyPositioned() is sufficient.
Updated•3 years ago
|
Attachment #9225103 -
Attachment is obsolete: true
Assignee | ||
Updated•3 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•