Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index 24e8b39d56fda3cde31125118138ddfe1dc0f3a7..fd56485e60f17790bb8f74234a8a0a1c5edae9ce 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -828,7 +828,7 @@ bool EventHandler::handleMouseReleaseEvent(const MouseEventWithHitTestResults& e |
VisibleSelection newSelection; |
Node* node = event.targetNode(); |
bool caretBrowsing = m_frame->settings() && m_frame->settings()->caretBrowsingEnabled(); |
- if (node && (caretBrowsing || node->rendererIsEditable()) && node->renderer()) { |
+ if (node && node->renderer() && (caretBrowsing || node->rendererIsEditable())) { |
VisiblePosition pos = VisiblePosition(node->renderer()->positionForPoint(event.localPoint())); |
newSelection = VisibleSelection(pos); |
} |