Changeset 96301 in webkit
- Timestamp:
- Sep 28, 2011 11:07:17 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r96299 r96301 1 2011-09-28 Kentaro Hara <haraken@chromium.org> 2 3 "ScriptValue" arguments of PopStateEvent methods should be "const ScriptValue&" 4 https://bugs.webkit.org/show_bug.cgi?id=68984 5 6 Reviewed by Darin Adler. 7 8 Just a follow-up fix for the bug 68345. For performance, 9 "ScriptValue" arguments of PopStateEvent methods should be "const ScriptValue&". 10 11 Tests: fast/events/constructors/pop-state-event-constructor.html 12 fast/events/fire-popstate-event.html 13 14 * dom/PopStateEvent.cpp: 15 (WebCore::PopStateEvent::PopStateEvent): 16 (WebCore::PopStateEvent::create): 17 (WebCore::PopStateEvent::initPopStateEvent): 18 * dom/PopStateEvent.h: 19 1 20 2011-09-28 Martin Robinson <mrobinson@igalia.com> 2 21 -
trunk/Source/WebCore/dom/PopStateEvent.cpp
r96073 r96301 49 49 } 50 50 51 PopStateEvent::PopStateEvent( ScriptValuestate)51 PopStateEvent::PopStateEvent(const ScriptValue& state) 52 52 : Event(eventNames().popstateEvent, false, true) 53 53 , m_state(state) … … 71 71 } 72 72 73 PassRefPtr<PopStateEvent> PopStateEvent::create( ScriptValuestate)73 PassRefPtr<PopStateEvent> PopStateEvent::create(const ScriptValue& state) 74 74 { 75 75 return adoptRef(new PopStateEvent(state)); … … 86 86 } 87 87 88 void PopStateEvent::initPopStateEvent(const AtomicString& type, bool canBubble, bool cancelable, ScriptValuestate)88 void PopStateEvent::initPopStateEvent(const AtomicString& type, bool canBubble, bool cancelable, const ScriptValue& state) 89 89 { 90 90 if (dispatched()) -
trunk/Source/WebCore/dom/PopStateEvent.h
r96073 r96301 44 44 virtual ~PopStateEvent(); 45 45 static PassRefPtr<PopStateEvent> create(); 46 static PassRefPtr<PopStateEvent> create( ScriptValue);46 static PassRefPtr<PopStateEvent> create(const ScriptValue&); 47 47 static PassRefPtr<PopStateEvent> create(PassRefPtr<SerializedScriptValue>); 48 48 static PassRefPtr<PopStateEvent> create(const AtomicString&, const PopStateEventInit&); 49 void initPopStateEvent(const AtomicString& type, bool canBubble, bool cancelable, ScriptValue);49 void initPopStateEvent(const AtomicString& type, bool canBubble, bool cancelable, const ScriptValue&); 50 50 bool isPopStateEvent() const { return true; } 51 51 … … 56 56 PopStateEvent(); 57 57 PopStateEvent(const AtomicString&, const PopStateEventInit&); 58 explicit PopStateEvent( ScriptValue);58 explicit PopStateEvent(const ScriptValue&); 59 59 explicit PopStateEvent(PassRefPtr<SerializedScriptValue>); 60 60
Note: See TracChangeset
for help on using the changeset viewer.