Closed Bug 766298 Opened 12 years ago Closed 12 years ago

Implement InvalidateFrameSubtree in terms of InvalidateOverflowRect

Categories

(Core :: Layout, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ehsan.akhgari, Unassigned)

Details

(Whiteboard: [mentor=ehsan][lang=c++])

Attachments

(1 file)

void
nsIFrame::InvalidateFrameSubtree()
{
  Invalidate(GetVisualOverflowRectRelativeToSelf());
  FrameLayerBuilder::InvalidateThebesLayersInSubtree(this);
}

void
nsIFrame::InvalidateOverflowRect()
{
  Invalidate(GetVisualOverflowRectRelativeToSelf());
}

This duplication of the call to Invalidate makes very little sense.
Whiteboard: [mentor=ehsan][lang=c++]
Attached patch Patch(v1)Splinter Review
Attachment #635237 - Flags: feedback?(ehsan)
Comment on attachment 635237 [details] [diff] [review]
Patch(v1)

Review of attachment 635237 [details] [diff] [review]:
-----------------------------------------------------------------

Looks great, thanks!
Attachment #635237 - Flags: review?(roc)
Attachment #635237 - Flags: feedback?(ehsan)
Attachment #635237 - Flags: feedback+
Comment on attachment 635237 [details] [diff] [review]
Patch(v1)

Review of attachment 635237 [details] [diff] [review]:
-----------------------------------------------------------------

Actually, no.

The patch is fine, but this code goes away with DLBI and the only effect of landing it will be to cause mattwoodrow more rebase churn. Let's not do that.

If the patch had some positive effect other than minor code cleanup, I wouldn't do this, but it doesn't.
Attachment #635237 - Flags: review+ → review-
Right.  Sorry Jignesh, I should have realized this before...
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: