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

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

Issue 1111273008: Removing unnecessary creation of local variable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | 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 dd3c5aee907340e0eb1b561e52fb6f57dfe5547c..70a4e3d1a50f9ae133edb824e092fe231b314fc1 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -3004,7 +3004,6 @@ void EventHandler::applyTouchAdjustment(PlatformGestureEvent* gestureEvent, HitT
bool EventHandler::sendContextMenuEvent(const PlatformMouseEvent& event)
{
- Document* doc = m_frame->document();
FrameView* v = m_frame->view();
if (!v)
return false;
@@ -3013,7 +3012,7 @@ bool EventHandler::sendContextMenuEvent(const PlatformMouseEvent& event)
m_mousePressed = false;
LayoutPoint positionInContents = v->rootFrameToContents(event.position());
HitTestRequest request(HitTestRequest::Active);
- MouseEventWithHitTestResults mev = doc->prepareMouseEvent(request, positionInContents, event);
+ MouseEventWithHitTestResults mev = m_frame->document()->prepareMouseEvent(request, positionInContents, event);
if (!m_frame->selection().contains(positionInContents)
&& !mev.scrollbar()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698