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

Side by Side Diff: Source/core/dom/PopStateEvent.cpp

Issue 17063016: Remove leak of objects between isolated worlds on custom events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Large set of fixes from adamk and haraken. Created 7 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 29 matching lines...) Expand all
40 PopStateEvent::PopStateEvent() 40 PopStateEvent::PopStateEvent()
41 : Event(eventNames().popstateEvent, false, true) 41 : Event(eventNames().popstateEvent, false, true)
42 , m_serializedState(0) 42 , m_serializedState(0)
43 , m_history(0) 43 , m_history(0)
44 { 44 {
45 ScriptWrappable::init(this); 45 ScriptWrappable::init(this);
46 } 46 }
47 47
48 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer) 48 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer)
49 : Event(type, initializer) 49 : Event(type, initializer)
50 , m_state(initializer.state)
51 , m_serializedState(0) 50 , m_serializedState(0)
52 , m_history(0) 51 , m_history(0)
53 { 52 {
54 ScriptWrappable::init(this); 53 ScriptWrappable::init(this);
55 } 54 }
56 55
57 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtr<History> history) 56 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtr<History> history)
58 : Event(eventNames().popstateEvent, false, true) 57 : Event(eventNames().popstateEvent, false, true)
59 , m_serializedState(serializedState) 58 , m_serializedState(serializedState)
60 , m_history(history) 59 , m_history(history)
(...skipping 19 matching lines...) Expand all
80 { 79 {
81 return adoptRef(new PopStateEvent(type, initializer)); 80 return adoptRef(new PopStateEvent(type, initializer));
82 } 81 }
83 82
84 const AtomicString& PopStateEvent::interfaceName() const 83 const AtomicString& PopStateEvent::interfaceName() const
85 { 84 {
86 return eventNames().interfaceForPopStateEvent; 85 return eventNames().interfaceForPopStateEvent;
87 } 86 }
88 87
89 } // namespace WebCore 88 } // namespace WebCore
OLDNEW
« Source/bindings/v8/V8HiddenPropertyName.h ('K') | « Source/core/dom/PopStateEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698