[Win][Clang] Add FloatRect(const RECT&) constructor
authorHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Sep 2018 05:12:44 +0000 (05:12 +0000)
committerHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Sep 2018 05:12:44 +0000 (05:12 +0000)
commit3337ddf7981adbe79367510acf6fd39ffcc8b14f
tree1f4cb2a312ae6ed452d3e64e8b2a6e71bad0764b
parent01ac4b382b26930bd81d7e0635fe96f9ba643dd6
[Win][Clang] Add FloatRect(const RECT&) constructor
https://bugs.webkit.org/show_bug.cgi?id=189398

Reviewed by Alex Christensen.

While trying to build WebKit WinCairo port with the latest Clang
(Bug 171618), the following compilation errors were reported.

  error: no viable conversion from returned value of type 'RECT' (aka 'tagRECT') to function return type 'WebCore::FloatRect'

No new tests (No behavior change).

* platform/graphics/FloatRect.h:
* platform/graphics/win/FloatRectDirect2D.cpp:
(WebCore::FloatRect::FloatRect): Added a new constructor taking a RECT as the argument.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/FloatRect.h
Source/WebCore/platform/graphics/win/FloatRectDirect2D.cpp