Fix Issue 33145: Content Editable Move Image or Selected Block of Text Broken
Fix Issue 33145: Content Editable Move Image or Selected Block of Text Broken

The cause was that the original source mask only specified "Copy" as allowed operations, while the destination operation is "Move".

Changed the code to allow both "Copy" and "Move" (in line with the GTK implementation). Note that this patch does not touch or implement the TODO(snej) issues, i.e., allow for operations other than move or copy.

BUG=33145
TEST=see bug description

Review URL: http://codereview.chromium.org/1097001

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@42069 0039d316-1c4b-4281-b951-d872f2087c98

TheTypoMaster/chromium-crosswalk,littlstar/chromium.src,chuan9/chromium-crosswalk,Jonekee/chromium.src,ChromiumWebApps/chromium,axinging/chromium-crosswalk,ChromiumWebApps/chromium,dushu1203/chromium.src,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,robclark/chromium,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,anirudhSK/chromium,mogoweb/chromium-crosswalk,rogerwang/chromium,zcbenz/cefode-chromium,rogerwang/chromium,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,dednal/chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,rogerwang/chromium,mogoweb/chromium-crosswalk,Chilledheart/chromium,jaruba/chromium.src,mogoweb/chromium-crosswalk,M4sse/chromium.src,jaruba/chromium.src,ltilve/chromium,keishi/chromium,hgl888/chromium-crosswalk-efl,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,littlstar/chromium.src,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,hujiajie/pa-chromium,rogerwang/chromium,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,ltilve/chromium,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,dednal/chromium.src,dushu1203/chromium.src,robclark/chromium,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,zcbenz/cefode-chromium,axinging/chromium-crosswalk,ltilve/chromium,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,robclark/chromium,patrickm/chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,jaruba/chromium.src,jaruba/chromium.src,anirudhSK/chromium,Chilledheart/chromium,rogerwang/chromium,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,robclark/chromium,ChromiumWebApps/chromium,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,dushu1203/chromium.src,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,hujiajie/pa-chromium,littlstar/chromium.src,Chilledheart/chromium,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,dednal/chromium.src,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,M4sse/chromium.src,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,dushu1203/chromium.src,ondra-novak/chromium.src,dednal/chromium.src,timopulkkinen/BubbleFish,keishi/chromium,keishi/chromium,Jonekee/chromium.src,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,robclark/chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,rogerwang/chromium,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,robclark/chromium,Chilledheart/chromium,bright-sparks/chromium-spacewalk,M4sse/chromium.src,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,Jonekee/chromium.src,M4sse/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,ondra-novak/chromium.src,ltilve/chromium,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,markYoungH/chromium.src,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,rogerwang/chromium,keishi/chromium,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,patrickm/chromium.src,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,ltilve/chromium,junmin-zhu/chromium-rivertrail,mogoweb/chromium-crosswalk,rogerwang/chromium,nacl-webkit/chrome_deps,littlstar/chromium.src,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,bright-sparks/chromium-spacewalk,rogerwang/chromium,Fireblend/chromium-crosswalk,patrickm/chromium.src,Just-D/chromium-1,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,M4sse/chromium.src,Just-D/chromium-1,keishi/chromium,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,keishi/chromium,dednal/chromium.src,ChromiumWebApps/chromium,littlstar/chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,M4sse/chromium.src,dushu1203/chromium.src,Jonekee/chromium.src,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,keishi/chromium,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,axinging/chromium-crosswalk,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,dushu1203/chromium.src,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,ltilve/chromium,dednal/chromium.src,robclark/chromium,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,robclark/chromium,Fireblend/chromium-crosswalk,Chilledheart/chromium,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,mogoweb/chromium-crosswalk,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,dednal/chromium.src,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,Jonekee/chromium.src,dednal/chromium.src,dednal/chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,hujiajie/pa-chromium,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,markYoungH/chromium.src,axinging/chromium-crosswalk,keishi/chromium,anirudhSK/chromium,robclark/chromium,ChromiumWebApps/chromium,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,ltilve/chromium,keishi/chromium,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,patrickm/chromium.src,Just-D/chromium-1,Just-D/chromium-1,Chilledheart/chromium,Jonekee/chromium.src,dednal/chromium.src,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,dednal/chromium.src,rogerwang/chromium,Just-D/chromium-1,jaruba/chromium.src,hgl888/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,keishi/chromium,markYoungH/chromium.src,chuan9/chromium-crosswalk,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,Just-D/chromium-1,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,robclark/chromium,patrickm/chromium.src,M4sse/chromium.src,keishi/chromium,Jonekee/chromium.src,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,patrickm/chromium.src,patrickm/chromium.src,jaruba/chromium.src,Jonekee/chromium.src,anirudhSK/chromium,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,jaruba/chromium.src,hujiajie/pa-chromium,nacl-webkit/chrome_deps,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,littlstar/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk