| 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 4209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4220 return m_svgExtensions.get(); | 4220 return m_svgExtensions.get(); |
| 4221 } | 4221 } |
| 4222 | 4222 |
| 4223 bool Document::hasSVGRootNode() const | 4223 bool Document::hasSVGRootNode() const |
| 4224 { | 4224 { |
| 4225 return documentElement() && documentElement()->hasTagName(SVGNames::svgTag); | 4225 return documentElement() && documentElement()->hasTagName(SVGNames::svgTag); |
| 4226 } | 4226 } |
| 4227 | 4227 |
| 4228 PassRefPtr<HTMLCollection> Document::ensureCachedCollection(CollectionType type) | 4228 PassRefPtr<HTMLCollection> Document::ensureCachedCollection(CollectionType type) |
| 4229 { | 4229 { |
| 4230 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLColle
ction>(this, type); | 4230 return ensureRareData().ensureNodeLists()->addCacheWithAtomicName<HTMLCollec
tion>(this, type); |
| 4231 } | 4231 } |
| 4232 | 4232 |
| 4233 PassRefPtr<HTMLCollection> Document::images() | 4233 PassRefPtr<HTMLCollection> Document::images() |
| 4234 { | 4234 { |
| 4235 return ensureCachedCollection(DocImages); | 4235 return ensureCachedCollection(DocImages); |
| 4236 } | 4236 } |
| 4237 | 4237 |
| 4238 PassRefPtr<HTMLCollection> Document::applets() | 4238 PassRefPtr<HTMLCollection> Document::applets() |
| 4239 { | 4239 { |
| 4240 return ensureCachedCollection(DocApplets); | 4240 return ensureCachedCollection(DocApplets); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4272 } | 4272 } |
| 4273 | 4273 |
| 4274 PassRefPtr<HTMLCollection> Document::allForBinding() | 4274 PassRefPtr<HTMLCollection> Document::allForBinding() |
| 4275 { | 4275 { |
| 4276 UseCounter::count(*this, UseCounter::DocumentAll); | 4276 UseCounter::count(*this, UseCounter::DocumentAll); |
| 4277 return all(); | 4277 return all(); |
| 4278 } | 4278 } |
| 4279 | 4279 |
| 4280 PassRefPtr<HTMLCollection> Document::all() | 4280 PassRefPtr<HTMLCollection> Document::all() |
| 4281 { | 4281 { |
| 4282 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLAllCo
llection>(this, DocAll); | 4282 return ensureRareData().ensureNodeLists()->addCacheWithAtomicName<HTMLAllCol
lection>(this, DocAll); |
| 4283 } | 4283 } |
| 4284 | 4284 |
| 4285 PassRefPtr<HTMLCollection> Document::windowNamedItems(const AtomicString& name) | 4285 PassRefPtr<HTMLCollection> Document::windowNamedItems(const AtomicString& name) |
| 4286 { | 4286 { |
| 4287 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLNameC
ollection>(this, WindowNamedItems, name); | 4287 return ensureRareData().ensureNodeLists()->addCacheWithAtomicName<HTMLNameCo
llection>(this, WindowNamedItems, name); |
| 4288 } | 4288 } |
| 4289 | 4289 |
| 4290 PassRefPtr<HTMLCollection> Document::documentNamedItems(const AtomicString& name
) | 4290 PassRefPtr<HTMLCollection> Document::documentNamedItems(const AtomicString& name
) |
| 4291 { | 4291 { |
| 4292 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLNameC
ollection>(this, DocumentNamedItems, name); | 4292 return ensureRareData().ensureNodeLists()->addCacheWithAtomicName<HTMLNameCo
llection>(this, DocumentNamedItems, name); |
| 4293 } | 4293 } |
| 4294 | 4294 |
| 4295 void Document::finishedParsing() | 4295 void Document::finishedParsing() |
| 4296 { | 4296 { |
| 4297 ASSERT(!scriptableDocumentParser() || !m_parser->isParsing()); | 4297 ASSERT(!scriptableDocumentParser() || !m_parser->isParsing()); |
| 4298 ASSERT(!scriptableDocumentParser() || m_readyState != Loading); | 4298 ASSERT(!scriptableDocumentParser() || m_readyState != Loading); |
| 4299 setParsing(false); | 4299 setParsing(false); |
| 4300 if (!m_documentTiming.domContentLoadedEventStart) | 4300 if (!m_documentTiming.domContentLoadedEventStart) |
| 4301 m_documentTiming.domContentLoadedEventStart = monotonicallyIncreasingTim
e(); | 4301 m_documentTiming.domContentLoadedEventStart = monotonicallyIncreasingTim
e(); |
| 4302 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded)); | 4302 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded)); |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5290 { | 5290 { |
| 5291 return DocumentLifecycleNotifier::create(this); | 5291 return DocumentLifecycleNotifier::create(this); |
| 5292 } | 5292 } |
| 5293 | 5293 |
| 5294 DocumentLifecycleNotifier* Document::lifecycleNotifier() | 5294 DocumentLifecycleNotifier* Document::lifecycleNotifier() |
| 5295 { | 5295 { |
| 5296 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo
tifier()); | 5296 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo
tifier()); |
| 5297 } | 5297 } |
| 5298 | 5298 |
| 5299 } // namespace WebCore | 5299 } // namespace WebCore |
| OLD | NEW |