Open
Bug 1571963
Opened 5 years ago
Updated 2 years ago
Teach nsIFrame::Init() the type of continuation to create
Categories
(Core :: Layout, task, P3)
Core
Layout
Tracking
()
NEW
People
(Reporter: TYLin, Unassigned)
Details
The concept of non-fluid (or fixed) continuations was added in bug 299065.
When calling nsCSSFrameConstructor::CreateContinuingFrame()
, we does require the caller to pass aFluid
to distinguish which kind of continuation to create. However, nsIFrame::Init()
lacks such an argument, so it always creates a fluid continuation, and later it tweaks the continuation to be non-fluid.
What I'd like to do:
- Add an extra argument to
nsIFrame::Init()
to indicate the type of continuation to create. The argument is better not to be abool
, but a strong type likeenum class FrameContinuationTypes {Fluid, NonFluid}
. - Move this tweak into
nsSplittableFrame::Init
andnsContinuingTextFrame::Init
. - Audit the caller of
nsCSSFrameConstructor::CreateContinuingFrame
to use theenum class
instead ofaFluid
. - Rename
nsFrame::Init
's parameteraPrevInFlow
toaPrevContinuation
as suggested by dbaron in https://phabricator.services.mozilla.com/D40761#1229155
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•