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

Side by Side Diff: Source/WebCore/dom/AnimationEvent.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/css/WebKitCSSMatrix.cpp ('k') | Source/WebCore/dom/Attr.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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 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 21 matching lines...) Expand all
32 32
33 AnimationEventInit::AnimationEventInit() 33 AnimationEventInit::AnimationEventInit()
34 : animationName() 34 : animationName()
35 , elapsedTime(0.0) 35 , elapsedTime(0.0)
36 { 36 {
37 } 37 }
38 38
39 AnimationEvent::AnimationEvent() 39 AnimationEvent::AnimationEvent()
40 : m_elapsedTime(0.0) 40 : m_elapsedTime(0.0)
41 { 41 {
42 ScriptWrappable::init(this);
42 } 43 }
43 44
44 AnimationEvent::AnimationEvent(const AtomicString& type, const AnimationEventIni t& initializer) 45 AnimationEvent::AnimationEvent(const AtomicString& type, const AnimationEventIni t& initializer)
45 : Event(type, initializer) 46 : Event(type, initializer)
46 , m_animationName(initializer.animationName) 47 , m_animationName(initializer.animationName)
47 , m_elapsedTime(initializer.elapsedTime) 48 , m_elapsedTime(initializer.elapsedTime)
48 { 49 {
50 ScriptWrappable::init(this);
49 } 51 }
50 52
51 AnimationEvent::AnimationEvent(const AtomicString& type, const String& animation Name, double elapsedTime) 53 AnimationEvent::AnimationEvent(const AtomicString& type, const String& animation Name, double elapsedTime)
52 : Event(type, true, true) 54 : Event(type, true, true)
53 , m_animationName(animationName) 55 , m_animationName(animationName)
54 , m_elapsedTime(elapsedTime) 56 , m_elapsedTime(elapsedTime)
55 { 57 {
58 ScriptWrappable::init(this);
56 } 59 }
57 60
58 AnimationEvent::~AnimationEvent() 61 AnimationEvent::~AnimationEvent()
59 { 62 {
60 } 63 }
61 64
62 const String& AnimationEvent::animationName() const 65 const String& AnimationEvent::animationName() const
63 { 66 {
64 return m_animationName; 67 return m_animationName;
65 } 68 }
66 69
67 double AnimationEvent::elapsedTime() const 70 double AnimationEvent::elapsedTime() const
68 { 71 {
69 return m_elapsedTime; 72 return m_elapsedTime;
70 } 73 }
71 74
72 const AtomicString& AnimationEvent::interfaceName() const 75 const AtomicString& AnimationEvent::interfaceName() const
73 { 76 {
74 return eventNames().interfaceForAnimationEvent; 77 return eventNames().interfaceForAnimationEvent;
75 } 78 }
76 79
77 } // namespace WebCore 80 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/css/WebKitCSSMatrix.cpp ('k') | Source/WebCore/dom/Attr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698