Closed Bug 908229 Opened 11 years ago Closed 11 years ago

Make framecounter invalidate widget

Categories

(Core :: Graphics, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 907286

People

(Reporter: mconley, Assigned: BenWa)

Details

Attachments

(1 file)

Attached patch Patch v1Splinter Review
      No description provided.
Attachment #794059 - Flags: review?(jmuizelaar)
Comment on attachment 794059 [details] [diff] [review]
Patch v1

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

I think the view manager might be the wrong place for this place. It feels like it belongs in widget. Are you sure this doesn't impact painting at all?

::: view/src/nsViewManager.cpp
@@ +439,5 @@
> +
> +  // If we draw the frame counter we need to make sure we invalidate the area
> +  // for it to make it on screen
> +  if (gfxPlatform::DrawFrameCounter()) {
> +    r = r.Or(r, nsRect(0, 0, (16 * 3 + 10) * 60, 10 * 60));

You should get the FrameCounter rect from gfxPlatform() and try to make the frame counter size calculation obvious to the users.
Attachment #794059 - Flags: review?(jmuizelaar) → review-
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: