| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 *errorMessage = origin->isPotentiallyTrustworthyErrorMessage(); | 356 *errorMessage = origin->isPotentiallyTrustworthyErrorMessage(); |
| 357 return false; | 357 return false; |
| 358 } | 358 } |
| 359 | 359 |
| 360 uint64_t Document::s_globalTreeVersion = 0; | 360 uint64_t Document::s_globalTreeVersion = 0; |
| 361 | 361 |
| 362 static bool s_threadedParsingEnabledForTesting = true; | 362 static bool s_threadedParsingEnabledForTesting = true; |
| 363 | 363 |
| 364 Document::WeakDocumentSet& Document::liveDocumentSet() | 364 Document::WeakDocumentSet& Document::liveDocumentSet() |
| 365 { | 365 { |
| 366 DEFINE_STATIC_LOCAL(WeakDocumentSet, set, (new WeakDocumentSet)); | 366 DEFINE_STATIC_LOCAL(Persistent<WeakDocumentSet>, set, (new WeakDocumentSet()
)); |
| 367 return set; | 367 return *set; |
| 368 } | 368 } |
| 369 | 369 |
| 370 // This class doesn't work with non-Document ExecutionContext. | 370 // This class doesn't work with non-Document ExecutionContext. |
| 371 class AutofocusTask final : public ExecutionContextTask { | 371 class AutofocusTask final : public ExecutionContextTask { |
| 372 public: | 372 public: |
| 373 static PassOwnPtr<AutofocusTask> create() | 373 static PassOwnPtr<AutofocusTask> create() |
| 374 { | 374 { |
| 375 return adoptPtr(new AutofocusTask()); | 375 return adoptPtr(new AutofocusTask()); |
| 376 } | 376 } |
| 377 ~AutofocusTask() override { } | 377 ~AutofocusTask() override { } |
| (...skipping 5652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6030 #ifndef NDEBUG | 6030 #ifndef NDEBUG |
| 6031 using namespace blink; | 6031 using namespace blink; |
| 6032 void showLiveDocumentInstances() | 6032 void showLiveDocumentInstances() |
| 6033 { | 6033 { |
| 6034 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6034 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6035 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6035 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6036 for (Document* document : set) | 6036 for (Document* document : set) |
| 6037 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6037 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6038 } | 6038 } |
| 6039 #endif | 6039 #endif |
| OLD | NEW |