[Webkit-unassigned] [Bug 41190] Canvas: Don't paint with empty radial gradients

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 1 12:58:03 PDT 2010


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


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #60275|review?, commit-queue?      |review+, commit-queue+
               Flag|                            |




--- Comment #4 from Darin Adler <darin at apple.com>  2010-07-01 12:58:03 PST ---
(From update of attachment 60275)
> -        bool isZeroSize() const { return m_p0.x() == m_p1.x() && m_p0.y() == m_p1.y(); }
> +        bool isZeroSize() const { return m_p0.x() == m_p1.x() && m_p0.y() == m_p1.y() && (m_radial ? m_r0 == m_r1 : true); }

I think it would read better as:

    (!m_radial || m_r0 == m_r1)

-- 
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