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 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2214 return isFocusable() && tabIndex() >= 0; | 2214 return isFocusable() && tabIndex() >= 0; |
2215 } | 2215 } |
2216 | 2216 |
2217 bool Element::isMouseFocusable() const | 2217 bool Element::isMouseFocusable() const |
2218 { | 2218 { |
2219 return isFocusable(); | 2219 return isFocusable(); |
2220 } | 2220 } |
2221 | 2221 |
2222 void Element::dispatchFocusEvent(Element* oldFocusedElement, FocusType) | 2222 void Element::dispatchFocusEvent(Element* oldFocusedElement, FocusType) |
2223 { | 2223 { |
2224 RefPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::focus, false,
false, document().domWindow(), 0, oldFocusedElement); | 2224 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::fo
cus, false, false, document().domWindow(), 0, oldFocusedElement); |
2225 EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(even
t.release())); | 2225 EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(even
t.release())); |
2226 } | 2226 } |
2227 | 2227 |
2228 void Element::dispatchBlurEvent(Element* newFocusedElement) | 2228 void Element::dispatchBlurEvent(Element* newFocusedElement) |
2229 { | 2229 { |
2230 RefPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::blur, false, f
alse, document().domWindow(), 0, newFocusedElement); | 2230 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::bl
ur, false, false, document().domWindow(), 0, newFocusedElement); |
2231 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event
.release())); | 2231 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event
.release())); |
2232 } | 2232 } |
2233 | 2233 |
2234 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo
cusedElement) | 2234 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo
cusedElement) |
2235 { | 2235 { |
2236 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); | 2236 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); |
2237 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames::
DOMFocusIn); | 2237 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames::
DOMFocusIn); |
2238 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc
usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle
ment))); | 2238 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc
usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle
ment))); |
2239 } | 2239 } |
2240 | 2240 |
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3362 || isHTMLObjectElement(*this) | 3362 || isHTMLObjectElement(*this) |
3363 || isHTMLAppletElement(*this) | 3363 || isHTMLAppletElement(*this) |
3364 || isHTMLCanvasElement(*this)) | 3364 || isHTMLCanvasElement(*this)) |
3365 return false; | 3365 return false; |
3366 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3366 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3367 return false; | 3367 return false; |
3368 return true; | 3368 return true; |
3369 } | 3369 } |
3370 | 3370 |
3371 } // namespace WebCore | 3371 } // namespace WebCore |
OLD | NEW |