| 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 6351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6362 if (!m_propertyRegistry && RuntimeEnabledFeatures::cssVariables2Enabled()) | 6362 if (!m_propertyRegistry && RuntimeEnabledFeatures::cssVariables2Enabled()) |
| 6363 m_propertyRegistry = PropertyRegistry::create(); | 6363 m_propertyRegistry = PropertyRegistry::create(); |
| 6364 return m_propertyRegistry; | 6364 return m_propertyRegistry; |
| 6365 } | 6365 } |
| 6366 | 6366 |
| 6367 void Document::incrementPasswordCount() { | 6367 void Document::incrementPasswordCount() { |
| 6368 ++m_passwordCount; | 6368 ++m_passwordCount; |
| 6369 } | 6369 } |
| 6370 | 6370 |
| 6371 void Document::decrementPasswordCount() { | 6371 void Document::decrementPasswordCount() { |
| 6372 DCHECK_GT(m_passwordCount, 0u); |
| 6372 --m_passwordCount; | 6373 --m_passwordCount; |
| 6373 } | 6374 } |
| 6374 | 6375 |
| 6375 unsigned Document::passwordCount() const { | 6376 unsigned Document::passwordCount() const { |
| 6376 return m_passwordCount; | 6377 return m_passwordCount; |
| 6377 } | 6378 } |
| 6378 | 6379 |
| 6379 DEFINE_TRACE(Document) { | 6380 DEFINE_TRACE(Document) { |
| 6380 visitor->trace(m_importsController); | 6381 visitor->trace(m_importsController); |
| 6381 visitor->trace(m_docType); | 6382 visitor->trace(m_docType); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6481 } | 6482 } |
| 6482 | 6483 |
| 6483 void showLiveDocumentInstances() { | 6484 void showLiveDocumentInstances() { |
| 6484 WeakDocumentSet& set = liveDocumentSet(); | 6485 WeakDocumentSet& set = liveDocumentSet(); |
| 6485 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6486 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6486 for (Document* document : set) | 6487 for (Document* document : set) |
| 6487 fprintf(stderr, "- Document %p URL: %s\n", document, | 6488 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6488 document->url().getString().utf8().data()); | 6489 document->url().getString().utf8().data()); |
| 6489 } | 6490 } |
| 6490 #endif | 6491 #endif |
| OLD | NEW |