Closed
Bug 618788
Opened 14 years ago
Closed 14 years ago
Not initialized used in CairoImageOGL::SetData
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: romaxa, Assigned: romaxa)
References
Details
Attachments
(2 files)
830 bytes,
patch
|
vlad
:
review+
roc
:
approval2.0+
|
Details | Diff | Splinter Review |
1.00 KB,
patch
|
roc
:
review+
roc
:
approval2.0+
|
Details | Diff | Splinter Review |
Problem is that mSize not initialized in ctor. and After ctor we usually call ::SetData and that is comparing mSize with new Size... but mSize not initialized. Also this cause sometime wrong logic executed... because mSize initialized from previous class (destroyed before)
Attachment #497235 -
Flags: review?(vladimir)
Attachment #497235 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 1•14 years ago
|
||
Comment on attachment 497235 [details] [diff] [review] Initialize mSize Safe enough
Attachment #497235 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #497235 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Updated•14 years ago
|
Assignee: nobody → romaxa
This patch is fine, but I don't think it's really the best fix for the bug. CairoImage::SetData should only be called once for any given CairoImage object, because Images are supposed to be immutable. So the mSize != aData.mSize check should simply be removed.
Updated•14 years ago
|
Attachment #497235 -
Flags: approval2.0+ → approval2.0?
Comment on attachment 497235 [details] [diff] [review] Initialize mSize No really, I think this is fine, but I think we should also remove the unnecessary code.
Attachment #497235 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 4•14 years ago
|
||
Actually this is what I have done in the beginning...
Attachment #497741 -
Flags: review?(vladimir)
Assignee | ||
Comment 5•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/722ffb1a0920
Keywords: checkin-needed
Assignee | ||
Comment 6•14 years ago
|
||
do we want single SetData per image still or should I close this bug?
We should land your patch here.
Attachment #497741 -
Flags: review?(vladimir)
Attachment #497741 -
Flags: review+
Attachment #497741 -
Flags: approval2.0+
Assignee | ||
Comment 8•14 years ago
|
||
Else condition was already removed... A bit modified patch removing mSize check completely. Pushed in my patch queue... http://hg.mozilla.org/users/romaxa_gmail.com/workbase_prc2/file/346821a07889/bug618788_remove_size_check.diff
Assignee | ||
Comment 9•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/92e1764dc180
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•