| Index: Source/modules/gamepad/GamepadCommon.cpp
|
| diff --git a/Source/core/css/DocumentFontFaceSet.cpp b/Source/modules/gamepad/GamepadCommon.cpp
|
| similarity index 78%
|
| copy from Source/core/css/DocumentFontFaceSet.cpp
|
| copy to Source/modules/gamepad/GamepadCommon.cpp
|
| index a5952c64b271f9d5cc186f1a38b1298b202676de..bab5498cce811152f829b12ba94ade8b99e8e00c 100644
|
| --- a/Source/core/css/DocumentFontFaceSet.cpp
|
| +++ b/Source/modules/gamepad/GamepadCommon.cpp
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2013, Google Inc. All rights reserved.
|
| + * Copyright (C) 2011, Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are met:
|
| @@ -24,15 +24,25 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/css/DocumentFontFaceSet.h"
|
| -
|
| -#include "core/css/FontFaceSet.h"
|
| +#include "modules/gamepad/GamepadCommon.h"
|
|
|
| namespace WebCore {
|
|
|
| -PassRefPtr<FontFaceSet> DocumentFontFaceSet::fonts(Document& document)
|
| +GamepadCommon::GamepadCommon()
|
| + : m_index(0)
|
| + , m_timestamp(0)
|
| +{
|
| +}
|
| +
|
| +GamepadCommon::~GamepadCommon()
|
| +{
|
| +}
|
| +
|
| +void GamepadCommon::setAxes(unsigned count, const float* data)
|
| {
|
| - return FontFaceSet::from(document);
|
| + m_axes.resize(count);
|
| + if (count)
|
| + std::copy(data, data + count, m_axes.begin());
|
| }
|
|
|
| } // namespace WebCore
|
|
|