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

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

Issue 99333011: Make sure getAttribute() / setAttribute() callers use AtomicStrings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/TextResourceDecoderBuilder.cpp ('k') | Source/core/rendering/HitTestResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698