Column-span is not working if the multi-column container is <body> element
Categories
(Core :: Layout: Columns, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(3 files)
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
(In reply to Ting-Yu Lin [:TYLin] (UTC-8) from comment #1)
List()'s second argument should be a const char*, not an integer. We can
fix the bug by omitting it because the default value of the argument is
an empty string.
Where are you seeing the second arg being a const char*?
This is being called on aFirstNewContent->GetParent() which has type nsIContent*, and I'm seeing this in the nsIContent class definition:
virtual void List(FILE* out = stdout, int32_t aIndent = 0) const = 0;
https://searchfox.org/mozilla-central/source/dom/base/nsIContent.h#848-852
It's fine to omit the aIndent since it defaults to 0, but it also shouldn't make a functional difference...
Updated•7 years ago
|
Comment 4•7 years ago
|
||
Ah, I do see the nsIFrame
list method takes a char* as its second arg. But your patch is touching calls on nsIContent as well on nsIFrame (the first call, at least). So, those changes need to be omitted from the patch.
Updated•7 years ago
|
Assignee | ||
Comment 5•7 years ago
|
||
Ah, I didn't aware some of the callers are nsIContent*. The buggy callers are nsContainerFrame::List()
with definition:
void List(FILE* out = stderr, const char* aPrefix = "",
uint32_t aFlags = 0)
I should either rewrite the comment or fix only those buggy ones.
Comment 6•7 years ago
|
||
Yeah, it'd probably be fine to simplify the non-buggy nsIContent calls as well. But (per nits on phabricator) that should happen separately, to avoid grouping kinda-unrelated functional changes & non-functional changes together.
Updated•7 years ago
|
Comment 8•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/918042a8eb34
https://hg.mozilla.org/mozilla-central/rev/3eafb595be4f
Description
•