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

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

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/platform/chromium/ChromiumDataObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 27 matching lines...) Expand all
38 EventFrameAction(PassRefPtr<Event> event, PassRefPtr<Node> target) 38 EventFrameAction(PassRefPtr<Event> event, PassRefPtr<Node> target)
39 : m_event(event) 39 : m_event(event)
40 , m_eventTarget(target) 40 , m_eventTarget(target)
41 { 41 {
42 } 42 }
43 43
44 virtual void fire() 44 virtual void fire()
45 { 45 {
46 // Only dispatch events to nodes that are in the document 46 // Only dispatch events to nodes that are in the document
47 if (m_eventTarget->inDocument()) 47 if (m_eventTarget->inDocument())
48 m_eventTarget->dispatchEvent(m_event, IGNORE_EXCEPTION_STATE); 48 m_eventTarget->dispatchEvent(m_event, IGNORE_EXCEPTION);
49 } 49 }
50 50
51 private: 51 private:
52 RefPtr<Event> m_event; 52 RefPtr<Event> m_event;
53 RefPtr<Node> m_eventTarget; 53 RefPtr<Node> m_eventTarget;
54 }; 54 };
55 55
56 FrameActionScheduler::FrameActionScheduler() 56 FrameActionScheduler::FrameActionScheduler()
57 : m_enqueueActions(0) 57 : m_enqueueActions(0)
58 { 58 {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 m_scheduledActions.append(action); 102 m_scheduledActions.append(action);
103 } 103 }
104 104
105 void FrameActionScheduler::scheduleEvent(PassRefPtr<Event> event, PassRefPtr<Nod e> eventTarget) 105 void FrameActionScheduler::scheduleEvent(PassRefPtr<Event> event, PassRefPtr<Nod e> eventTarget)
106 { 106 {
107 scheduleAction(adoptPtr(new EventFrameAction(event, eventTarget))); 107 scheduleAction(adoptPtr(new EventFrameAction(event, eventTarget)));
108 } 108 }
109 109
110 110
111 } // namespace WebCore 111 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/platform/chromium/ChromiumDataObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698