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

Side by Side Diff: Source/WebCore/platform/win/ClipboardWin.cpp

Issue 11194057: Merge 129962 - REGRESSION(r122215) - CachedImage::likelyToBeUsedSoon crashes on accessing a deleted… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 2 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 unified diff | Download patch
« no previous file with comments | « Source/WebCore/platform/mac/ClipboardMac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/platform/mac/ClipboardMac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698