The hot callers to this function just need the rect bounds, so compute that directly. Also, use a RegionBuilder instead of mutating an existing Region.
Created attachment 8862931 [details] [diff] [review] Increase the performance of nsDisplayBorder::CalculateBounds
Assignee: nobody → jmuizelaar
Attachment #8862931 - Flags: review?(mstange)
Attachment #8862931 - Flags: review?(mstange) → review+
Did you want to land this Jeff?
Priority: -- → P2
I believe it was failing tests because of the differences between pixman's boxes vs Gecko's rects around overflow.
You need to log in before you can comment on or make changes to this bug.