Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: Source/core/events/SecurityPolicyViolationEvent.h

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/events/SecurityPolicyViolationEvent.h
diff --git a/Source/core/events/SecurityPolicyViolationEvent.h b/Source/core/events/SecurityPolicyViolationEvent.h
index efe2481272d2b03fd61a68b9c329ec9f3b6314d7..728470df9c7d4079d700980221657a40a0e3b99d 100644
--- a/Source/core/events/SecurityPolicyViolationEvent.h
+++ b/Source/core/events/SecurityPolicyViolationEvent.h
@@ -49,14 +49,14 @@ struct SecurityPolicyViolationEventInit : public EventInit {
class SecurityPolicyViolationEvent FINAL : public Event {
public:
- static PassRefPtr<SecurityPolicyViolationEvent> create()
+ static PassRefPtrWillBeRawPtr<SecurityPolicyViolationEvent> create()
{
- return adoptRef(new SecurityPolicyViolationEvent());
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new SecurityPolicyViolationEvent());
}
- static PassRefPtr<SecurityPolicyViolationEvent> create(const AtomicString& type, const SecurityPolicyViolationEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<SecurityPolicyViolationEvent> create(const AtomicString& type, const SecurityPolicyViolationEventInit& initializer)
{
- return adoptRef(new SecurityPolicyViolationEvent(type, initializer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new SecurityPolicyViolationEvent(type, initializer));
}
const String& documentURI() const { return m_documentURI; }

Powered by Google App Engine
This is Rietveld 408576698