| Index: Source/core/platform/graphics/IntPoint.cpp
|
| diff --git a/Source/core/loader/UniqueIdentifier.cpp b/Source/core/platform/graphics/IntPoint.cpp
|
| similarity index 88%
|
| copy from Source/core/loader/UniqueIdentifier.cpp
|
| copy to Source/core/platform/graphics/IntPoint.cpp
|
| index 0ad56563e3e214a67acd8c53decb085ad4250cb9..c4e18b9960ceaccdd0a202986f6d2d8c11c645cf 100644
|
| --- a/Source/core/loader/UniqueIdentifier.cpp
|
| +++ b/Source/core/platform/graphics/IntPoint.cpp
|
| @@ -29,16 +29,16 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/loader/UniqueIdentifier.h"
|
| +#include "core/platform/graphics/IntPoint.h"
|
|
|
| -namespace WebCore {
|
| +#include "wtf/MathExtras.h"
|
|
|
| -static unsigned long s_uniqueIdentifier = 0;
|
| +namespace WebCore {
|
|
|
| -unsigned long createUniqueIdentifier()
|
| +void IntPoint::scale(float sx, float sy)
|
| {
|
| - return ++s_uniqueIdentifier;
|
| + m_x = lroundf(static_cast<float>(m_x * sx));
|
| + m_y = lroundf(static_cast<float>(m_y * sy));
|
| }
|
|
|
| } // namespace WebCore
|
| -
|
|
|