| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 3598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3609 if (page() && (page()->focusController().isFocused())) { | 3609 if (page() && (page()->focusController().isFocused())) { |
| 3610 m_focusedElement->dispatchFocusEvent(oldFocusedElement.get(), type); | 3610 m_focusedElement->dispatchFocusEvent(oldFocusedElement.get(), type); |
| 3611 | 3611 |
| 3612 | 3612 |
| 3613 if (m_focusedElement != newFocusedElement) { | 3613 if (m_focusedElement != newFocusedElement) { |
| 3614 // handler shifted focus | 3614 // handler shifted focus |
| 3615 focusChangeBlocked = true; | 3615 focusChangeBlocked = true; |
| 3616 goto SetFocusedElementDone; | 3616 goto SetFocusedElementDone; |
| 3617 } | 3617 } |
| 3618 | 3618 |
| 3619 m_focusedElement->dispatchFocusInEvent(EventTypeNames::focusin, oldF
ocusedElement.get()); // DOM level 3 bubbling focus event. | 3619 m_focusedElement->dispatchFocusInEvent(EventTypeNames::focusin, oldF
ocusedElement.get(), type); // DOM level 3 bubbling focus event. |
| 3620 | 3620 |
| 3621 if (m_focusedElement != newFocusedElement) { | 3621 if (m_focusedElement != newFocusedElement) { |
| 3622 // handler shifted focus | 3622 // handler shifted focus |
| 3623 focusChangeBlocked = true; | 3623 focusChangeBlocked = true; |
| 3624 goto SetFocusedElementDone; | 3624 goto SetFocusedElementDone; |
| 3625 } | 3625 } |
| 3626 | 3626 |
| 3627 // FIXME: We should remove firing DOMFocusInEvent event when we are
sure no content depends | 3627 // FIXME: We should remove firing DOMFocusInEvent event when we are
sure no content depends |
| 3628 // on it, probably when <rdar://problem/8503958> is m. | 3628 // on it, probably when <rdar://problem/8503958> is m. |
| 3629 m_focusedElement->dispatchFocusInEvent(EventTypeNames::DOMFocusIn, o
ldFocusedElement.get()); // DOM level 2 for compatibility. | 3629 m_focusedElement->dispatchFocusInEvent(EventTypeNames::DOMFocusIn, o
ldFocusedElement.get(), type); // DOM level 2 for compatibility. |
| 3630 | 3630 |
| 3631 if (m_focusedElement != newFocusedElement) { | 3631 if (m_focusedElement != newFocusedElement) { |
| 3632 // handler shifted focus | 3632 // handler shifted focus |
| 3633 focusChangeBlocked = true; | 3633 focusChangeBlocked = true; |
| 3634 goto SetFocusedElementDone; | 3634 goto SetFocusedElementDone; |
| 3635 } | 3635 } |
| 3636 } | 3636 } |
| 3637 | 3637 |
| 3638 m_focusedElement->setFocus(true); | 3638 m_focusedElement->setFocus(true); |
| 3639 | 3639 |
| (...skipping 2211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5851 using namespace blink; | 5851 using namespace blink; |
| 5852 void showLiveDocumentInstances() | 5852 void showLiveDocumentInstances() |
| 5853 { | 5853 { |
| 5854 WeakDocumentSet& set = liveDocumentSet(); | 5854 WeakDocumentSet& set = liveDocumentSet(); |
| 5855 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5855 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5856 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 5856 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 5857 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 5857 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 5858 } | 5858 } |
| 5859 } | 5859 } |
| 5860 #endif | 5860 #endif |
| OLD | NEW |