Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1238)

Unified Diff: Source/core/page/DragController.cpp

Issue 16599003: :hover style not applied on hover if its display property is different from original style's (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/page/DragController.cpp
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp
index 6faca9b1c053f235b7679cd7ed1858ac6d3c32bc..ffcfe59f0845fbaa3c11df4e688567e9ad48d60c 100644
--- a/Source/core/page/DragController.cpp
+++ b/Source/core/page/DragController.cpp
@@ -807,8 +807,12 @@ bool DragController::startDrag(Frame* src, const DragState& state, DragOperation
}
doSystemDrag(dragImage, dragLoc, mouseDraggedPoint, clipboard, src, true);
} else if (state.m_dragType == DragSourceActionDHTML) {
- ASSERT(m_dragSourceAction & DragSourceActionDHTML);
- doSystemDrag(dragImage, dragLoc, dragOrigin, clipboard, src, false);
+ if (dragImage) {
+ ASSERT(m_dragSourceAction & DragSourceActionDHTML);
+ doSystemDrag(dragImage, dragLoc, dragOrigin, clipboard, src, false);
+ } else {
+ startedDrag = false;
+ }
} else {
// draggableNode() determined an image or link node was draggable, but it turns out the
// image or link had no URL, so there is nothing to drag.

Powered by Google App Engine
This is Rietveld 408576698