Simplify nsIFrame::ListTag() APIs
Categories
(Core :: Layout, enhancement, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
Details
Attachments
(3 files)
There are six different nsIFrame::ListTag() APIs [1], and it's often confusing which one to use.
I'd like to trim it off to two APIs: void ListTag(FILE* out) const
and nsAutoCString ListTag() const
.
Assignee | ||
Comment 1•7 years ago
|
||
There are three different APIs that serve similar purpose. Keeping only
one is sufficient.
Assignee | ||
Comment 2•7 years ago
|
||
Many of the modifications are guarded by #ifdefs. I verify them locally
by manually define them in nsBlockDebugFlags.h and nsLinelayout.cpp.
Note that I replace ""mFrame by frame in some place in
NOISY_BLOCK_DIR_MARGINS in nsBlockFrame.cpp because they were incorrect
renamed in Bug 1277129 Part 6a.
https://hg.mozilla.org/mozilla-central/rev/a70b04f074fc
Depends on D17732
Assignee | ||
Comment 3•7 years ago
|
||
We can replace it by a simple for-loop. If we want to print not only the
tag, but the detailed frame information, we can use nsFrameList::List().
Depends on D17733
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a9804b2eca4a
https://hg.mozilla.org/mozilla-central/rev/3fd657e4aea9
https://hg.mozilla.org/mozilla-central/rev/acdd17a4329e
Description
•