Changeset 172951 in webkit
- Timestamp:
- Aug 25, 2014 11:43:16 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r172948 r172951 1 2014-08-25 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 Generate toFile() instead of manual functions. 4 https://bugs.webkit.org/show_bug.cgi?id=136207 5 6 Reviewed by Darin Adler. 7 8 No new tests, no behavior changes. 9 10 * fileapi/Blob.h: Define BLOB_TYPE_CASTS. 11 * fileapi/File.h: Use BLOB_TYPE_CASTS to generate toFile(). 12 (WebCore::toFile): Deleted. 13 1 14 2014-08-25 Zalan Bujtas <zalan@apple.com> 2 15 -
trunk/Source/WebCore/fileapi/Blob.h
r170774 r172951 113 113 }; 114 114 115 #define BLOB_TYPE_CASTS(ToValueTypeName, predicate) \ 116 TYPE_CASTS_BASE(ToValueTypeName, Blob, object, blob->predicate, blob.predicate) 117 115 118 } // namespace WebCore 116 119 -
trunk/Source/WebCore/fileapi/File.h
r168554 r172951 84 84 }; 85 85 86 inline File* toFile(Blob* blob) 87 { 88 ASSERT_WITH_SECURITY_IMPLICATION(!blob || blob->isFile()); 89 return static_cast<File*>(blob); 90 } 91 92 inline const File* toFile(const Blob* blob) 93 { 94 ASSERT_WITH_SECURITY_IMPLICATION(!blob || blob->isFile()); 95 return static_cast<const File*>(blob); 96 } 86 BLOB_TYPE_CASTS(File, isFile()) 97 87 98 88 } // namespace WebCore
Note: See TracChangeset
for help on using the changeset viewer.