Changeset 65217 in webkit
- Timestamp:
- Aug 11, 2010 10:50:10 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r65215 r65217 1 2010-08-11 Tony Gentilcore <tonyg@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Make PendingScript copyable so that it can be stored in containers 6 https://bugs.webkit.org/show_bug.cgi?id=43875 7 8 This will be useful for storing PendingScripts in a Vector or Deque for 9 async and defer scripts. 10 11 No new tests because no functional changes. 12 13 * dom/PendingScript.h: 14 (WebCore::PendingScript::PendingScript): 15 (WebCore::PendingScript::operator=): 16 1 17 2010-08-11 Victoria Kirst <vrk@google.com> 2 18 -
trunk/WebCore/dom/PendingScript.h
r64857 r65217 29 29 #include "CachedResourceClient.h" 30 30 #include "CachedResourceHandle.h" 31 #include <wtf/Noncopyable.h>32 31 #include <wtf/PassRefPtr.h> 33 32 … … 42 41 // from purging its data buffer. This class holds a dummy client open for its 43 42 // lifetime in order to guarantee that the data buffer will not be purged. 44 class PendingScript : public Noncopyable,CachedResourceClient {43 class PendingScript : public CachedResourceClient { 45 44 public: 46 45 PendingScript() … … 50 49 } 51 50 51 PendingScript(const PendingScript& other) 52 : CachedResourceClient(other) 53 , m_startingLineNumber(other.m_startingLineNumber) 54 , m_watchingForLoad(other.m_watchingForLoad) 55 , m_element(other.m_element) 56 { 57 setCachedScript(other.cachedScript()); 58 } 59 52 60 ~PendingScript(); 61 62 PendingScript& operator=(const PendingScript& other) 63 { 64 if (this == &other) 65 return *this; 66 67 m_startingLineNumber = other.m_startingLineNumber; 68 m_watchingForLoad = other.m_watchingForLoad; 69 m_element = other.m_element; 70 setCachedScript(other.cachedScript()); 71 72 return *this; 73 } 53 74 54 75 // FIXME: No setter means this is never set to anything other than 0.
Note: See TracChangeset
for help on using the changeset viewer.