Changeset 103303 in webkit
- Timestamp:
- Dec 19, 2011 9:26:56 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r103294 r103303 1 2011-12-19 Yael Aharon <yael.aharon@nokia.com> 2 3 Update dropzone implementation per spec update 4 https://bugs.webkit.org/show_bug.cgi?id=74834 5 6 Reviewed by Tony Chang. 7 8 Update the tests per spec change. 9 10 * fast/events/dropzone-001.html: 11 * fast/events/dropzone-002.html: 12 * fast/events/dropzone-003.html: 13 * fast/events/dropzone-004.html: 14 1 15 2011-12-16 Gavin Barraclough <barraclough@apple.com> 2 16 -
trunk/LayoutTests/fast/events/dropzone-001.html
r98407 r103303 35 35 function changeDropZone() 36 36 { 37 dropTarget.setAttribute("webkitdropzone", dropEffectElem.options[dropEffectElem.selectedIndex].value + " s :text/plain");37 dropTarget.setAttribute("webkitdropzone", dropEffectElem.options[dropEffectElem.selectedIndex].value + " string:text/plain"); 38 38 } 39 39 -
trunk/LayoutTests/fast/events/dropzone-002.html
r98407 r103303 33 33 function changeDropZone() 34 34 { 35 dropTarget.setAttribute("webkitdropzone", " S :text/plain s:url " + dropEffectElem.options[dropEffectElem.selectedIndex].value);35 dropTarget.setAttribute("webkitdropzone", " StRinG:text/plain sTrING:url " + dropEffectElem.options[dropEffectElem.selectedIndex].value); 36 36 } 37 37 -
trunk/LayoutTests/fast/events/dropzone-003.html
r98407 r103303 33 33 function changeDropZone() 34 34 { 35 dropTarget.setAttribute("webkitdropzone", dropEffectElem.options[dropEffectElem.selectedIndex].value + " s :text/plain s:any/type");35 dropTarget.setAttribute("webkitdropzone", dropEffectElem.options[dropEffectElem.selectedIndex].value + " string:text/plain string:any/type"); 36 36 } 37 37 -
trunk/LayoutTests/fast/events/dropzone-004.html
r98407 r103303 30 30 function changeDropZone() 31 31 { 32 dropTarget.setAttribute("webkitdropzone", dropEffectElem.options[dropEffectElem.selectedIndex].value + " f :text/html");32 dropTarget.setAttribute("webkitdropzone", dropEffectElem.options[dropEffectElem.selectedIndex].value + " file:text/html"); 33 33 } 34 34 -
trunk/Source/WebCore/ChangeLog
r103302 r103303 1 2011-12-19 Yael Aharon <yael.aharon@nokia.com> 2 3 Update dropzone implementation per spec update 4 https://bugs.webkit.org/show_bug.cgi?id=74834 5 6 Reviewed by Tony Chang. 7 8 Update support for dropzone attribute to use file: and string: instead of f: and s:. 9 http://www.whatwg.org/specs/web-apps/current-work/#the-dropzone-attribute 10 11 No new tests. Existing tests cover this and were updated. 12 13 * dom/Clipboard.cpp: 14 (WebCore::Clipboard::hasDropZoneType): 15 1 16 2011-12-19 Sam Weinig <sam@webkit.org> 2 17 -
trunk/Source/WebCore/dom/Clipboard.cpp
r87499 r103303 211 211 bool Clipboard::hasDropZoneType(const String& keyword) 212 212 { 213 if (keyword.length() < 3 || keyword[1] != ':') 214 return false; 215 216 switch (keyword[0]) { 217 case 'f': 218 return hasFileOfType(keyword.substring(2)); 219 case 's': 220 return hasStringOfType(keyword.substring(2)); 221 default: 222 return false; 223 } 213 if (keyword.startsWith("file:")) 214 return hasFileOfType(keyword.substring(5)); 215 216 if (keyword.startsWith("string:")) 217 return hasStringOfType(keyword.substring(7)); 218 219 return false; 224 220 } 225 221
Note: See TracChangeset
for help on using the changeset viewer.