Closed Bug 394279 Opened 16 years ago Closed 15 years ago
Rect::Contains() should always succeed if the parameter rect is empty
from mozilla.dev.tech.layout firstname.lastname@example.org wrote: > On Aug 29, 8:03 am, fantasai <fantasai.li...@inkedblade.net> wrote: >> ... This means an assertion >> frame->GetOverflowRect().Contains(frame->GetRect()) >> will sometimes fail. > > Contains() should always succeed if the parameter rect is empty. > That's a bug, I'll take a patch for that :-) We should fix this :-)
I don't have my msvc properly re-setup yet, so did not actually test the compile, but this should still be right.
sorry, had a moment of mental idiocy (checked if the wrong nsRect was empty in prior patch)
rerequest review when you've tested it
Comment on attachment 278916 [details] [diff] [review] v1.1 tested, appears fine.
Attachment #278916 - Flags: approval1.9? → approval1.9+
Checking in gfx/src/nsRect.cpp; /cvsroot/mozilla/gfx/src/nsRect.cpp,v <-- nsRect.cpp new revision: 3.21; previous revision: 3.20 done
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: nsRect::Contains() should always succeed if the parameter rect is empty. → nsRect::Contains() should always succeed if the parameter rect is empty
Target Milestone: --- → mozilla1.9 M9
You need to log in before you can comment on or make changes to this bug.