| 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 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2050 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean); | 2050 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean); |
| 2051 } | 2051 } |
| 2052 | 2052 |
| 2053 void Document::detach(const AttachContext& context) | 2053 void Document::detach(const AttachContext& context) |
| 2054 { | 2054 { |
| 2055 ASSERT(isActive()); | 2055 ASSERT(isActive()); |
| 2056 m_lifecycle.advanceTo(DocumentLifecycle::Stopping); | 2056 m_lifecycle.advanceTo(DocumentLifecycle::Stopping); |
| 2057 | 2057 |
| 2058 if (page()) | 2058 if (page()) |
| 2059 page()->documentDetached(this); | 2059 page()->documentDetached(this); |
| 2060 InspectorInstrumentation::documentDetached(this); |
| 2060 | 2061 |
| 2061 if (m_frame->loader().client()->sharedWorkerRepositoryClient()) | 2062 if (m_frame->loader().client()->sharedWorkerRepositoryClient()) |
| 2062 m_frame->loader().client()->sharedWorkerRepositoryClient()->documentDeta
ched(this); | 2063 m_frame->loader().client()->sharedWorkerRepositoryClient()->documentDeta
ched(this); |
| 2063 | 2064 |
| 2064 if (this == topDocument()) | 2065 if (this == topDocument()) |
| 2065 clearAXObjectCache(); | 2066 clearAXObjectCache(); |
| 2066 | 2067 |
| 2067 stopActiveDOMObjects(); | 2068 stopActiveDOMObjects(); |
| 2068 | 2069 |
| 2069 // FIXME: consider using ActiveDOMObject. | 2070 // FIXME: consider using ActiveDOMObject. |
| (...skipping 3373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5443 } | 5444 } |
| 5444 | 5445 |
| 5445 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5446 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
| 5446 { | 5447 { |
| 5447 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5448 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
| 5448 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5449 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
| 5449 (*it)->invalidateCache(attrName); | 5450 (*it)->invalidateCache(attrName); |
| 5450 } | 5451 } |
| 5451 | 5452 |
| 5452 } // namespace WebCore | 5453 } // namespace WebCore |
| OLD | NEW |