Index: Source/modules/mediastream/RTCStatsResponse.cpp |
diff --git a/Source/modules/mediastream/RTCStatsResponse.cpp b/Source/modules/mediastream/RTCStatsResponse.cpp |
index 626546882b2349bac87eed50078e482bdacb9d50..7701a6cc9e3923427f1e263873f4615b279bd2e7 100644 |
--- a/Source/modules/mediastream/RTCStatsResponse.cpp |
+++ b/Source/modules/mediastream/RTCStatsResponse.cpp |
@@ -28,9 +28,9 @@ |
namespace WebCore { |
-PassRefPtr<RTCStatsResponse> RTCStatsResponse::create() |
+PassRefPtrWillBeRawPtr<RTCStatsResponse> RTCStatsResponse::create() |
{ |
- return adoptRef(new RTCStatsResponse()); |
+ return adoptRefWillBeNoop(new RTCStatsResponse()); |
} |
RTCStatsResponse::RTCStatsResponse() |
@@ -38,7 +38,7 @@ RTCStatsResponse::RTCStatsResponse() |
ScriptWrappable::init(this); |
} |
-PassRefPtr<RTCStatsReport> RTCStatsResponse::namedItem(const AtomicString& name) |
+PassRefPtrWillBeRawPtr<RTCStatsReport> RTCStatsResponse::namedItem(const AtomicString& name) |
{ |
if (m_idmap.find(name) != m_idmap.end()) |
return m_result[m_idmap.get(name)]; |
@@ -58,4 +58,9 @@ void RTCStatsResponse::addStatistic(size_t report, String name, String value) |
m_result[report]->addStatistic(name, value); |
} |
+void RTCStatsResponse::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_result); |
+} |
+ |
} // namespace WebCore |