| 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 4311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4322 return m_svgExtensions.get(); | 4322 return m_svgExtensions.get(); |
| 4323 } | 4323 } |
| 4324 | 4324 |
| 4325 bool Document::hasSVGRootNode() const | 4325 bool Document::hasSVGRootNode() const |
| 4326 { | 4326 { |
| 4327 return documentElement() && documentElement()->hasTagName(SVGNames::svgTag); | 4327 return documentElement() && documentElement()->hasTagName(SVGNames::svgTag); |
| 4328 } | 4328 } |
| 4329 | 4329 |
| 4330 PassRefPtr<HTMLCollection> Document::ensureCachedCollection(CollectionType type) | 4330 PassRefPtr<HTMLCollection> Document::ensureCachedCollection(CollectionType type) |
| 4331 { | 4331 { |
| 4332 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLCollect
ion>(this, type); | 4332 return ensureRareData().ensureNodeLists().addCache<HTMLCollection>(this, typ
e); |
| 4333 } | 4333 } |
| 4334 | 4334 |
| 4335 PassRefPtr<HTMLCollection> Document::images() | 4335 PassRefPtr<HTMLCollection> Document::images() |
| 4336 { | 4336 { |
| 4337 return ensureCachedCollection(DocImages); | 4337 return ensureCachedCollection(DocImages); |
| 4338 } | 4338 } |
| 4339 | 4339 |
| 4340 PassRefPtr<HTMLCollection> Document::applets() | 4340 PassRefPtr<HTMLCollection> Document::applets() |
| 4341 { | 4341 { |
| 4342 return ensureCachedCollection(DocApplets); | 4342 return ensureCachedCollection(DocApplets); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4368 } | 4368 } |
| 4369 | 4369 |
| 4370 PassRefPtr<HTMLCollection> Document::allForBinding() | 4370 PassRefPtr<HTMLCollection> Document::allForBinding() |
| 4371 { | 4371 { |
| 4372 UseCounter::count(*this, UseCounter::DocumentAll); | 4372 UseCounter::count(*this, UseCounter::DocumentAll); |
| 4373 return all(); | 4373 return all(); |
| 4374 } | 4374 } |
| 4375 | 4375 |
| 4376 PassRefPtr<HTMLCollection> Document::all() | 4376 PassRefPtr<HTMLCollection> Document::all() |
| 4377 { | 4377 { |
| 4378 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLAllColl
ection>(this, DocAll); | 4378 return ensureRareData().ensureNodeLists().addCache<HTMLAllCollection>(this,
DocAll); |
| 4379 } | 4379 } |
| 4380 | 4380 |
| 4381 PassRefPtr<HTMLCollection> Document::windowNamedItems(const AtomicString& name) | 4381 PassRefPtr<HTMLCollection> Document::windowNamedItems(const AtomicString& name) |
| 4382 { | 4382 { |
| 4383 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLNameCol
lection>(this, WindowNamedItems, name); | 4383 return ensureRareData().ensureNodeLists().addCache<HTMLNameCollection>(this,
WindowNamedItems, name); |
| 4384 } | 4384 } |
| 4385 | 4385 |
| 4386 PassRefPtr<HTMLCollection> Document::documentNamedItems(const AtomicString& name
) | 4386 PassRefPtr<HTMLCollection> Document::documentNamedItems(const AtomicString& name
) |
| 4387 { | 4387 { |
| 4388 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLNameCol
lection>(this, DocumentNamedItems, name); | 4388 return ensureRareData().ensureNodeLists().addCache<HTMLNameCollection>(this,
DocumentNamedItems, name); |
| 4389 } | 4389 } |
| 4390 | 4390 |
| 4391 void Document::finishedParsing() | 4391 void Document::finishedParsing() |
| 4392 { | 4392 { |
| 4393 ASSERT(!scriptableDocumentParser() || !m_parser->isParsing()); | 4393 ASSERT(!scriptableDocumentParser() || !m_parser->isParsing()); |
| 4394 ASSERT(!scriptableDocumentParser() || m_readyState != Loading); | 4394 ASSERT(!scriptableDocumentParser() || m_readyState != Loading); |
| 4395 setParsing(false); | 4395 setParsing(false); |
| 4396 if (!m_documentTiming.domContentLoadedEventStart) | 4396 if (!m_documentTiming.domContentLoadedEventStart) |
| 4397 m_documentTiming.domContentLoadedEventStart = monotonicallyIncreasingTim
e(); | 4397 m_documentTiming.domContentLoadedEventStart = monotonicallyIncreasingTim
e(); |
| 4398 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded)); | 4398 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded)); |
| (...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5405 void Document::defaultEventHandler(Event* event) | 5405 void Document::defaultEventHandler(Event* event) |
| 5406 { | 5406 { |
| 5407 if (frame() && frame()->remotePlatformLayer()) { | 5407 if (frame() && frame()->remotePlatformLayer()) { |
| 5408 frame()->chromeClient().forwardInputEvent(this, event); | 5408 frame()->chromeClient().forwardInputEvent(this, event); |
| 5409 return; | 5409 return; |
| 5410 } | 5410 } |
| 5411 Node::defaultEventHandler(event); | 5411 Node::defaultEventHandler(event); |
| 5412 } | 5412 } |
| 5413 | 5413 |
| 5414 } // namespace WebCore | 5414 } // namespace WebCore |
| OLD | NEW |