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

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

Issue 2322073006: Turn off the old compositing path for SPv2. (Closed)
Patch Set: none Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/input/GestureManager.h" 5 #include "core/input/GestureManager.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/editing/SelectionController.h" 8 #include "core/editing/SelectionController.h"
9 #include "core/events/GestureEvent.h" 9 #include "core/events/GestureEvent.h"
10 #include "core/frame/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Do a new hit-test in case the mousemove event changed the DOM. 152 // Do a new hit-test in case the mousemove event changed the DOM.
153 // Note that if the original hit test wasn't over an element (eg. was over a scrollbar) we 153 // Note that if the original hit test wasn't over an element (eg. was over a scrollbar) we
154 // don't want to re-hit-test because it may be in the wrong frame (and there 's no way the page 154 // don't want to re-hit-test because it may be in the wrong frame (and there 's no way the page
155 // could have seen the event anyway). 155 // could have seen the event anyway).
156 // Also note that the position of the frame may have changed, so we need to recompute the content 156 // Also note that the position of the frame may have changed, so we need to recompute the content
157 // co-ordinates (updating layout/style as hitTestResultAtPoint normally woul d). 157 // co-ordinates (updating layout/style as hitTestResultAtPoint normally woul d).
158 // FIXME: Use a hit-test cache to avoid unnecessary hit tests. http://crbug. com/398920 158 // FIXME: Use a hit-test cache to avoid unnecessary hit tests. http://crbug. com/398920
159 if (currentHitTest.innerNode()) { 159 if (currentHitTest.innerNode()) {
160 LocalFrame* mainFrame = m_frame->localFrameRoot(); 160 LocalFrame* mainFrame = m_frame->localFrameRoot();
161 if (mainFrame && mainFrame->view()) 161 if (mainFrame && mainFrame->view())
162 mainFrame->view()->updateLifecycleToCompositingCleanPlusScrolling(); 162 mainFrame->view()->updateAllLifecyclePhasesExceptPaint();
163 adjustedPoint = frameView->rootFrameToContents(gestureEvent.position()); 163 adjustedPoint = frameView->rootFrameToContents(gestureEvent.position());
164 currentHitTest = EventHandlingUtil::hitTestResultInFrame(m_frame, adjust edPoint, hitType); 164 currentHitTest = EventHandlingUtil::hitTestResultInFrame(m_frame, adjust edPoint, hitType);
165 } 165 }
166 166
167 // Capture data for showUnhandledTapUIIfNeeded. 167 // Capture data for showUnhandledTapUIIfNeeded.
168 Node* tappedNode = currentHitTest.innerNode(); 168 Node* tappedNode = currentHitTest.innerNode();
169 IntPoint tappedPosition = gestureEvent.position(); 169 IntPoint tappedPosition = gestureEvent.position();
170 Node* tappedNonTextNode = tappedNode; 170 Node* tappedNonTextNode = tappedNode;
171 171
172 if (tappedNonTextNode && tappedNonTextNode->isTextNode()) 172 if (tappedNonTextNode && tappedNonTextNode->isTextNode())
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 355
356 return &m_frame->page()->frameHost(); 356 return &m_frame->page()->frameHost();
357 } 357 }
358 358
359 double GestureManager::getLastShowPressTimestamp() const 359 double GestureManager::getLastShowPressTimestamp() const
360 { 360 {
361 return m_lastShowPressTimestamp; 361 return m_lastShowPressTimestamp;
362 } 362 }
363 363
364 } // namespace blink 364 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698