Index: Source/core/page/DragController.cpp |
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp |
index 075b45c3f4358a4a8e48d00d5de861adf7af7303..32fd86e248e99bee0ff3ab1f54be4165467e1238 100644 |
--- a/Source/core/page/DragController.cpp |
+++ b/Source/core/page/DragController.cpp |
@@ -110,13 +110,11 @@ static bool dragTypeIsValid(DragSourceAction action) |
static PlatformMouseEvent createMouseEvent(DragData* dragData) |
{ |
- bool shiftKey, ctrlKey, altKey, metaKey; |
- shiftKey = ctrlKey = altKey = metaKey = false; |
int keyState = dragData->modifierKeyState(); |
- shiftKey = static_cast<bool>(keyState & PlatformEvent::ShiftKey); |
- ctrlKey = static_cast<bool>(keyState & PlatformEvent::CtrlKey); |
- altKey = static_cast<bool>(keyState & PlatformEvent::AltKey); |
- metaKey = static_cast<bool>(keyState & PlatformEvent::MetaKey); |
+ bool shiftKey = static_cast<bool>(keyState & PlatformEvent::ShiftKey); |
+ bool ctrlKey = static_cast<bool>(keyState & PlatformEvent::CtrlKey); |
+ bool altKey = static_cast<bool>(keyState & PlatformEvent::AltKey); |
+ bool metaKey = static_cast<bool>(keyState & PlatformEvent::MetaKey); |
return PlatformMouseEvent(dragData->clientPosition(), dragData->globalPosition(), |
LeftButton, PlatformEvent::MouseMoved, 0, shiftKey, ctrlKey, altKey, |