WebKit Bugzilla
Attachment 349117 Details for
Bug 189398
: [Win][Clang] Add FloatRect(const RECT&) constructor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-189398-20180907162427.patch (text/plain), 2.26 KB, created by
Fujii Hironori
on 2018-09-07 00:24:28 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Fujii Hironori
Created:
2018-09-07 00:24:28 PDT
Size:
2.26 KB
patch
obsolete
>Subversion Revision: 235722 >diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog >index 79bb5925029d404addd1c46bcfc010b480b78307..0614046fb1e9d1f6ebe66df696e34b747b5d38ea 100644 >--- a/Source/WebCore/ChangeLog >+++ b/Source/WebCore/ChangeLog >@@ -1,3 +1,21 @@ >+2018-09-07 Fujii Hironori <Hironori.Fujii@sony.com> >+ >+ [Win][Clang] Add FloatRect(const RECT&) constructor >+ https://bugs.webkit.org/show_bug.cgi?id=189398 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ 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. >+ > 2018-09-05 Youenn Fablet <youenn@apple.com> > > Move ownership of outgoing source to RTCRtpSender backend >diff --git a/Source/WebCore/platform/graphics/FloatRect.h b/Source/WebCore/platform/graphics/FloatRect.h >index 8d19f7f862ef4adc6b754cdce16072ebd3fe200e..062411260030b13623192a463dbd8b6fe3f33488 100644 >--- a/Source/WebCore/platform/graphics/FloatRect.h >+++ b/Source/WebCore/platform/graphics/FloatRect.h >@@ -195,6 +195,7 @@ public: > #endif > > #if PLATFORM(WIN) >+ WEBCORE_EXPORT FloatRect(const RECT&); > WEBCORE_EXPORT FloatRect(const D2D1_RECT_F&); > WEBCORE_EXPORT operator D2D1_RECT_F() const; > #endif >diff --git a/Source/WebCore/platform/graphics/win/FloatRectDirect2D.cpp b/Source/WebCore/platform/graphics/win/FloatRectDirect2D.cpp >index 88d05e69538e7f94104778e3ebefd7aa469dbc27..36f7f8d4cfe0023ade134a7a7f4d59ac5871e7e1 100644 >--- a/Source/WebCore/platform/graphics/win/FloatRectDirect2D.cpp >+++ b/Source/WebCore/platform/graphics/win/FloatRectDirect2D.cpp >@@ -50,6 +50,12 @@ static bool isInfiniteRect(const D2D1_RECT_F& rect) > return true; > } > >+FloatRect::FloatRect(const RECT& rect) >+ : m_location(rect.left, rect.top) >+ , m_size(rect.right - rect.left, rect.bottom - rect.top) >+{ >+} >+ > FloatRect::FloatRect(const D2D1_RECT_F& r) > { > // Infinite Rect case:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 189398
:
349117
|
349293