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

Side by Side Diff: third_party/WebKit/Source/core/events/PopStateEvent.cpp

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased Created 4 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 unified diff | Download patch
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 { 57 {
58 } 58 }
59 59
60 PopStateEvent* PopStateEvent::create() 60 PopStateEvent* PopStateEvent::create()
61 { 61 {
62 return new PopStateEvent; 62 return new PopStateEvent;
63 } 63 }
64 64
65 PopStateEvent* PopStateEvent::create(PassRefPtr<SerializedScriptValue> serialize dState, History* history) 65 PopStateEvent* PopStateEvent::create(PassRefPtr<SerializedScriptValue> serialize dState, History* history)
66 { 66 {
67 return new PopStateEvent(serializedState, history); 67 return new PopStateEvent(std::move(serializedState), history);
68 } 68 }
69 69
70 PopStateEvent* PopStateEvent::create(const AtomicString& type, const PopStateEve ntInit& initializer) 70 PopStateEvent* PopStateEvent::create(const AtomicString& type, const PopStateEve ntInit& initializer)
71 { 71 {
72 return new PopStateEvent(type, initializer); 72 return new PopStateEvent(type, initializer);
73 } 73 }
74 74
75 const AtomicString& PopStateEvent::interfaceName() const 75 const AtomicString& PopStateEvent::interfaceName() const
76 { 76 {
77 return EventNames::PopStateEvent; 77 return EventNames::PopStateEvent;
78 } 78 }
79 79
80 DEFINE_TRACE(PopStateEvent) 80 DEFINE_TRACE(PopStateEvent)
81 { 81 {
82 visitor->trace(m_history); 82 visitor->trace(m_history);
83 Event::trace(visitor); 83 Event::trace(visitor);
84 } 84 }
85 85
86 } // namespace blink 86 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/MessageEvent.h ('k') | third_party/WebKit/Source/core/fileapi/Blob.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698