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

Side by Side Diff: Source/core/page/DragData.cpp

Issue 224113002: Oilpan: move Range object to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use STACK_ALLOCATED() + incorporate ager's overview of macros in this area. Created 6 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. 3 * Copyright (C) 2013 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 126
127 bool DragData::containsCompatibleContent() const 127 bool DragData::containsCompatibleContent() const
128 { 128 {
129 return containsPlainText() 129 return containsPlainText()
130 || containsURL() 130 || containsURL()
131 || containsHTML(m_platformDragData) 131 || containsHTML(m_platformDragData)
132 || containsFiles(); 132 || containsFiles();
133 } 133 }
134 134
135 PassRefPtr<DocumentFragment> DragData::asFragment(LocalFrame* frame, PassRefPtr< Range>, bool, bool&) const 135 PassRefPtr<DocumentFragment> DragData::asFragment(LocalFrame* frame, PassRefPtrW illBeRawPtr<Range>, bool, bool&) const
136 { 136 {
137 /* 137 /*
138 * Order is richest format first. On OSX this is: 138 * Order is richest format first. On OSX this is:
139 * * Web Archive 139 * * Web Archive
140 * * Filenames 140 * * Filenames
141 * * HTML 141 * * HTML
142 * * RTF 142 * * RTF
143 * * TIFF 143 * * TIFF
144 * * PICT 144 * * PICT
145 */ 145 */
(...skipping 17 matching lines...) Expand all
163 163
164 String DragData::droppedFileSystemId() const 164 String DragData::droppedFileSystemId() const
165 { 165 {
166 DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(m_pl atformDragData); 166 DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(m_pl atformDragData);
167 if (!filesystem) 167 if (!filesystem)
168 return String(); 168 return String();
169 return filesystem->filesystemId(); 169 return filesystem->filesystemId();
170 } 170 }
171 171
172 } // namespace WebCore 172 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698