Closed Bug 1879371 Opened 8 months ago Closed 8 months ago

Add a helper for placing repeated table footer

Categories

(Core :: Layout: Tables, task)

task

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(2 files)

We have this piece of code repeated in nsTableFrame::ReflowChildren five times. It would be nice to add a helper for it.

        if (allowRepeatedFooter) {
          PlaceRepeatedFooter(aReflowInput, tfoot, footerBSize);
        } else if (tfoot && tfoot->IsRepeatable()) {
          tfoot->SetRepeatable(false);
        }

https://searchfox.org/mozilla-central/rev/54c9b4896fdc1e858cd4942f306d877f1f3d195e/layout/tables/nsTableFrame.cpp#2719-2723

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

This patch shouldn't change behavior. There was a callsite missed
SetRepeatable(false) when the repeated table footer is not allowed, but I
think it was an oversight rather than intentional.

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2ad5f692c7a6 Part 1 - Move a comment closer to its code in nsTableFrame::ReflowChildren(). r=jwatt https://hg.mozilla.org/integration/autoland/rev/eb96f3043bf6 Part 2 - Add a helper for placing repeated table footer avoid code duplication. r=jwatt
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: