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

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

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another build fix. Created 6 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 unified diff | Download patch | Annotate | Revision Log
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 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 Widget* widget = toRenderWidget(renderer)->widget(); 2344 Widget* widget = toRenderWidget(renderer)->widget();
2345 return widget && passGestureEventToWidget(gestureEvent, widget); 2345 return widget && passGestureEventToWidget(gestureEvent, widget);
2346 } 2346 }
2347 return false; 2347 return false;
2348 } 2348 }
2349 2349
2350 bool EventHandler::handleGestureScrollEnd(const PlatformGestureEvent& gestureEve nt) { 2350 bool EventHandler::handleGestureScrollEnd(const PlatformGestureEvent& gestureEve nt) {
2351 RefPtr<Node> node = m_scrollGestureHandlingNode; 2351 RefPtr<Node> node = m_scrollGestureHandlingNode;
2352 clearGestureScrollNodes(); 2352 clearGestureScrollNodes();
2353 2353
2354 if (node) { 2354 if (node)
2355 ASSERT(node->refCount() > 0);
2356 passGestureEventToWidgetIfPossible(gestureEvent, node->renderer()); 2355 passGestureEventToWidgetIfPossible(gestureEvent, node->renderer());
2357 }
2358 2356
2359 return false; 2357 return false;
2360 } 2358 }
2361 2359
2362 bool EventHandler::handleGestureScrollBegin(const PlatformGestureEvent& gestureE vent) 2360 bool EventHandler::handleGestureScrollBegin(const PlatformGestureEvent& gestureE vent)
2363 { 2361 {
2364 Document* document = m_frame->document(); 2362 Document* document = m_frame->document();
2365 if (!document->renderView()) 2363 if (!document->renderView())
2366 return false; 2364 return false;
2367 2365
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after
3732 unsigned EventHandler::accessKeyModifiers() 3730 unsigned EventHandler::accessKeyModifiers()
3733 { 3731 {
3734 #if OS(MACOSX) 3732 #if OS(MACOSX)
3735 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 3733 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
3736 #else 3734 #else
3737 return PlatformEvent::AltKey; 3735 return PlatformEvent::AltKey;
3738 #endif 3736 #endif
3739 } 3737 }
3740 3738
3741 } // namespace WebCore 3739 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698