Closed Bug 450297 Opened 16 years ago Closed 16 years ago

show pattern when browser canvas has been scrolled away

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
fennec1.0a1

People

(Reporter: blassey, Assigned: blassey)

References

(Depends on 1 open bug)

Details

(Keywords: mobile, perf)

Attachments

(3 files, 2 obsolete files)

      No description provided.
can you layout guys take a look at this test and see if you have any idea why it is so slow?
Assignee: nobody → jag
Component: General → XUL
Keywords: mobile, perf
Product: Fennec → Core
QA Contact: general → xptoolkit.widgets
What test did you have in mind?
hrm, wrong bug:/
Assignee: jag → nobody
Component: XUL → General
Product: Core → Fennec
QA Contact: xptoolkit.widgets → general
Depends on: 450400
brad: can you post your patch that does this using backgroundPosition on the stack as well?
Assignee: nobody → blassey
Flags: wanted-fennec1.0+
Target Milestone: --- → Fennec A1
Attachment #333444 - Flags: review?(gavin.sharp)
Comment on attachment 333444 [details] [diff] [review]
checkerboard canvas

Since the background image fixes aren't coming any time soon, let's get this in now and we can swap out for the other version later
Given Jeff's comment in bug 450400, do we want to go with the background image patch now?
Attachment #335654 - Flags: review?(gavin.sharp)
Attachment #333444 - Flags: review?(gavin.sharp) → review-
Comment on attachment 333444 [details] [diff] [review]
checkerboard canvas

lets use the other patch instead
Comment on attachment 335654 [details] [diff] [review]
moves a background image around on that stack

drive-by comments:

-        <xul:stack anonid="cstack" flex="1" style="overflow: hidden;">
+        <xul:stack anonid="cstack" flex="1" style="overflow: hidden; background-image:url('chrome://browser/content/checkerboard.png')">


the background-image should be in some css file

Maybe make updateCanvasPosition() call updateCheckerboard() directly to avoid having to keep them in sync?
Comment on attachment 335654 [details] [diff] [review]
moves a background image around on that stack

r=me with stuart's comments fixed, and tested to make sure it doesn't kill perf.
Attachment #335654 - Flags: review?(gavin.sharp) → review+
Attachment #335654 - Attachment is obsolete: true
Attachment #342022 - Flags: review?(pavlov)
Attachment #342022 - Attachment is obsolete: true
Attachment #342023 - Flags: review?(pavlov)
Attachment #342022 - Flags: review?(pavlov)
Comment on attachment 342023 [details] [diff] [review]
uses browser.css to set background image

gavin: this looks right to me, but which browser.css should the background go in to?  the skin one or the content one?
Attachment #342023 - Flags: review?(pavlov) → review?(gavin.sharp)
Comment on attachment 342023 [details] [diff] [review]
uses browser.css to set background image

>diff --git a/chrome/content/browser.css b/chrome/content/browser.css

>+div[anonid="viewport"] {
>+   background-image:url('chrome://browser/content/checkerboard.png')	

Actually this belongs in deckbrowser.css, which I just realized no longer exists even though we still reference it. Just leave it in deckbrowser.xml for now (like the previous patch).
Attachment #342023 - Flags: review?(gavin.sharp) → review+
Comment on attachment 342022 [details] [diff] [review]
updated for comments and bit rot

carrying gavin's r+ backwards
Attachment #342022 - Flags: review+
Attachment #342022 - Attachment is obsolete: false
Attachment #342023 - Attachment is obsolete: true
Attached image checkerboard pattern
madhava, just wanted to run this by you before committing it
Attachment #342090 - Flags: ui-review?
Attachment #342090 - Flags: ui-review? → ui-review?(madhava)
Attachment #342090 - Flags: ui-review?(madhava) → ui-review+
changeset:   227:21f625bd9726
tag:         tip
user:        Brad Lassey <blassey@mozilla.com>
date:        Tue Oct 07 12:28:45 2008 -0400
summary:     Bug 450297 -  show pattern when browser canvas has been scrolled away r=gavin
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
verfied with beta3
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: