+2015-01-23 Brent Fulgham <bfulgham@apple.com>
+
+ [Win] Cursor copy constructor does not initialize scale factor
+ https://bugs.webkit.org/show_bug.cgi?id=140849
+
+ Reviewed by Antti Koivisto.
+
+ Found by fast/events/mouse-cursor-image-set.html
+
+ Make sure the scale factor is captured during copy construction. Also make sure
+ it is properly initialized in the default constructor, since it it used in the
+ Windows port for some default cursors.
+
+ * platform/CursorWin.h:
+ * platform/win/CursorWin.cpp:
+ (WebCore::Cursor::Cursor): Make sure copy constructor captures
+ the scale factor.
+
2015-01-23 Benjamin Poulain <bpoulain@apple.com>
Add pointer/hover media queries
// This is an invalid Cursor and should never actually get used.
: m_type(static_cast<Type>(-1))
, m_platformCursor(0)
+#if ENABLE(MOUSE_CURSOR_SCALE)
+ , m_imageScaleFactor(1)
+#endif
#endif // !PLATFORM(IOS)
{
}
: m_type(other.m_type)
, m_image(other.m_image)
, m_hotSpot(other.m_hotSpot)
+#if ENABLE(MOUSE_CURSOR_SCALE)
+ , m_imageScaleFactor(other.m_imageScaleFactor)
+#endif
, m_platformCursor(other.m_platformCursor)
{
}