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

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

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TemporaryChange -> AutoReset Created 4 years, 5 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 /* 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 #include "platform/WindowsKeyboardCodes.h" 95 #include "platform/WindowsKeyboardCodes.h"
96 #include "platform/geometry/FloatPoint.h" 96 #include "platform/geometry/FloatPoint.h"
97 #include "platform/graphics/Image.h" 97 #include "platform/graphics/Image.h"
98 #include "platform/heap/Handle.h" 98 #include "platform/heap/Handle.h"
99 #include "platform/scroll/ScrollAnimatorBase.h" 99 #include "platform/scroll/ScrollAnimatorBase.h"
100 #include "platform/scroll/Scrollbar.h" 100 #include "platform/scroll/Scrollbar.h"
101 #include "wtf/Assertions.h" 101 #include "wtf/Assertions.h"
102 #include "wtf/CurrentTime.h" 102 #include "wtf/CurrentTime.h"
103 #include "wtf/PtrUtil.h" 103 #include "wtf/PtrUtil.h"
104 #include "wtf/StdLibExtras.h" 104 #include "wtf/StdLibExtras.h"
105 #include "wtf/TemporaryChange.h"
106 #include <memory> 105 #include <memory>
107 106
108 namespace blink { 107 namespace blink {
109 108
110 namespace { 109 namespace {
111 110
112 // Refetch the event target node if it is removed or currently is the shadow nod e inside an <input> element. 111 // Refetch the event target node if it is removed or currently is the shadow nod e inside an <input> element.
113 // If a mouse event handler changes the input element type to one that has a wid get associated, 112 // If a mouse event handler changes the input element type to one that has a wid get associated,
114 // we'd like to EventHandler::handleMousePressEvent to pass the event to the wid get and thus the 113 // we'd like to EventHandler::handleMousePressEvent to pass the event to the wid get and thus the
115 // event target node can't still be the shadow node. 114 // event target node can't still be the shadow node.
(...skipping 2495 matching lines...) Expand 10 before | Expand all | Expand 10 after
2611 2610
2612 FrameHost* EventHandler::frameHost() const 2611 FrameHost* EventHandler::frameHost() const
2613 { 2612 {
2614 if (!m_frame->page()) 2613 if (!m_frame->page())
2615 return nullptr; 2614 return nullptr;
2616 2615
2617 return &m_frame->page()->frameHost(); 2616 return &m_frame->page()->frameHost();
2618 } 2617 }
2619 2618
2620 } // namespace blink 2619 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698