DragController should ascertain dragClient to be non-null

https://bugs.webkit.org/show_bug.cgi?id=92474

Patch by Vivek Galatage <vivekgalatage@gmail.com> on 2012-07-27
Reviewed by Tony Chang.

The DragController must always ensure a valid dragClient object. Hence
adding the ASSERT to assure that.

No new tests. Added assertion for PageClient.dragClient.

* page/DragController.cpp:
(WebCore::DragController::DragController):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7d138ab9
2012-07-27 Vivek Galatage <vivekgalatage@gmail.com>
DragController should ascertain dragClient to be non-null
https://bugs.webkit.org/show_bug.cgi?id=92474
Reviewed by Tony Chang.
The DragController must always ensure a valid dragClient object. Hence
adding the ASSERT to assure that.
No new tests. Added assertion for PageClient.dragClient.
* page/DragController.cpp:
(WebCore::DragController::DragController):
2012-07-27 Adrienne Walker <enne@google.com>
[chromium] Clean up LayerRendererChromium::drawTexturedQuad
......@@ -101,6 +101,7 @@ DragController::DragController(Page* page, DragClient* client)
, m_isHandlingDrag(false)
, m_sourceDragOperation(DragOperationNone)
{
ASSERT(m_client);
}
DragController::~DragController()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment