Closed
Bug 449653
Opened 16 years ago
Closed 16 years ago
drawWindow on canvas fails on load, draws white instead of specified region
Categories
(Core :: Graphics: Canvas2D, defect)
Core
Graphics: Canvas2D
Tracking
()
RESOLVED
FIXED
mozilla1.9.1a2
People
(Reporter: martijn.martijn, Assigned: martijn.martijn)
References
Details
(Keywords: testcase)
Attachments
(2 files)
847 bytes,
text/html
|
Details | |
3.99 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
See testcase, it uses enhanced privileges, so you need to download it to your computer. Canvas.drawWindow draws white for some reason after an onload event, while it just works fine if you use the method after the page has loaded.
Comment 1•16 years ago
|
||
So our display list builder IsBackgroundOnly(). We should really unsuppress painting _before_ firing onload, shouldn't we?
Comment 2•16 years ago
|
||
Alternately, we should ignore paint suppression for drawWindow or something.
Yeah, I think we should.
Martijn, can you write the patch? Just make nsPresShell::RenderDocument set nsDisplayListBuilder's mIsBackgroundOnly to false, via a new setter method in nsDisplayListBuilder.
Assignee | ||
Comment 5•16 years ago
|
||
The reftest getting checked in would depend on bug 448676 or related one being fixed.
Attachment #334119 -
Flags: review?(roc)
Comment on attachment 334119 [details] [diff] [review] patch I assume you tested this and it works :-)
Attachment #334119 -
Flags: superreview+
Attachment #334119 -
Flags: review?(roc)
Attachment #334119 -
Flags: review+
Comment 7•16 years ago
|
||
Pushed this, with the test disabled. The test I added in bug 449781 handles testing this, but I think we should still get the reftests in.
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Updated•16 years ago
|
Target Milestone: --- → mozilla1.9.1a2
Updated•16 years ago
|
OS: Windows XP → All
Hardware: PC → All
You need to log in
before you can comment on or make changes to this bug.
Description
•