Closed
Bug 666068
Opened 13 years ago
Closed 13 years ago
Avoid calling UsingEffectsForFrame() on SVG content
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla7
People
(Reporter: jrmuizel, Assigned: longsonr)
Details
(Keywords: perf)
Attachments
(1 file, 1 obsolete file)
931 bytes,
patch
|
Details | Diff | Splinter Review |
On the SVG rotating tiger we spend about 0.9% of the time in UsingEffectsForFrame() which always returns false for svg content. We could avoid calling this by hanging a flag on the frame that would mark whether we are an SVG frame or not.
Comment 1•13 years ago
|
||
I'm actually pretty surprised that we don't have this flag already. It may also be useful in other pieces of our generic layout code where we do SVG specific hacks.
Comment 2•13 years ago
|
||
Where are we calling it from? Invalidation, or something else?
Reporter | ||
Comment 3•13 years ago
|
||
(In reply to comment #2) > Where are we calling it from? Invalidation, or something else? Invalidation.
Comment 4•13 years ago
|
||
So bug 614732 might get us that "for free".
Comment 5•13 years ago
|
||
Sounds like it's just a case of adding an |frame->IsFrameOfType(nsIFrame::eSVG)| check. Either that or wait to see if bug 614732 or its followups fix this as bz says.
Assignee | ||
Comment 6•13 years ago
|
||
Should we just reorder the UsingEffectsForFrame() method in nsSVGIntegrationUtils so that it checks for a SVG frame first rather than last?
Assignee | ||
Comment 7•13 years ago
|
||
Attachment #541060 -
Flags: feedback?(bugzmuiz)
Assignee | ||
Updated•13 years ago
|
Attachment #541060 -
Flags: feedback?(bugzmuiz) → feedback?(jmuizelaar)
Reporter | ||
Comment 8•13 years ago
|
||
Comment on attachment 541060 [details] [diff] [review] like so? IsFrameOfType is still going to be a virtual call, but this patch seems like pure win.
Attachment #541060 -
Flags: feedback?(jmuizelaar) → feedback+
Assignee | ||
Updated•13 years ago
|
Attachment #541060 -
Flags: review?(jwatt)
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → longsonr
Updated•13 years ago
|
Attachment #541060 -
Flags: review?(jwatt) → review+
Assignee | ||
Comment 9•13 years ago
|
||
Attachment #541060 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Flags: in-testsuite-
Keywords: checkin-needed,
perf
Comment 11•13 years ago
|
||
Pushed: http://hg.mozilla.org/mozilla-central/rev/7bb02cc447e0
Status: NEW → RESOLVED
Closed: 13 years ago
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•