Closed
Bug 1455453
Opened 6 years ago
Closed 6 years ago
Coalesce calls to mFrame->StyleDisplay() in FloatInfo constructor
Categories
(Core :: Layout, enhancement, P3)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla62
People
(Reporter: dholbert, Assigned: TYLin)
References
Details
Attachments
(1 file)
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.)
Updated•6 years ago
|
Priority: -- → P3
Comment hidden (mozreview-request) |
Reporter | ||
Comment 2•6 years 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+
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•6 years ago
|
||
Thanks for the review :)
Assignee: bwerth → aethanyc
Status: NEW → ASSIGNED
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ffdeb96ca6d0
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Updated•6 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•