Source/WebKit2/ChangeLog

 12011-05-29 Noam Rosenthal <noam.rosenthal@nokia.com>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
 6 https://bugs.webkit.org/show_bug.cgi?id=61694
 7
 8 Add WebCore::Length and WebCore::TransformationMatrix to the types that use SimpleArgumentCoder.
 9
 10 * Scripts/webkit2/messages.py:
 11 * Shared/WebCoreArgumentCoders.h:
 12
1132011-05-26 Chris Fleizach <cfleizach@apple.com>
214
315 Reviewed by Darin Adler.

Source/WebKit2/Scripts/webkit2/messages.py

@@def headers_for_type(type):
444444 'WebCore::CompositionUnderline': '<WebCore/Editor.h>',
445445 'WebCore::GrammarDetail': '<WebCore/TextCheckerClient.h>',
446446 'WebCore::KeypressCommand': '<WebCore/KeyboardEvent.h>',
 447 'WebCore::Length': '<WebCore/Length.h>',
447448 'WebCore::PluginInfo': '<WebCore/PluginData.h>',
448449 'WebCore::TextCheckingResult': '<WebCore/TextCheckerClient.h>',
 450 'WebCore::TransformationMatrix': '<WebCore/TransformationMatrix.h>',
449451 'WebKit::WebGestureEvent': '"WebEvent.h"',
450452 'WebKit::WebKeyboardEvent': '"WebEvent.h"',
451453 'WebKit::WebMouseEvent': '"WebEvent.h"',

Source/WebKit2/Shared/WebCoreArgumentCoders.h

4242#include <WebCore/GraphicsContext.h>
4343#include <WebCore/IntRect.h>
4444#include <WebCore/KeyboardEvent.h>
 45#include <WebCore/Length.h>
4546#include <WebCore/PluginData.h>
4647#include <WebCore/ProtectionSpace.h>
4748#include <WebCore/ResourceError.h>
4849#include <WebCore/ResourceRequest.h>
4950#include <WebCore/TextCheckerClient.h>
 51#include <WebCore/TransformationMatrix.h>
5052#include <WebCore/ViewportArguments.h>
5153#include <WebCore/WindowFeatures.h>
5254#include <limits>
5355
 56
5457namespace CoreIPC {
5558
5659template<> struct ArgumentCoder<WebCore::IntPoint> : SimpleArgumentCoder<WebCore::IntPoint> { };

@@template<> struct ArgumentCoder<WebCore::ViewportArguments> : SimpleArgumentCode
6164template<> struct ArgumentCoder<WebCore::FloatPoint> : SimpleArgumentCoder<WebCore::FloatPoint> { };
6265template<> struct ArgumentCoder<WebCore::FloatSize> : SimpleArgumentCoder<WebCore::FloatSize> { };
6366template<> struct ArgumentCoder<WebCore::FloatRect> : SimpleArgumentCoder<WebCore::FloatRect> { };
 67template<> struct ArgumentCoder<WebCore::Length> : SimpleArgumentCoder<WebCore::Length> { };
 68template<> struct ArgumentCoder<WebCore::TransformationMatrix> : SimpleArgumentCoder<WebCore::TransformationMatrix> { };
6469
6570template<> struct ArgumentCoder<WebCore::MimeClassInfo> {
6671 static void encode(ArgumentEncoder* encoder, const WebCore::MimeClassInfo& mimeClassInfo)