[chromium] Clamp negative sizes to zero when converting to gfx:: types
https://bugs.webkit.org/show_bug.cgi?id=102159
Reviewed by James Robinson.
Here we clamp Rect, RectF and Size types to not have negative widths or
heights. WebSizes that you want to keep their negative values, because
they are vectors, should be converted to Vector2d instead.
* chromium/public/WebFloatRect.h:
(WebKit::WebFloatRect::operator gfx::RectF):
* chromium/public/WebRect.h:
(WebKit::WebRect::operator gfx::Rect):
* chromium/public/WebSize.h:
(WebKit::WebSize::operator gfx::Size):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk/Source/Platform/chromium/public@134725 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3 files changed