OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1769 | 1769 |
1770 frame = toHTMLFrameElementBase(target)->contentFrame(); | 1770 frame = toHTMLFrameElementBase(target)->contentFrame(); |
1771 return true; | 1771 return true; |
1772 } | 1772 } |
1773 | 1773 |
1774 static bool findDropZone(Node* target, Clipboard* clipboard) | 1774 static bool findDropZone(Node* target, Clipboard* clipboard) |
1775 { | 1775 { |
1776 Element* element = target->isElementNode() ? toElement(target) : target->par
entElement(); | 1776 Element* element = target->isElementNode() ? toElement(target) : target->par
entElement(); |
1777 for (; element; element = element->parentElement()) { | 1777 for (; element; element = element->parentElement()) { |
1778 bool matched = false; | 1778 bool matched = false; |
1779 String dropZoneStr = element->fastGetAttribute(webkitdropzoneAttr); | 1779 AtomicString dropZoneStr = element->fastGetAttribute(webkitdropzoneAttr)
; |
1780 | 1780 |
1781 if (dropZoneStr.isEmpty()) | 1781 if (dropZoneStr.isEmpty()) |
1782 continue; | 1782 continue; |
1783 | 1783 |
1784 dropZoneStr = dropZoneStr.lower(); | 1784 dropZoneStr = dropZoneStr.lower(); |
1785 | 1785 |
1786 SpaceSplitString keywords(dropZoneStr, false); | 1786 SpaceSplitString keywords(dropZoneStr, false); |
1787 if (keywords.isNull()) | 1787 if (keywords.isNull()) |
1788 continue; | 1788 continue; |
1789 | 1789 |
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3973 unsigned EventHandler::accessKeyModifiers() | 3973 unsigned EventHandler::accessKeyModifiers() |
3974 { | 3974 { |
3975 #if OS(MACOSX) | 3975 #if OS(MACOSX) |
3976 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3976 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
3977 #else | 3977 #else |
3978 return PlatformEvent::AltKey; | 3978 return PlatformEvent::AltKey; |
3979 #endif | 3979 #endif |
3980 } | 3980 } |
3981 | 3981 |
3982 } // namespace WebCore | 3982 } // namespace WebCore |
OLD | NEW |