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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 1444173002: third_party/WebKit: fix typos found in comments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL Description change, Typo patch apply to upstream master. Created 5 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 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1788 // FrameSelection::setFocusedNodeIfNeeded. 1788 // FrameSelection::setFocusedNodeIfNeeded.
1789 if (element && m_frame->selection().isRange()) { 1789 if (element && m_frame->selection().isRange()) {
1790 // TODO(yosin) We should not create |Range| object for calling 1790 // TODO(yosin) We should not create |Range| object for calling
1791 // |isNodeFullyContained()|. 1791 // |isNodeFullyContained()|.
1792 if (createRange(m_frame->selection().selection().toNormalizedEphemeralRa nge())->isNodeFullyContained(*element) 1792 if (createRange(m_frame->selection().selection().toNormalizedEphemeralRa nge())->isNodeFullyContained(*element)
1793 && element->isDescendantOf(m_frame->document()->focusedElement())) 1793 && element->isDescendantOf(m_frame->document()->focusedElement()))
1794 return false; 1794 return false;
1795 } 1795 }
1796 1796
1797 1797
1798 // Only change the focus when clicking scrollbars if it can transfered to a 1798 // Only change the focus when clicking scrollbars if it can transferred to a
1799 // mouse focusable node. 1799 // mouse focusable node.
1800 if (!element && targetedEvent.hitTestResult().scrollbar()) 1800 if (!element && targetedEvent.hitTestResult().scrollbar())
1801 return true; 1801 return true;
1802 1802
1803 if (Page* page = m_frame->page()) { 1803 if (Page* page = m_frame->page()) {
1804 // If focus shift is blocked, we eat the event. Note we should never 1804 // If focus shift is blocked, we eat the event. Note we should never
1805 // clear swallowEvent if the page already set it (e.g., by canceling 1805 // clear swallowEvent if the page already set it (e.g., by canceling
1806 // default behavior). 1806 // default behavior).
1807 if (element) { 1807 if (element) {
1808 if (slideFocusOnShadowHostIfNecessary(*element)) 1808 if (slideFocusOnShadowHostIfNecessary(*element))
(...skipping 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after
4088 PlatformEvent::Modifiers EventHandler::accessKeyModifiers() 4088 PlatformEvent::Modifiers EventHandler::accessKeyModifiers()
4089 { 4089 {
4090 #if OS(MACOSX) 4090 #if OS(MACOSX)
4091 return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | Platfo rmEvent::AltKey); 4091 return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | Platfo rmEvent::AltKey);
4092 #else 4092 #else
4093 return PlatformEvent::AltKey; 4093 return PlatformEvent::AltKey;
4094 #endif 4094 #endif
4095 } 4095 }
4096 4096
4097 } // namespace blink 4097 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698