| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |