OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 : Clipboard(policy, clipboardType) | 348 : Clipboard(policy, clipboardType) |
349 , m_dataObject(0) | 349 , m_dataObject(0) |
350 , m_writableDataObject(0) | 350 , m_writableDataObject(0) |
351 , m_frame(frame) | 351 , m_frame(frame) |
352 , m_dragDataMap(dataMap) | 352 , m_dragDataMap(dataMap) |
353 { | 353 { |
354 } | 354 } |
355 | 355 |
356 ClipboardWin::~ClipboardWin() | 356 ClipboardWin::~ClipboardWin() |
357 { | 357 { |
| 358 if (m_dragImage) |
| 359 m_dragImage->removeClient(this); |
358 } | 360 } |
359 | 361 |
360 static bool writeURL(WCDataObject *data, const KURL& url, String title, bool wit
hPlainText, bool withHTML) | 362 static bool writeURL(WCDataObject *data, const KURL& url, String title, bool wit
hPlainText, bool withHTML) |
361 { | 363 { |
362 ASSERT(data); | 364 ASSERT(data); |
363 | 365 |
364 if (url.isEmpty()) | 366 if (url.isEmpty()) |
365 return false; | 367 return false; |
366 | 368 |
367 if (title.isEmpty()) { | 369 if (title.isEmpty()) { |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 | 806 |
805 void ClipboardWin::setExternalDataObject(IDataObject *dataObject) | 807 void ClipboardWin::setExternalDataObject(IDataObject *dataObject) |
806 { | 808 { |
807 ASSERT(isForDragAndDrop()); | 809 ASSERT(isForDragAndDrop()); |
808 | 810 |
809 m_writableDataObject = 0; | 811 m_writableDataObject = 0; |
810 m_dataObject = dataObject; | 812 m_dataObject = dataObject; |
811 } | 813 } |
812 | 814 |
813 } // namespace WebCore | 815 } // namespace WebCore |
OLD | NEW |