Extended Color Cleanup: Move Color coder definitions to Color to allow for future...
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 May 2020 03:52:07 +0000 (03:52 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 May 2020 03:52:07 +0000 (03:52 +0000)
commit6ded7413b6361f92448770425b8fd5cd0f2bc5a1
tree0dfd5f4209d22713db6010d0a127a1ff3cafbc08
parentbc35adc6bf147f6a8b8033349beacf14e25fc6f0
Extended Color Cleanup: Move Color coder definitions to Color to allow for future encaspulation improvements
https://bugs.webkit.org/show_bug.cgi?id=212247

Reviewed by Simon Fraser.

Move IPC encoder/decoder definitions from WebKit down into Color itself to move closer
to making Color::rgb() private.

Source/WebCore:

* platform/graphics/Color.h:
(WebCore::Color::encode const):
(WebCore::Color::decode):

Source/WebKit:

* Shared/WebCoreArgumentCoders.cpp:
(IPC::ArgumentCoder<Color>::encode): Deleted.
(IPC::ArgumentCoder<Color>::decode): Deleted.
* Shared/WebCoreArgumentCoders.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@262045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/Color.h
Source/WebKit/ChangeLog
Source/WebKit/Shared/WebCoreArgumentCoders.cpp
Source/WebKit/Shared/WebCoreArgumentCoders.h