Index: Source/core/platform/chromium/support/WebCursorInfo.cpp |
=================================================================== |
--- Source/core/platform/chromium/support/WebCursorInfo.cpp (revision 162906) |
+++ Source/core/platform/chromium/support/WebCursorInfo.cpp (working copy) |
@@ -46,6 +46,11 @@ |
, externalHandle(0) |
#endif |
{ |
+ if (cursor.image()) { |
+ float hintedScale = customImage.getSkBitmap().width() / (float)cursor.image()->width(); |
+ imageScaleFactor *= hintedScale; |
+ hotSpot = WebPoint(hotSpot.x * hintedScale, hotSpot.y * hintedScale); |
+ } |
} |
} // namespace blink |