| 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 DCHECK(layoutViewItem().isNull()); | 565 DCHECK(layoutViewItem().isNull()); |
| 566 DCHECK(!parentTreeScope()); | 566 DCHECK(!parentTreeScope()); |
| 567 // If a top document with a cache, verify that it was comprehensively | 567 // If a top document with a cache, verify that it was comprehensively |
| 568 // cleared during detach. | 568 // cleared during detach. |
| 569 DCHECK(!m_axObjectCache); | 569 DCHECK(!m_axObjectCache); |
| 570 InstanceCounters::decrementCounter(InstanceCounters::DocumentCounter); | 570 InstanceCounters::decrementCounter(InstanceCounters::DocumentCounter); |
| 571 } | 571 } |
| 572 | 572 |
| 573 SelectorQueryCache& Document::selectorQueryCache() { | 573 SelectorQueryCache& Document::selectorQueryCache() { |
| 574 if (!m_selectorQueryCache) | 574 if (!m_selectorQueryCache) |
| 575 m_selectorQueryCache = wrapUnique(new SelectorQueryCache()); | 575 m_selectorQueryCache = makeUnique<SelectorQueryCache>(); |
| 576 return *m_selectorQueryCache; | 576 return *m_selectorQueryCache; |
| 577 } | 577 } |
| 578 | 578 |
| 579 MediaQueryMatcher& Document::mediaQueryMatcher() { | 579 MediaQueryMatcher& Document::mediaQueryMatcher() { |
| 580 if (!m_mediaQueryMatcher) | 580 if (!m_mediaQueryMatcher) |
| 581 m_mediaQueryMatcher = MediaQueryMatcher::create(*this); | 581 m_mediaQueryMatcher = MediaQueryMatcher::create(*this); |
| 582 return *m_mediaQueryMatcher; | 582 return *m_mediaQueryMatcher; |
| 583 } | 583 } |
| 584 | 584 |
| 585 void Document::mediaQueryAffectingValueChanged() { | 585 void Document::mediaQueryAffectingValueChanged() { |
| (...skipping 5851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6437 } | 6437 } |
| 6438 | 6438 |
| 6439 void showLiveDocumentInstances() { | 6439 void showLiveDocumentInstances() { |
| 6440 WeakDocumentSet& set = liveDocumentSet(); | 6440 WeakDocumentSet& set = liveDocumentSet(); |
| 6441 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6441 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6442 for (Document* document : set) | 6442 for (Document* document : set) |
| 6443 fprintf(stderr, "- Document %p URL: %s\n", document, | 6443 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6444 document->url().getString().utf8().data()); | 6444 document->url().getString().utf8().data()); |
| 6445 } | 6445 } |
| 6446 #endif | 6446 #endif |
| OLD | NEW |