Chromium Code Reviews| 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 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2120 m_activeHoverElement = nullptr; | 2120 m_activeHoverElement = nullptr; |
| 2121 m_autofocusElement = nullptr; | 2121 m_autofocusElement = nullptr; |
| 2122 | 2122 |
| 2123 if (m_focusedElement.get()) { | 2123 if (m_focusedElement.get()) { |
| 2124 RefPtrWillBeRawPtr<Element> oldFocusedElement = m_focusedElement; | 2124 RefPtrWillBeRawPtr<Element> oldFocusedElement = m_focusedElement; |
| 2125 m_focusedElement = nullptr; | 2125 m_focusedElement = nullptr; |
| 2126 if (frameHost()) | 2126 if (frameHost()) |
| 2127 frameHost()->chromeClient().focusedNodeChanged(oldFocusedElement.get (), nullptr); | 2127 frameHost()->chromeClient().focusedNodeChanged(oldFocusedElement.get (), nullptr); |
| 2128 } | 2128 } |
| 2129 | 2129 |
| 2130 if (this == &axObjectCacheOwner()) | 2130 if (this == &axObjectCacheOwner()) { |
| 2131 clearAXObjectCache(); | 2131 clearAXObjectCache(); |
| 2132 } else if (AXObjectCache* cache = existingAXObjectCache()) { | |
| 2133 for (Element& element : ElementTraversal::descendantsOf(*this)) { | |
| 2134 cache->remove(&element); | |
|
dmazzoni
2015/06/08 15:25:49
What would happen if we called AXObjectCache::getO
| |
| 2135 } | |
| 2136 } | |
| 2132 | 2137 |
| 2133 m_layoutView = nullptr; | 2138 m_layoutView = nullptr; |
| 2134 ContainerNode::detach(context); | 2139 ContainerNode::detach(context); |
| 2135 | 2140 |
| 2136 styleEngine().didDetach(); | 2141 styleEngine().didDetach(); |
| 2137 | 2142 |
| 2138 frameHost()->eventHandlerRegistry().documentDetached(*this); | 2143 frameHost()->eventHandlerRegistry().documentDetached(*this); |
| 2139 | 2144 |
| 2140 // If this Document is associated with a live DocumentLoader, the | 2145 // If this Document is associated with a live DocumentLoader, the |
| 2141 // DocumentLoader will take care of clearing the FetchContext. Deferring | 2146 // DocumentLoader will take care of clearing the FetchContext. Deferring |
| (...skipping 3534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5676 #ifndef NDEBUG | 5681 #ifndef NDEBUG |
| 5677 using namespace blink; | 5682 using namespace blink; |
| 5678 void showLiveDocumentInstances() | 5683 void showLiveDocumentInstances() |
| 5679 { | 5684 { |
| 5680 WeakDocumentSet& set = liveDocumentSet(); | 5685 WeakDocumentSet& set = liveDocumentSet(); |
| 5681 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5686 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5682 for (Document* document : set) | 5687 for (Document* document : set) |
| 5683 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); | 5688 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); |
| 5684 } | 5689 } |
| 5685 #endif | 5690 #endif |
| OLD | NEW |