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

Unified Diff: Source/core/page/EventHandler.cpp

Issue 1126883002: Change all one-off lifecycle callers to FrameView::updateLayoutAndStyleForPainting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/ContextMenuControllerTest.cpp ('k') | Source/core/paint/DeprecatedPaintLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index c0ba3e05201a722358b65af8f51f4a76d27094a1..1e70b2cbf48cfb297e9744ad53f2f3e582e2f571 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -2423,9 +2423,6 @@ bool EventHandler::handleGestureTap(const GestureEventWithHitTestResults& target
// co-ordinates (updating layout/style as hitTestResultAtPoint normally would).
// FIXME: Use a hit-test cache to avoid unnecessary hit tests. http://crbug.com/398920
if (currentHitTest.innerNode()) {
- LocalFrame* mainFrame = m_frame->localFrameRoot();
chrishtr 2015/05/08 00:33:37 These are not needed because of the code in Layout
- if (mainFrame && mainFrame->view())
- mainFrame->view()->updateLayoutAndStyleIfNeededRecursive();
adjustedPoint = frameView->rootFrameToContents(gestureEvent.position());
currentHitTest = hitTestResultInFrame(m_frame, adjustedPoint, hitType);
}
@@ -2450,9 +2447,6 @@ bool EventHandler::handleGestureTap(const GestureEventWithHitTestResults& target
// FIXME: Use a hit-test cache to avoid unnecessary hit tests. http://crbug.com/398920
if (currentHitTest.innerNode()) {
- LocalFrame* mainFrame = m_frame->localFrameRoot();
- if (mainFrame && mainFrame->view())
- mainFrame->view()->updateLayoutAndStyleIfNeededRecursive();
adjustedPoint = frameView->rootFrameToContents(gestureEvent.position());
currentHitTest = hitTestResultInFrame(m_frame, adjustedPoint, hitType);
}
« no previous file with comments | « Source/core/page/ContextMenuControllerTest.cpp ('k') | Source/core/paint/DeprecatedPaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698