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

Side by Side Diff: Source/WebCore/dom/CustomEvent.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
« no previous file with comments | « Source/WebCore/dom/CompositionEvent.cpp ('k') | Source/WebCore/dom/DOMImplementation.cpp » ('j') | 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
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 18 matching lines...) Expand all
29 #include "EventNames.h" 29 #include "EventNames.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 CustomEventInit::CustomEventInit() 33 CustomEventInit::CustomEventInit()
34 { 34 {
35 } 35 }
36 36
37 CustomEvent::CustomEvent() 37 CustomEvent::CustomEvent()
38 { 38 {
39 ScriptWrappable::init(this);
39 } 40 }
40 41
41 CustomEvent::CustomEvent(const AtomicString& type, const CustomEventInit& initia lizer) 42 CustomEvent::CustomEvent(const AtomicString& type, const CustomEventInit& initia lizer)
42 : Event(type, initializer) 43 : Event(type, initializer)
43 , m_detail(initializer.detail) 44 , m_detail(initializer.detail)
44 { 45 {
46 ScriptWrappable::init(this);
45 } 47 }
46 48
47 CustomEvent::~CustomEvent() 49 CustomEvent::~CustomEvent()
48 { 50 {
49 } 51 }
50 52
51 void CustomEvent::initCustomEvent(const AtomicString& type, bool canBubble, bool cancelable, const ScriptValue& detail) 53 void CustomEvent::initCustomEvent(const AtomicString& type, bool canBubble, bool cancelable, const ScriptValue& detail)
52 { 54 {
53 ASSERT(!m_serializedScriptValue.get()); 55 ASSERT(!m_serializedScriptValue.get());
54 if (dispatched()) 56 if (dispatched())
(...skipping 14 matching lines...) Expand all
69 71
70 m_serializedScriptValue = serializedScriptValue; 72 m_serializedScriptValue = serializedScriptValue;
71 } 73 }
72 74
73 const AtomicString& CustomEvent::interfaceName() const 75 const AtomicString& CustomEvent::interfaceName() const
74 { 76 {
75 return eventNames().interfaceForCustomEvent; 77 return eventNames().interfaceForCustomEvent;
76 } 78 }
77 79
78 } // namespace WebCore 80 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/dom/CompositionEvent.cpp ('k') | Source/WebCore/dom/DOMImplementation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698