Use type-checking FilterOperation casts in CoordinatedGraphicsArgumentCoders.cpp
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 May 2014 18:00:09 +0000 (18:00 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 May 2014 18:00:09 +0000 (18:00 +0000)
commitc9ebcf5c22cfcebf1d147d8c663464752aeb008a
tree1713e8f340847fd9df8d774b8f2fd8f57709cdb3
parent392f26be52cd35a67a39a4924e830a9949267806
Use type-checking FilterOperation casts in CoordinatedGraphicsArgumentCoders.cpp
<http://webkit.org/b/133203>

Reviewed by Simon Fraser.

* Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
(IPC::ArgumentCoder<WebCore::FilterOperations>::encode):
- Replace static_cast<>() operators with type-checking
  FilterOperation casts.
- Replace 'default' statement with 'case' statements so new
  filters added later require an explicit decision to be made.
(IPC::ArgumentCoder<WebCore::FilterOperations>::decode):
- Replace 'default' statement with 'case' statements so new
  filters added later require an explicit decision to be made.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp