Remove DEFINE_BASICSHAPE_TYPE_CASTS use from basic_shapes.h

The primary motivation of this CL is to replace
|ToBasicShapeCircle| with |To<BasicShapeCircle>|,
|ToBasicShapeEllipse| with |To<BasicShapeEllipse>|,
|ToBasicShapeInset| with |To<BasicShapeInset>|,
|ToBasicShapePolygon| with |To<BasicShapePolygon>|

This CL also ports other dependent files to refer to a new template
function name.

Bug: 891908
Change-Id: I2225a79a5198d3287893b3a0ccd1cc5168810423
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1535076
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Abhijeet Kandalkar <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#643391}
5 files changed