| Index: third_party/WebKit/Source/platform/mojo/GeometryStructTraits.cpp
|
| diff --git a/third_party/WebKit/Source/platform/mojo/GeometryStructTraits.cpp b/third_party/WebKit/Source/platform/mojo/GeometryStructTraits.cpp
|
| index 4ec1c2a4bcc80d62b9bd7447d05fb1d22d94b8a2..fbc1a81eafdb8bbc25ca6ebea3089ba8d1967653 100644
|
| --- a/third_party/WebKit/Source/platform/mojo/GeometryStructTraits.cpp
|
| +++ b/third_party/WebKit/Source/platform/mojo/GeometryStructTraits.cpp
|
| @@ -6,6 +6,28 @@
|
|
|
| namespace mojo {
|
|
|
| +// static
|
| +bool StructTraits<gfx::mojom::RectFDataView, ::blink::WebFloatRect>::Read(
|
| + gfx::mojom::RectFDataView data,
|
| + ::blink::WebFloatRect* out) {
|
| + if (data.width() < 0 || data.height() < 0)
|
| + return false;
|
| + out->x = data.x();
|
| + out->y = data.y();
|
| + out->width = data.width();
|
| + out->height = data.height();
|
| + return true;
|
| +}
|
| +
|
| +// static
|
| +bool StructTraits<gfx::mojom::PointFDataView, ::blink::WebFloatPoint>::Read(
|
| + gfx::mojom::PointFDataView data,
|
| + ::blink::WebFloatPoint* out) {
|
| + out->x = data.x();
|
| + out->y = data.y();
|
| + return true;
|
| +}
|
| +
|
| // static
|
| bool StructTraits<gfx::mojom::SizeDataView, ::blink::WebSize>::Read(
|
| gfx::mojom::SizeDataView data,
|
|
|