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

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

Issue 1317533002: Sibling invalidation sets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CORE_EXPORT Created 5 years, 3 months 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
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 swallowClickEvent = !dispatchMouseEvent(EventTypeNames::click, click TargetNode, gestureEvent.tapCount(), fakeMouseUp); 2108 swallowClickEvent = !dispatchMouseEvent(EventTypeNames::click, click TargetNode, gestureEvent.tapCount(), fakeMouseUp);
2109 } 2109 }
2110 m_clickNode = nullptr; 2110 m_clickNode = nullptr;
2111 } 2111 }
2112 2112
2113 if (!swallowMouseUpEvent) 2113 if (!swallowMouseUpEvent)
2114 swallowMouseUpEvent = handleMouseReleaseEvent(MouseEventWithHitTestResul ts(fakeMouseUp, currentHitTest)); 2114 swallowMouseUpEvent = handleMouseReleaseEvent(MouseEventWithHitTestResul ts(fakeMouseUp, currentHitTest));
2115 2115
2116 bool swallowed = swallowMouseDownEvent | swallowMouseUpEvent | swallowClickE vent; 2116 bool swallowed = swallowMouseDownEvent | swallowMouseUpEvent | swallowClickE vent;
2117 if (!swallowed && tappedNode && m_frame->page()) { 2117 if (!swallowed && tappedNode && m_frame->page()) {
2118 bool domTreeChanged = preDispatchDomTreeVersion != m_frame->document()-> domTreeVersion(); 2118 Document* document = m_frame->document();
2119 bool styleChanged = preDispatchStyleVersion != m_frame->document()->styl eVersion(); 2119 bool domTreeChanged = preDispatchDomTreeVersion != document->domTreeVers ion();
2120 bool styleChanged = preDispatchStyleVersion != document->styleVersion();
2121 if (!styleChanged) {
2122 if (Element* documentElement = document->documentElement())
2123 styleChanged = documentElement->childNeedsStyleInvalidation();
Eric Willigers 2015/08/31 06:40:43 WebViewTest.ShowUnhandledTapUIIfNeededWithMutateSt
2124 }
2120 2125
2121 IntPoint tappedPositionInViewport = m_frame->page()->frameHost().visualV iewport().rootFrameToViewport(tappedPosition); 2126 IntPoint tappedPositionInViewport = m_frame->page()->frameHost().visualV iewport().rootFrameToViewport(tappedPosition);
2122 m_frame->chromeClient().showUnhandledTapUIIfNeeded(tappedPositionInViewp ort, tappedNode.get(), domTreeChanged || styleChanged); 2127 m_frame->chromeClient().showUnhandledTapUIIfNeeded(tappedPositionInViewp ort, tappedNode.get(), domTreeChanged || styleChanged);
2123 } 2128 }
2124 return swallowed; 2129 return swallowed;
2125 } 2130 }
2126 2131
2127 bool EventHandler::handleGestureLongPress(const GestureEventWithHitTestResults& targetedEvent) 2132 bool EventHandler::handleGestureLongPress(const GestureEventWithHitTestResults& targetedEvent)
2128 { 2133 {
2129 const PlatformGestureEvent& gestureEvent = targetedEvent.event(); 2134 const PlatformGestureEvent& gestureEvent = targetedEvent.event();
(...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
4029 unsigned EventHandler::accessKeyModifiers() 4034 unsigned EventHandler::accessKeyModifiers()
4030 { 4035 {
4031 #if OS(MACOSX) 4036 #if OS(MACOSX)
4032 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 4037 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
4033 #else 4038 #else
4034 return PlatformEvent::AltKey; 4039 return PlatformEvent::AltKey;
4035 #endif 4040 #endif
4036 } 4041 }
4037 4042
4038 } // namespace blink 4043 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698