| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
| 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
| 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 , m_lruIndex(0) | 104 , m_lruIndex(0) |
| 105 #endif | 105 #endif |
| 106 , m_nextInAllResourcesList(0) | 106 , m_nextInAllResourcesList(0) |
| 107 , m_prevInAllResourcesList(0) | 107 , m_prevInAllResourcesList(0) |
| 108 , m_nextInLiveResourcesList(0) | 108 , m_nextInLiveResourcesList(0) |
| 109 , m_prevInLiveResourcesList(0) | 109 , m_prevInLiveResourcesList(0) |
| 110 , m_owningCachedResourceLoader(0) | 110 , m_owningCachedResourceLoader(0) |
| 111 , m_resourceToRevalidate(0) | 111 , m_resourceToRevalidate(0) |
| 112 , m_proxyResource(0) | 112 , m_proxyResource(0) |
| 113 { | 113 { |
| 114 ASSERT(m_type == unsigned(type)); // m_type is a bitfield, so this tests car
eless updates of the enum. |
| 114 #ifndef NDEBUG | 115 #ifndef NDEBUG |
| 115 cachedResourceLeakCounter.increment(); | 116 cachedResourceLeakCounter.increment(); |
| 116 #endif | 117 #endif |
| 117 } | 118 } |
| 118 | 119 |
| 119 CachedResource::~CachedResource() | 120 CachedResource::~CachedResource() |
| 120 { | 121 { |
| 121 ASSERT(!m_resourceToRevalidate); // Should be true because canDelete() check
s this. | 122 ASSERT(!m_resourceToRevalidate); // Should be true because canDelete() check
s this. |
| 122 ASSERT(canDelete()); | 123 ASSERT(canDelete()); |
| 123 ASSERT(!inCache()); | 124 ASSERT(!inCache()); |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 } | 625 } |
| 625 | 626 |
| 626 void CachedResource::setLoadPriority(ResourceLoadPriority loadPriority) | 627 void CachedResource::setLoadPriority(ResourceLoadPriority loadPriority) |
| 627 { | 628 { |
| 628 if (loadPriority == ResourceLoadPriorityUnresolved) | 629 if (loadPriority == ResourceLoadPriorityUnresolved) |
| 629 return; | 630 return; |
| 630 m_loadPriority = loadPriority; | 631 m_loadPriority = loadPriority; |
| 631 } | 632 } |
| 632 | 633 |
| 633 } | 634 } |
| OLD | NEW |