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

Unified Diff: Source/core/events/HashChangeEvent.h

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/FocusEvent.cpp ('k') | Source/core/events/KeyboardEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/HashChangeEvent.h
diff --git a/Source/core/events/HashChangeEvent.h b/Source/core/events/HashChangeEvent.h
index e0049c90130ddc5e9afab7a92f9de49e32454b49..242fc3417daf5f7ad7a7e5ff52b6d4d23190cf88 100644
--- a/Source/core/events/HashChangeEvent.h
+++ b/Source/core/events/HashChangeEvent.h
@@ -26,9 +26,7 @@
namespace blink {
struct HashChangeEventInit : public EventInit {
- HashChangeEventInit()
- {
- };
+ HashChangeEventInit() { }
String oldURL;
String newURL;
@@ -71,26 +69,17 @@ public:
virtual void trace(Visitor* visitor) OVERRIDE { Event::trace(visitor); }
private:
- HashChangeEvent()
- {
- ScriptWrappable::init(this);
- }
+ HashChangeEvent() { }
HashChangeEvent(const String& oldURL, const String& newURL)
: Event(EventTypeNames::hashchange, false, false)
, m_oldURL(oldURL)
- , m_newURL(newURL)
- {
- ScriptWrappable::init(this);
- }
+ , m_newURL(newURL) { }
HashChangeEvent(const AtomicString& type, const HashChangeEventInit& initializer)
: Event(type, initializer)
, m_oldURL(initializer.oldURL)
- , m_newURL(initializer.newURL)
- {
- ScriptWrappable::init(this);
- }
+ , m_newURL(initializer.newURL) { }
String m_oldURL;
String m_newURL;
« no previous file with comments | « Source/core/events/FocusEvent.cpp ('k') | Source/core/events/KeyboardEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698