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 5330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5341 Element* innerElementInDocument = innerElement; | 5341 Element* innerElementInDocument = innerElement; |
5342 while (innerElementInDocument && innerElementInDocument->document() != this)
{ | 5342 while (innerElementInDocument && innerElementInDocument->document() != this)
{ |
5343 innerElementInDocument->document().updateHoverActiveState(request, inner
ElementInDocument); | 5343 innerElementInDocument->document().updateHoverActiveState(request, inner
ElementInDocument); |
5344 innerElementInDocument = innerElementInDocument->document().ownerElement
(); | 5344 innerElementInDocument = innerElementInDocument->document().ownerElement
(); |
5345 } | 5345 } |
5346 | 5346 |
5347 Element* oldActiveElement = activeHoverElement(); | 5347 Element* oldActiveElement = activeHoverElement(); |
5348 if (oldActiveElement && !request.active()) { | 5348 if (oldActiveElement && !request.active()) { |
5349 // The oldActiveElement layoutObject is null, dropped on :active by sett
ing display: none, | 5349 // The oldActiveElement layoutObject is null, dropped on :active by sett
ing display: none, |
5350 // for instance. We still need to clear the ActiveChain as the mouse is
released. | 5350 // for instance. We still need to clear the ActiveChain as the mouse is
released. |
5351 for (RefPtr<Node> node = oldActiveElement; node; node = ComposedTreeTrav
ersal::parent(*node)) { | 5351 for (RefPtrWillBeRawPtr<Node> node = oldActiveElement; node; node = Comp
osedTreeTraversal::parent(*node)) { |
5352 ASSERT(!node->isTextNode()); | 5352 ASSERT(!node->isTextNode()); |
5353 node->setActive(false); | 5353 node->setActive(false); |
5354 m_userActionElements.setInActiveChain(node.get(), false); | 5354 m_userActionElements.setInActiveChain(node.get(), false); |
5355 } | 5355 } |
5356 setActiveHoverElement(nullptr); | 5356 setActiveHoverElement(nullptr); |
5357 } else { | 5357 } else { |
5358 Element* newActiveElement = innerElementInDocument; | 5358 Element* newActiveElement = innerElementInDocument; |
5359 if (!oldActiveElement && newActiveElement && !newActiveElement->isDisabl
edFormControl() && request.active() && !request.touchMove()) { | 5359 if (!oldActiveElement && newActiveElement && !newActiveElement->isDisabl
edFormControl() && request.active() && !request.touchMove()) { |
5360 // We are setting the :active chain and freezing it. If future moves
happen, they | 5360 // We are setting the :active chain and freezing it. If future moves
happen, they |
5361 // will need to reference this chain. | 5361 // will need to reference this chain. |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5780 #ifndef NDEBUG | 5780 #ifndef NDEBUG |
5781 using namespace blink; | 5781 using namespace blink; |
5782 void showLiveDocumentInstances() | 5782 void showLiveDocumentInstances() |
5783 { | 5783 { |
5784 WeakDocumentSet& set = liveDocumentSet(); | 5784 WeakDocumentSet& set = liveDocumentSet(); |
5785 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5785 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5786 for (Document* document : set) | 5786 for (Document* document : set) |
5787 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5787 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5788 } | 5788 } |
5789 #endif | 5789 #endif |
OLD | NEW |