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

Side by Side Diff: Source/WebCore/dom/ErrorEvent.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/EntityReference.cpp ('k') | Source/WebCore/dom/Event.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 37
38 ErrorEventInit::ErrorEventInit() 38 ErrorEventInit::ErrorEventInit()
39 : message() 39 : message()
40 , filename() 40 , filename()
41 , lineno(0) 41 , lineno(0)
42 { 42 {
43 } 43 }
44 44
45 ErrorEvent::ErrorEvent() 45 ErrorEvent::ErrorEvent()
46 { 46 {
47 ScriptWrappable::init(this);
47 } 48 }
48 49
49 ErrorEvent::ErrorEvent(const AtomicString& type, const ErrorEventInit& initializ er) 50 ErrorEvent::ErrorEvent(const AtomicString& type, const ErrorEventInit& initializ er)
50 : Event(type, initializer) 51 : Event(type, initializer)
51 , m_message(initializer.message) 52 , m_message(initializer.message)
52 , m_fileName(initializer.filename) 53 , m_fileName(initializer.filename)
53 , m_lineNumber(initializer.lineno) 54 , m_lineNumber(initializer.lineno)
54 { 55 {
56 ScriptWrappable::init(this);
55 } 57 }
56 58
57 ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned l ineNumber) 59 ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned l ineNumber)
58 : Event(eventNames().errorEvent, false, true) 60 : Event(eventNames().errorEvent, false, true)
59 , m_message(message) 61 , m_message(message)
60 , m_fileName(fileName) 62 , m_fileName(fileName)
61 , m_lineNumber(lineNumber) 63 , m_lineNumber(lineNumber)
62 { 64 {
65 ScriptWrappable::init(this);
63 } 66 }
64 67
65 ErrorEvent::~ErrorEvent() 68 ErrorEvent::~ErrorEvent()
66 { 69 {
67 } 70 }
68 71
69 const AtomicString& ErrorEvent::interfaceName() const 72 const AtomicString& ErrorEvent::interfaceName() const
70 { 73 {
71 return eventNames().interfaceForErrorEvent; 74 return eventNames().interfaceForErrorEvent;
72 } 75 }
73 76
74 } // namespace WebCore 77 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/dom/EntityReference.cpp ('k') | Source/WebCore/dom/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698