| 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 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 | 2035 |
| 2036 m_renderView = new RenderView(this); | 2036 m_renderView = new RenderView(this); |
| 2037 setRenderer(m_renderView); | 2037 setRenderer(m_renderView); |
| 2038 | 2038 |
| 2039 m_renderView->setIsInWindow(true); | 2039 m_renderView->setIsInWindow(true); |
| 2040 m_renderView->setStyle(StyleResolver::styleForDocument(*this)); | 2040 m_renderView->setStyle(StyleResolver::styleForDocument(*this)); |
| 2041 view()->updateCompositingLayersAfterStyleChange(); | 2041 view()->updateCompositingLayersAfterStyleChange(); |
| 2042 | 2042 |
| 2043 ContainerNode::attach(context); | 2043 ContainerNode::attach(context); |
| 2044 | 2044 |
| 2045 // FTA can't update render view info while the Document is detached, so upda
te now in case anything changed. |
| 2046 if (FastTextAutosizer* textAutosizer = fastTextAutosizer()) |
| 2047 textAutosizer->updatePageInfo(); |
| 2048 |
| 2045 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean); | 2049 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean); |
| 2046 } | 2050 } |
| 2047 | 2051 |
| 2048 void Document::detach(const AttachContext& context) | 2052 void Document::detach(const AttachContext& context) |
| 2049 { | 2053 { |
| 2050 ASSERT(isActive()); | 2054 ASSERT(isActive()); |
| 2051 m_lifecycle.advanceTo(DocumentLifecycle::Stopping); | 2055 m_lifecycle.advanceTo(DocumentLifecycle::Stopping); |
| 2052 | 2056 |
| 2053 if (page()) | 2057 if (page()) |
| 2054 page()->documentDetached(this); | 2058 page()->documentDetached(this); |
| (...skipping 3409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5464 } | 5468 } |
| 5465 | 5469 |
| 5466 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5470 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
| 5467 { | 5471 { |
| 5468 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5472 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
| 5469 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5473 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
| 5470 (*it)->invalidateCache(attrName); | 5474 (*it)->invalidateCache(attrName); |
| 5471 } | 5475 } |
| 5472 | 5476 |
| 5473 } // namespace WebCore | 5477 } // namespace WebCore |
| OLD | NEW |