Use toSize() to convert from Int/FloatPoint to Int/FloatSize
Created attachment 181142 [details] Patch
Using toSize() seems easier to read than using operator- with a zero Int/FloatPoint.
Created attachment 181475 [details] Patch
Comment on attachment 181475 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=181475&action=review > Source/WebCore/platform/graphics/FloatPoint.h:266 > +inline FloatSize toSize(const FloatPoint& a) Maybe toFloatSize() is a better name? Other method names around here clarify Int or Float.
Comment on attachment 181475 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=181475&action=review >> Source/WebCore/platform/graphics/FloatPoint.h:266 >> +inline FloatSize toSize(const FloatPoint& a) > > Maybe toFloatSize() is a better name? Other method names around here clarify Int or Float. Sure. I'll rename IntSize toSize(const IntPoint&) in a follow-up patch.
Comment on attachment 181475 [details] Patch OK, please fix it in a follow-up patch.
Created attachment 181639 [details] Patch
Created attachment 181647 [details] Patch
rebased
Comment on attachment 181647 [details] Patch Clearing flags on attachment: 181647 Committed r139037: <http://trac.webkit.org/changeset/139037>
All reviewed patches have been landed. Closing bug.