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

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

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 24 matching lines...) Expand all
35 35
36 PopStateEventInit::PopStateEventInit() 36 PopStateEventInit::PopStateEventInit()
37 { 37 {
38 } 38 }
39 39
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 } 46 }
46 47
47 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer) 48 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer)
48 : Event(type, initializer) 49 : Event(type, initializer)
49 , m_state(initializer.state) 50 , m_state(initializer.state)
50 , m_serializedState(0) 51 , m_serializedState(0)
51 , m_history(0) 52 , m_history(0)
52 { 53 {
54 ScriptWrappable::init(this);
53 } 55 }
54 56
55 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtr<History> history) 57 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtr<History> history)
56 : Event(eventNames().popstateEvent, false, true) 58 : Event(eventNames().popstateEvent, false, true)
57 , m_serializedState(serializedState) 59 , m_serializedState(serializedState)
58 , m_history(history) 60 , m_history(history)
59 { 61 {
62 ScriptWrappable::init(this);
60 } 63 }
61 64
62 PopStateEvent::~PopStateEvent() 65 PopStateEvent::~PopStateEvent()
63 { 66 {
64 } 67 }
65 68
66 PassRefPtr<PopStateEvent> PopStateEvent::create() 69 PassRefPtr<PopStateEvent> PopStateEvent::create()
67 { 70 {
68 return adoptRef(new PopStateEvent); 71 return adoptRef(new PopStateEvent);
69 } 72 }
70 73
71 PassRefPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<SerializedScriptValue > serializedState, PassRefPtr<History> history) 74 PassRefPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<SerializedScriptValue > serializedState, PassRefPtr<History> history)
72 { 75 {
73 return adoptRef(new PopStateEvent(serializedState, history)); 76 return adoptRef(new PopStateEvent(serializedState, history));
74 } 77 }
75 78
76 PassRefPtr<PopStateEvent> PopStateEvent::create(const AtomicString& type, const PopStateEventInit& initializer) 79 PassRefPtr<PopStateEvent> PopStateEvent::create(const AtomicString& type, const PopStateEventInit& initializer)
77 { 80 {
78 return adoptRef(new PopStateEvent(type, initializer)); 81 return adoptRef(new PopStateEvent(type, initializer));
79 } 82 }
80 83
81 const AtomicString& PopStateEvent::interfaceName() const 84 const AtomicString& PopStateEvent::interfaceName() const
82 { 85 {
83 return eventNames().interfaceForPopStateEvent; 86 return eventNames().interfaceForPopStateEvent;
84 } 87 }
85 88
86 } // namespace WebCore 89 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/dom/PageTransitionEvent.cpp ('k') | Source/WebCore/dom/ProcessingInstruction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698