| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 , m_shouldMatchStyle(shouldMatchStyle) | 82 , m_shouldMatchStyle(shouldMatchStyle) |
| 83 { | 83 { |
| 84 } | 84 } |
| 85 | 85 |
| 86 TextEvent::~TextEvent() | 86 TextEvent::~TextEvent() |
| 87 { | 87 { |
| 88 } | 88 } |
| 89 | 89 |
| 90 void TextEvent::initTextEvent(const AtomicString& type, bool canBubble, bool can
celable, AbstractView* view, const String& data) | 90 void TextEvent::initTextEvent(const AtomicString& type, bool canBubble, bool can
celable, AbstractView* view, const String& data) |
| 91 { | 91 { |
| 92 if (dispatched()) | 92 if (isBeingDispatched()) |
| 93 return; | 93 return; |
| 94 | 94 |
| 95 initUIEvent(type, canBubble, cancelable, view, 0); | 95 initUIEvent(type, canBubble, cancelable, view, 0); |
| 96 | 96 |
| 97 m_data = data; | 97 m_data = data; |
| 98 } | 98 } |
| 99 | 99 |
| 100 const AtomicString& TextEvent::interfaceName() const | 100 const AtomicString& TextEvent::interfaceName() const |
| 101 { | 101 { |
| 102 return EventNames::TextEvent; | 102 return EventNames::TextEvent; |
| 103 } | 103 } |
| 104 | 104 |
| 105 DEFINE_TRACE(TextEvent) | 105 DEFINE_TRACE(TextEvent) |
| 106 { | 106 { |
| 107 visitor->trace(m_pastingFragment); | 107 visitor->trace(m_pastingFragment); |
| 108 UIEvent::trace(visitor); | 108 UIEvent::trace(visitor); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace blink | 111 } // namespace blink |
| OLD | NEW |