Open Bug 1526960 Opened 5 years ago Updated 1 year ago

Do not keep a reference to ComputedStyle in nsDisplayBackgroundColor and nsDisplayBackgroundImage

Categories

(Core :: Web Painting, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: mikokm, Unassigned)

References

(Blocks 1 open bug)

Details

For nsDisplayBackgroundColor we only seem to use mBackgroundStyle->StyleBackground()->mImage.mLayers[0].mClip, which is an enum.

(In reply to Miko Mynttinen [:miko] from comment #0)

For nsDisplayBackgroundColor we only seem to use mBackgroundStyle->StyleBackground()->mImage.mLayers[0].mClip, which is an enum.

nsDisplayBackgroundColor::GetOpaqueRegion() uses mBackgroundStyle->StyleBackground()->BottomLayer().mClip AKA BackgroundStyle->StyleBackground()->mImage.mLayers[mImageCount - 1].mClip at nsDisplayList.cpp:4706

Priority: P1 → P2
Depends on: 1534450
Blocks: small-dl
No longer blocks: 1204549
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.