Closed Bug 293543 Opened 20 years ago Closed 20 years ago

RenderOffscreen creates an overlarge drawing surface

Categories

(Core :: Web Painting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(1 file)

nsViewManager::RenderOffscreen creates a drawing surface with dimensions given in twips, but it should pass pixels. This creates a massive offscreen bitmap that we only use a small part of --- wasting resources and risking allocation failures.
Attached patch fixSplinter Review
trivial fix
Attachment #183100 - Flags: superreview?(bzbarsky)
Attachment #183100 - Flags: review?(bzbarsky)
Thanks to James Linden for detecting this, by the way.
Comment on attachment 183100 [details] [diff] [review] fix r+sr=bzbarsky
Attachment #183100 - Flags: superreview?(bzbarsky)
Attachment #183100 - Flags: superreview+
Attachment #183100 - Flags: review?(bzbarsky)
Attachment #183100 - Flags: review+
Comment on attachment 183100 [details] [diff] [review] fix trivial fix with zero risk since this code is not used by regular users
Attachment #183100 - Flags: approval1.8b2?
Comment on attachment 183100 [details] [diff] [review] fix a=shaver.
Attachment #183100 - Flags: approval1.8b2? → approval1.8b2+
checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
(In reply to comment #6) > checked in any chance it is causing http://forums.mozillazine.org/viewtopic.php?p=1451607#1451607 ?
I shouldn't think so. That code should not be executed at all by normal users.
(In reply to comment #8) > I shouldn't think so. That code should not be executed at all by normal users. very odd, a few builds later and it's normal again.
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: