Index: ui/base/cursor/cursor.cc |
diff --git a/ui/base/cursor/cursor.cc b/ui/base/cursor/cursor.cc |
index 223042e036f2dc667a20f0fdec55b77519a6e306..83963558ad0d2ac9926df3a135ebc83b03e8a00f 100644 |
--- a/ui/base/cursor/cursor.cc |
+++ b/ui/base/cursor/cursor.cc |
@@ -42,9 +42,9 @@ void Cursor::SetPlatformCursor(const PlatformCursor& platform) { |
void Cursor::Assign(const Cursor& cursor) { |
if (*this == cursor) |
return; |
- native_type_ = cursor.native_type_; |
if (native_type_ == kCursorCustom) |
UnrefCustomCursor(); |
+ native_type_ = cursor.native_type_; |
platform_cursor_ = cursor.platform_cursor_; |
if (native_type_ == kCursorCustom) |
RefCustomCursor(); |