Closed Bug 1361207 Opened 7 years ago Closed 7 years ago

Call nsIFrame::StyleDisplay less by changing callers of nsIFrame::IsThemed() wherever possible

Categories

(Core :: Layout, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: neerja, Assigned: neerja)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

      No description provided.
Assignee: nobody → npancholi
Blocks: 1351830
Created this bug to make the fix suggested for isThemed() by Jet in Bug 1351830 comment 2
Summary: Call nsIFrame::StyleDisplay less by changing callers of nsIFrame::IsThemed() → Call nsIFrame::StyleDisplay less by changing callers of nsIFrame::IsThemed() wherever possible
Comment on attachment 8863563 [details]
Bug 1361207 - Changed appropriate calls to nsIFrame::IsThemed() to use overload with nsStyleDisplay* as argument to avoid redundant calls to StyleDisplay()

https://reviewboard.mozilla.org/r/135322/#review138286

Just one suggested commit-message tweak -- and with that, r=me, assuming this passes Try.  Thanks!

::: commit-message-57b37:1
(Diff revision 1)
> +Bug 1361207 - Changed appropriate calls to nsIFrame::IsThemed() to use overload with nsStyleDisplay* as argument to avoid unnecessary calls to StyleDisplay()

s/unnecessary/redundant/, to be more precise about what sorts of StyleDisplay() calls we're culling here.  (We still have to make one call, but we don't want to make any more than one.)

Thanks!
Attachment #8863563 - Flags: review?(dholbert) → review+
Pushed by dholbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0581aeb5e3fe
Changed appropriate calls to nsIFrame::IsThemed() to use overload with nsStyleDisplay* as argument to avoid redundant calls to StyleDisplay() r=dholbert
https://hg.mozilla.org/mozilla-central/rev/0581aeb5e3fe
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: