Remove DEFINE_TYPE_CASTS use from reference_clip_path_operation.h

The primary motivation of this CL is to replace
|ToReferenceClipPathOperation| with |To<ReferenceClipPathOperation>|
and |ToReferenceClipPathOperationOrNull| with
|DynamicTo<ReferenceClipPathOperation>|. It also ports other dependent
files to refer to a new templated function name.

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