Closed Bug 1819211 Opened 2 years ago Closed 2 years ago

Minor clean up for Baseline.h

Categories

(Core :: Layout: Block and Inline, task)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

Attachments

(2 files)

See the upcoming patch for the detail.

It is because Baseline is a utility class under namespace mozilla.

Also change the include guard to match the coding style.
https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_cpp.html#header-files

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

The documentation for these functions might be missed when these functions was
moved from nsIFrame.h to Baseline.h in
https://hg.mozilla.org/mozilla-central/rev/fbf495c37e23.

I also revise the documentation because the old ones might be wrong. Here are
some corrections.

  1. An alphabetical "first"/"last" baseline should be at the "end"/"start" edge
    of a margin/border/content-box.
  2. SynthesizeBOffsetFromBorderBox() works when aFrame's writing-mode is
    orthogonal to aWM, but the other two functions are not.

Depends on D171162

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d214e7da664e Export Baseline.h under mozilla. r=emilio https://hg.mozilla.org/integration/autoland/rev/c8925446ab89 Revise documentation in Baseline.h. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: