Coalesce calls to mFrame->StyleDisplay() in FloatInfo constructor

RESOLVED FIXED in Firefox 62

Status

()

P3
normal
RESOLVED FIXED
11 months ago
9 months ago

People

(Reporter: dholbert, Assigned: TYLin)

Tracking

Trunk
mozilla62
Points:
---

Firefox Tracking Flags

(firefox61 wontfix, firefox62 fixed)

Details

Attachments

(1 attachment)

(Reporter)

Description

11 months ago
Followup to bug 1265342 -- as of "Part 3" there, it looks like the FloatInfo constructor will be calling "mFrame->StyleDisplay()" up to 3 times.

The first time we need to call it, let's save it in a local variable, e.g.
   const nsStyleDisplay* disp = mFrame->StyleDisplay()

...and then use that rather than making calls to the function below.


(Trivial nit, but doesn't need to hold up bug 1265342 & I don't want it to get in the way of any less-trivial nits, so filing as a followup.)
Priority: -- → P3
(Reporter)

Comment 2

9 months ago
mozreview-review
Comment on attachment 8984842 [details]
Bug 1455453 - Coalesce calls to mFrame->StyleDisplay() in FloatInfo constructor.

https://reviewboard.mozilla.org/r/250642/#review256928

Looks good! Thanks TYLin :)
Attachment #8984842 - Flags: review?(dholbert) → review+

Comment 3

9 months ago
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/ffdeb96ca6d0
Coalesce calls to mFrame->StyleDisplay() in FloatInfo constructor. r=dholbert
(Assignee)

Comment 4

9 months ago
Thanks for the review :)
Assignee: bwerth → aethanyc
Status: NEW → ASSIGNED

Comment 5

9 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/ffdeb96ca6d0
Status: ASSIGNED → RESOLVED
Last Resolved: 9 months ago
status-firefox62: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
status-firefox61: affected → wontfix
You need to log in before you can comment on or make changes to this bug.