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

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: Minor rebase nits. 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
« no previous file with comments | « Source/core/dom/PopStateEvent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "core/dom/PopStateEvent.h" 28 #include "core/dom/PopStateEvent.h"
29 29
30 #include "bindings/v8/SerializedScriptValue.h" 30 #include "bindings/v8/SerializedScriptValue.h"
31 #include "core/dom/EventNames.h" 31 #include "core/dom/EventNames.h"
32 #include "core/page/History.h" 32 #include "core/page/History.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 PopStateEventInit::PopStateEventInit()
37 {
38 }
39
40 PopStateEvent::PopStateEvent() 36 PopStateEvent::PopStateEvent()
41 : Event(eventNames().popstateEvent, false, true) 37 : Event(eventNames().popstateEvent, false, true)
42 , m_serializedState(0) 38 , m_serializedState(0)
43 , m_history(0) 39 , m_history(0)
44 { 40 {
45 ScriptWrappable::init(this); 41 ScriptWrappable::init(this);
46 } 42 }
47 43
48 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer) 44 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer)
49 : Event(type, initializer) 45 : Event(type, initializer)
50 , m_state(initializer.state)
51 , m_serializedState(0) 46 , m_serializedState(0)
52 , m_history(0) 47 , m_history(0)
53 { 48 {
54 ScriptWrappable::init(this); 49 ScriptWrappable::init(this);
55 } 50 }
56 51
57 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtr<History> history) 52 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtr<History> history)
58 : Event(eventNames().popstateEvent, false, true) 53 : Event(eventNames().popstateEvent, false, true)
59 , m_serializedState(serializedState) 54 , m_serializedState(serializedState)
60 , m_history(history) 55 , m_history(history)
(...skipping 19 matching lines...) Expand all
80 { 75 {
81 return adoptRef(new PopStateEvent(type, initializer)); 76 return adoptRef(new PopStateEvent(type, initializer));
82 } 77 }
83 78
84 const AtomicString& PopStateEvent::interfaceName() const 79 const AtomicString& PopStateEvent::interfaceName() const
85 { 80 {
86 return eventNames().interfaceForPopStateEvent; 81 return eventNames().interfaceForPopStateEvent;
87 } 82 }
88 83
89 } // namespace WebCore 84 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/PopStateEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698