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 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2314 ASSERT(topDocument == this || !m_axObjectCache); | 2314 ASSERT(topDocument == this || !m_axObjectCache); |
2315 if (!topDocument.m_axObjectCache) | 2315 if (!topDocument.m_axObjectCache) |
2316 topDocument.m_axObjectCache = adoptPtr(new AXObjectCache(topDocument)); | 2316 topDocument.m_axObjectCache = adoptPtr(new AXObjectCache(topDocument)); |
2317 return topDocument.m_axObjectCache.get(); | 2317 return topDocument.m_axObjectCache.get(); |
2318 } | 2318 } |
2319 | 2319 |
2320 PassRefPtr<DocumentParser> Document::createParser() | 2320 PassRefPtr<DocumentParser> Document::createParser() |
2321 { | 2321 { |
2322 if (isHTMLDocument()) { | 2322 if (isHTMLDocument()) { |
2323 bool reportErrors = InspectorInstrumentation::collectingHTMLParseErrors(
page()); | 2323 bool reportErrors = InspectorInstrumentation::collectingHTMLParseErrors(
page()); |
2324 return HTMLDocumentParser::create(toHTMLDocument(this), reportErrors); | 2324 return HTMLDocumentParser::create(toHTMLDocument(*this), reportErrors); |
2325 } | 2325 } |
2326 // FIXME: this should probably pass the frame instead | 2326 // FIXME: this should probably pass the frame instead |
2327 return XMLDocumentParser::create(*this, view()); | 2327 return XMLDocumentParser::create(*this, view()); |
2328 } | 2328 } |
2329 | 2329 |
2330 bool Document::isFrameSet() const | 2330 bool Document::isFrameSet() const |
2331 { | 2331 { |
2332 if (!isHTMLDocument()) | 2332 if (!isHTMLDocument()) |
2333 return false; | 2333 return false; |
2334 return isHTMLFrameSetElement(body()); | 2334 return isHTMLFrameSetElement(body()); |
(...skipping 3425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5760 visitor->trace(m_timeline); | 5760 visitor->trace(m_timeline); |
5761 visitor->trace(m_compositorPendingAnimations); | 5761 visitor->trace(m_compositorPendingAnimations); |
5762 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5762 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
5763 DocumentSupplementable::trace(visitor); | 5763 DocumentSupplementable::trace(visitor); |
5764 TreeScope::trace(visitor); | 5764 TreeScope::trace(visitor); |
5765 ContainerNode::trace(visitor); | 5765 ContainerNode::trace(visitor); |
5766 ExecutionContext::trace(visitor); | 5766 ExecutionContext::trace(visitor); |
5767 } | 5767 } |
5768 | 5768 |
5769 } // namespace WebCore | 5769 } // namespace WebCore |
OLD | NEW |