| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2202 return isFocusable() && tabIndex() >= 0; | 2202 return isFocusable() && tabIndex() >= 0; |
| 2203 } | 2203 } |
| 2204 | 2204 |
| 2205 bool Element::isMouseFocusable() const | 2205 bool Element::isMouseFocusable() const |
| 2206 { | 2206 { |
| 2207 return isFocusable(); | 2207 return isFocusable(); |
| 2208 } | 2208 } |
| 2209 | 2209 |
| 2210 void Element::dispatchFocusEvent(Element* oldFocusedElement, FocusType) | 2210 void Element::dispatchFocusEvent(Element* oldFocusedElement, FocusType) |
| 2211 { | 2211 { |
| 2212 RefPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::focus, false,
false, document().domWindow(), 0, oldFocusedElement); | 2212 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::fo
cus, false, false, document().domWindow(), 0, oldFocusedElement); |
| 2213 EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(even
t.release())); | 2213 EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(even
t.release())); |
| 2214 } | 2214 } |
| 2215 | 2215 |
| 2216 void Element::dispatchBlurEvent(Element* newFocusedElement) | 2216 void Element::dispatchBlurEvent(Element* newFocusedElement) |
| 2217 { | 2217 { |
| 2218 RefPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::blur, false, f
alse, document().domWindow(), 0, newFocusedElement); | 2218 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::bl
ur, false, false, document().domWindow(), 0, newFocusedElement); |
| 2219 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event
.release())); | 2219 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event
.release())); |
| 2220 } | 2220 } |
| 2221 | 2221 |
| 2222 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo
cusedElement) | 2222 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo
cusedElement) |
| 2223 { | 2223 { |
| 2224 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); | 2224 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); |
| 2225 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames::
DOMFocusIn); | 2225 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames::
DOMFocusIn); |
| 2226 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc
usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle
ment))); | 2226 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc
usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle
ment))); |
| 2227 } | 2227 } |
| 2228 | 2228 |
| (...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3352 || isHTMLObjectElement(*this) | 3352 || isHTMLObjectElement(*this) |
| 3353 || isHTMLAppletElement(*this) | 3353 || isHTMLAppletElement(*this) |
| 3354 || isHTMLCanvasElement(*this)) | 3354 || isHTMLCanvasElement(*this)) |
| 3355 return false; | 3355 return false; |
| 3356 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3356 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3357 return false; | 3357 return false; |
| 3358 return true; | 3358 return true; |
| 3359 } | 3359 } |
| 3360 | 3360 |
| 3361 } // namespace WebCore | 3361 } // namespace WebCore |
| OLD | NEW |