Closed Bug 1368251 Opened 7 years ago Closed 7 years ago

Check frame's NS_FRAME_HAS_INVALID_RECT bit before looking up the InvalidationRect() property

Categories

(Core :: Layout, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

Attachments

(1 file)

From bug 1365982 comment 14:
----------------------------
> nsIFrame::InvalidateFrameSubtree(uint32_t aDisplayItemKey)
>-  nsRect* rect = Properties().Get(InvalidationRect());
>+  nsRect* rect = GetProperty(InvalidationRect());

Hmm, shouldn't we check HasAnyStateBits(NS_FRAME_HAS_INVALID_RECT)
before doing this Get? (and assert a non-null result in that case)
----------------------------
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Attachment #8872085 - Flags: review?(mats) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/6414aec048aea01d726832dec33e83f3d8503f0c
Bug 1368251 - Check frame state bit before looking up InvalidationRect() property. r=mats
https://hg.mozilla.org/mozilla-central/rev/6414aec048ae
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: