| 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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 DCHECK(layoutViewItem().isNull()); | 551 DCHECK(layoutViewItem().isNull()); |
| 552 DCHECK(!parentTreeScope()); | 552 DCHECK(!parentTreeScope()); |
| 553 // If a top document with a cache, verify that it was comprehensively | 553 // If a top document with a cache, verify that it was comprehensively |
| 554 // cleared during detach. | 554 // cleared during detach. |
| 555 DCHECK(!m_axObjectCache); | 555 DCHECK(!m_axObjectCache); |
| 556 InstanceCounters::decrementCounter(InstanceCounters::DocumentCounter); | 556 InstanceCounters::decrementCounter(InstanceCounters::DocumentCounter); |
| 557 } | 557 } |
| 558 | 558 |
| 559 SelectorQueryCache& Document::selectorQueryCache() { | 559 SelectorQueryCache& Document::selectorQueryCache() { |
| 560 if (!m_selectorQueryCache) | 560 if (!m_selectorQueryCache) |
| 561 m_selectorQueryCache = makeUnique<SelectorQueryCache>(); | 561 m_selectorQueryCache = WTF::makeUnique<SelectorQueryCache>(); |
| 562 return *m_selectorQueryCache; | 562 return *m_selectorQueryCache; |
| 563 } | 563 } |
| 564 | 564 |
| 565 MediaQueryMatcher& Document::mediaQueryMatcher() { | 565 MediaQueryMatcher& Document::mediaQueryMatcher() { |
| 566 if (!m_mediaQueryMatcher) | 566 if (!m_mediaQueryMatcher) |
| 567 m_mediaQueryMatcher = MediaQueryMatcher::create(*this); | 567 m_mediaQueryMatcher = MediaQueryMatcher::create(*this); |
| 568 return *m_mediaQueryMatcher; | 568 return *m_mediaQueryMatcher; |
| 569 } | 569 } |
| 570 | 570 |
| 571 void Document::mediaQueryAffectingValueChanged() { | 571 void Document::mediaQueryAffectingValueChanged() { |
| (...skipping 3762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4334 m_scriptedAnimationController->dispatchEventsAndCallbacksForPrinting(); | 4334 m_scriptedAnimationController->dispatchEventsAndCallbacksForPrinting(); |
| 4335 } | 4335 } |
| 4336 | 4336 |
| 4337 Document::EventFactorySet& Document::eventFactories() { | 4337 Document::EventFactorySet& Document::eventFactories() { |
| 4338 DEFINE_STATIC_LOCAL(EventFactorySet, s_eventFactory, ()); | 4338 DEFINE_STATIC_LOCAL(EventFactorySet, s_eventFactory, ()); |
| 4339 return s_eventFactory; | 4339 return s_eventFactory; |
| 4340 } | 4340 } |
| 4341 | 4341 |
| 4342 const OriginAccessEntry& Document::accessEntryFromURL() { | 4342 const OriginAccessEntry& Document::accessEntryFromURL() { |
| 4343 if (!m_accessEntryFromURL) { | 4343 if (!m_accessEntryFromURL) { |
| 4344 m_accessEntryFromURL = wrapUnique( | 4344 m_accessEntryFromURL = WTF::wrapUnique( |
| 4345 new OriginAccessEntry(url().protocol(), url().host(), | 4345 new OriginAccessEntry(url().protocol(), url().host(), |
| 4346 OriginAccessEntry::AllowRegisterableDomains)); | 4346 OriginAccessEntry::AllowRegisterableDomains)); |
| 4347 } | 4347 } |
| 4348 return *m_accessEntryFromURL; | 4348 return *m_accessEntryFromURL; |
| 4349 } | 4349 } |
| 4350 | 4350 |
| 4351 void Document::sendSensitiveInputVisibility() { | 4351 void Document::sendSensitiveInputVisibility() { |
| 4352 if (m_sensitiveInputVisibilityTask.isActive()) | 4352 if (m_sensitiveInputVisibilityTask.isActive()) |
| 4353 return; | 4353 return; |
| 4354 | 4354 |
| (...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6589 } | 6589 } |
| 6590 | 6590 |
| 6591 void showLiveDocumentInstances() { | 6591 void showLiveDocumentInstances() { |
| 6592 WeakDocumentSet& set = liveDocumentSet(); | 6592 WeakDocumentSet& set = liveDocumentSet(); |
| 6593 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6593 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6594 for (Document* document : set) | 6594 for (Document* document : set) |
| 6595 fprintf(stderr, "- Document %p URL: %s\n", document, | 6595 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6596 document->url().getString().utf8().data()); | 6596 document->url().getString().utf8().data()); |
| 6597 } | 6597 } |
| 6598 #endif | 6598 #endif |
| OLD | NEW |