[Webkit-unassigned] [Bug 42653] IntSize / FloatSize: add invalid() and isValid() helper methods

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 20 11:21:56 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42653





--- Comment #3 from Antonio Gomes <tonikitoo at webkit.org>  2010-07-20 11:21:56 PST ---
(In reply to comment #2)
> This use of -1,-1 as a magic value seems questionable to me, even though Qt uses it.

In fact qt does not use it as there is not static invalid method in QSize.

If we decide to not go for adding invalid() since -1,-1 is in fact "magic", I can keep using IntSize(-1, -1) where appropriated.

However, least isValid() seems useful. It does have a different meaning from isEmpty and isZero.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list