Closed Bug 941220 Opened 11 years ago Closed 11 years ago

Call GetVisualOverflowRectRelativeToSelf() once instead of three times in nsIFrame::BuildDisplayListForStackingContext

Categories

(Core :: Layout, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

Details

(Keywords: perf, Whiteboard: [qa-])

Attachments

(2 files)

http://hg.mozilla.org/mozilla-central/annotate/7c730b25a3df/layout/generic/nsFrame.cpp#l1814
calls GetVisualOverflowRectRelativeToSelf() three times in the worst case,
on line 1824, 1834 and 1838.

(found while analyzing the SVG perf problem in in bug 931422)

https://tbpl.mozilla.org/?tree=Try&rev=ec0b0c20db53
Attached patch fixSplinter Review
Attachment #8337059 - Flags: review?(roc)
Attached patch part 2Splinter Review
Sorry to bother you again but I realized there's no point in clearing
'dirtyRect' in case we're returning.  (I'll fold this into the first
part before landing.)
Attachment #8337261 - Flags: review?(roc)
https://hg.mozilla.org/mozilla-central/rev/9d4fbec564ab
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: