Changeset 200857 in webkit
- Timestamp:
- May 13, 2016, 7:58:53 AM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r200837 r200857 1 2016-05-13 Chris Dumez <cdumez@apple.com> 2 3 Have the WorkerGlobalScope API return more references 4 https://bugs.webkit.org/show_bug.cgi?id=157663 5 6 Reviewed by Alexey Proskuryakov. 7 8 Have the WorkerGlobalScope API return more references instead of 9 pointers. 10 11 * workers/WorkerGlobalScope.cpp: 12 (WebCore::WorkerGlobalScope::location): 13 (WebCore::WorkerGlobalScope::navigator): 14 * workers/WorkerGlobalScope.h: 15 (WebCore::WorkerGlobalScope::self): 16 1 17 2016-05-13 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 18 -
trunk/Source/WebCore/workers/WorkerGlobalScope.cpp
r200639 r200857 135 135 #endif // ENABLE(INDEXED_DATABASE) 136 136 137 WorkerLocation *WorkerGlobalScope::location() const137 WorkerLocation& WorkerGlobalScope::location() const 138 138 { 139 139 if (!m_location) 140 140 m_location = WorkerLocation::create(m_url); 141 return m_location.get();141 return *m_location; 142 142 } 143 143 … … 159 159 } 160 160 161 WorkerNavigator *WorkerGlobalScope::navigator() const161 WorkerNavigator& WorkerGlobalScope::navigator() const 162 162 { 163 163 if (!m_navigator) 164 164 m_navigator = WorkerNavigator::create(m_userAgent); 165 return m_navigator.get();165 return *m_navigator; 166 166 } 167 167 -
trunk/Source/WebCore/workers/WorkerGlobalScope.h
r199853 r200857 91 91 92 92 // WorkerGlobalScope 93 WorkerGlobalScope * self() { returnthis; }94 WorkerLocation *location() const;93 WorkerGlobalScope& self() { return *this; } 94 WorkerLocation& location() const; 95 95 void close(); 96 96 97 97 // WorkerUtils 98 98 virtual void importScripts(const Vector<String>& urls, ExceptionCode&); 99 WorkerNavigator *navigator() const;99 WorkerNavigator& navigator() const; 100 100 101 101 // Timers
Note:
See TracChangeset
for help on using the changeset viewer.