Loading
Bug 1494924. SetPaintRect to GetBuildingRect(). r=mattwoodrow
Instead of setting the item PaintRect to paintBounds we intersect it with the BuildingRect. This properly reduces the size based on clips and gives a big performance improvement for clipped nsDisplayFilter items because we call CreateSimiliar surface for the size of building rect instead of the bounds of the item. Differential Revision: https://phabricator.services.mozilla.com/D17179