| 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 4244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4255 return m_svgExtensions.get(); | 4255 return m_svgExtensions.get(); |
| 4256 } | 4256 } |
| 4257 | 4257 |
| 4258 bool Document::hasSVGRootNode() const | 4258 bool Document::hasSVGRootNode() const |
| 4259 { | 4259 { |
| 4260 return documentElement() && documentElement()->hasTagName(SVGNames::svgTag); | 4260 return documentElement() && documentElement()->hasTagName(SVGNames::svgTag); |
| 4261 } | 4261 } |
| 4262 | 4262 |
| 4263 PassRefPtr<HTMLCollection> Document::ensureCachedCollection(CollectionType type) | 4263 PassRefPtr<HTMLCollection> Document::ensureCachedCollection(CollectionType type) |
| 4264 { | 4264 { |
| 4265 return ensureRareData().ensureNodeLists()->addCacheWithAtomicName<HTMLCollec
tion>(this, type); | 4265 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLCollect
ion>(this, type); |
| 4266 } | 4266 } |
| 4267 | 4267 |
| 4268 PassRefPtr<HTMLCollection> Document::images() | 4268 PassRefPtr<HTMLCollection> Document::images() |
| 4269 { | 4269 { |
| 4270 return ensureCachedCollection(DocImages); | 4270 return ensureCachedCollection(DocImages); |
| 4271 } | 4271 } |
| 4272 | 4272 |
| 4273 PassRefPtr<HTMLCollection> Document::applets() | 4273 PassRefPtr<HTMLCollection> Document::applets() |
| 4274 { | 4274 { |
| 4275 return ensureCachedCollection(DocApplets); | 4275 return ensureCachedCollection(DocApplets); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4307 } | 4307 } |
| 4308 | 4308 |
| 4309 PassRefPtr<HTMLCollection> Document::allForBinding() | 4309 PassRefPtr<HTMLCollection> Document::allForBinding() |
| 4310 { | 4310 { |
| 4311 UseCounter::count(*this, UseCounter::DocumentAll); | 4311 UseCounter::count(*this, UseCounter::DocumentAll); |
| 4312 return all(); | 4312 return all(); |
| 4313 } | 4313 } |
| 4314 | 4314 |
| 4315 PassRefPtr<HTMLCollection> Document::all() | 4315 PassRefPtr<HTMLCollection> Document::all() |
| 4316 { | 4316 { |
| 4317 return ensureRareData().ensureNodeLists()->addCacheWithAtomicName<HTMLAllCol
lection>(this, DocAll); | 4317 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLAllColl
ection>(this, DocAll); |
| 4318 } | 4318 } |
| 4319 | 4319 |
| 4320 PassRefPtr<HTMLCollection> Document::windowNamedItems(const AtomicString& name) | 4320 PassRefPtr<HTMLCollection> Document::windowNamedItems(const AtomicString& name) |
| 4321 { | 4321 { |
| 4322 return ensureRareData().ensureNodeLists()->addCacheWithAtomicName<HTMLNameCo
llection>(this, WindowNamedItems, name); | 4322 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLNameCol
lection>(this, WindowNamedItems, name); |
| 4323 } | 4323 } |
| 4324 | 4324 |
| 4325 PassRefPtr<HTMLCollection> Document::documentNamedItems(const AtomicString& name
) | 4325 PassRefPtr<HTMLCollection> Document::documentNamedItems(const AtomicString& name
) |
| 4326 { | 4326 { |
| 4327 return ensureRareData().ensureNodeLists()->addCacheWithAtomicName<HTMLNameCo
llection>(this, DocumentNamedItems, name); | 4327 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLNameCol
lection>(this, DocumentNamedItems, name); |
| 4328 } | 4328 } |
| 4329 | 4329 |
| 4330 void Document::finishedParsing() | 4330 void Document::finishedParsing() |
| 4331 { | 4331 { |
| 4332 ASSERT(!scriptableDocumentParser() || !m_parser->isParsing()); | 4332 ASSERT(!scriptableDocumentParser() || !m_parser->isParsing()); |
| 4333 ASSERT(!scriptableDocumentParser() || m_readyState != Loading); | 4333 ASSERT(!scriptableDocumentParser() || m_readyState != Loading); |
| 4334 setParsing(false); | 4334 setParsing(false); |
| 4335 if (!m_documentTiming.domContentLoadedEventStart) | 4335 if (!m_documentTiming.domContentLoadedEventStart) |
| 4336 m_documentTiming.domContentLoadedEventStart = monotonicallyIncreasingTim
e(); | 4336 m_documentTiming.domContentLoadedEventStart = monotonicallyIncreasingTim
e(); |
| 4337 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded)); | 4337 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded)); |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5325 { | 5325 { |
| 5326 return DocumentLifecycleNotifier::create(this); | 5326 return DocumentLifecycleNotifier::create(this); |
| 5327 } | 5327 } |
| 5328 | 5328 |
| 5329 DocumentLifecycleNotifier* Document::lifecycleNotifier() | 5329 DocumentLifecycleNotifier* Document::lifecycleNotifier() |
| 5330 { | 5330 { |
| 5331 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo
tifier()); | 5331 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo
tifier()); |
| 5332 } | 5332 } |
| 5333 | 5333 |
| 5334 } // namespace WebCore | 5334 } // namespace WebCore |
| OLD | NEW |