Changeset 95262 in webkit
- Timestamp:
- Sep 15, 2011 7:45:55 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r95261 r95262 1 2011-09-15 Kentaro Hara <haraken@google.com> 2 3 Implement a PopStateEvent constructor for JSC 4 https://bugs.webkit.org/show_bug.cgi?id=67977 5 6 Reviewed by Sam Weinig. 7 8 pop-state-event-constructor.html checks the behavior of the PopStateEvent constructor. 9 10 * fast/events/constructors/pop-state-event-constructor-expected.txt: Added. 11 * fast/events/constructors/pop-state-event-constructor.html: Added. 12 * platform/chromium/test_expectations.txt: Skipped pop-state-event-constructor.html, since V8 does not yet have the PopStateEvent constructor. 13 1 14 2011-09-15 Keishi Hattori <keishi@webkit.org> 2 15 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r95261 r95262 78 78 // CSS3 Selectors3 test suite 79 79 BUGCR89468 : css3/selectors3 = PASS FAIL 80 81 // This will soon be fixed after implementing a PopStateEvent constructor for V8. 82 BUGWK67977 : fast/events/constructors/pop-state-event-constructor.html = FAIL 80 83 81 84 // Tests for WebVTT parser for <track>. Feature is not yet functional. -
trunk/Source/WebCore/ChangeLog
r95259 r95262 1 2011-09-15 Kentaro Hara <haraken@google.com> 2 3 Implement a PopStateEvent constructor for JSC 4 https://bugs.webkit.org/show_bug.cgi?id=67977 5 6 Reviewed by Sam Weinig. 7 8 Test: fast/events/constructors/pop-state-event-constructor.html 9 10 * bindings/generic/EventConstructors.h: Added a definition for the PopStateEvent constructor. 11 * bindings/js/JSEventConstructors.cpp: Added #includes for PopStateEvent. 12 * dom/PopStateEvent.cpp: 13 (WebCore::PopStateEventInit::PopStateEventInit): 14 (WebCore::PopStateEvent::PopStateEvent): 15 (WebCore::PopStateEvent::create): 16 * dom/PopStateEvent.h: Added a definition for PopStateEventInit. 17 * dom/PopStateEvent.idl: Makes PopStateEvent constructible. 18 1 19 2011-09-15 Mihai Parparita <mihaip@chromium.org> 2 20 -
trunk/Source/WebCore/bindings/generic/EventConstructors.h
r95079 r95262 75 75 DICTIONARY_END(PageTransitionEvent) 76 76 77 #define INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_POP_STATE_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 78 \ 79 DICTIONARY_START(PopStateEvent) \ 80 FILL_PARENT_PROPERTIES(Event) \ 81 FILL_PROPERTY(state) \ 82 DICTIONARY_END(PopStateEvent) 83 77 84 78 85 #define INSTANTIATE_ALL_EVENT_INITIALIZING_CONSTRUCTORS(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ … … 83 90 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_HASH_CHANGE_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 84 91 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_PAGE_TRANSITION_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 92 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_POP_STATE_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 85 93 86 94 } // namespace WebCore -
trunk/Source/WebCore/bindings/js/JSEventConstructors.cpp
r95079 r95262 35 35 #include "JSHashChangeEvent.h" 36 36 #include "JSPageTransitionEvent.h" 37 #include "JSPopStateEvent.h" 37 38 #include "JSProgressEvent.h" 38 39 #include "JSWebKitAnimationEvent.h" 39 40 #include "PageTransitionEvent.h" 41 #include "PopStateEvent.h" 40 42 #include "ProgressEvent.h" 41 43 #include "WebKitAnimationEvent.h" -
trunk/Source/WebCore/dom/PopStateEvent.cpp
r88187 r95262 32 32 namespace WebCore { 33 33 34 PopStateEventInit::PopStateEventInit() 35 { 36 state = SerializedScriptValue::create(); 37 } 38 34 39 PopStateEvent::PopStateEvent() 35 40 : Event(eventNames().popstateEvent, false, true) 41 { 42 } 43 44 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer) 45 : Event(type, initializer) 46 , m_stateObject(initializer.state) 36 47 { 37 48 } … … 57 68 } 58 69 70 PassRefPtr<PopStateEvent> PopStateEvent::create(const AtomicString& type, const PopStateEventInit& initializer) 71 { 72 return adoptRef(new PopStateEvent(type, initializer)); 73 } 74 59 75 void PopStateEvent::initPopStateEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue> stateObject) 60 76 { -
trunk/Source/WebCore/dom/PopStateEvent.h
r88187 r95262 35 35 class SerializedScriptValue; 36 36 37 struct PopStateEventInit : public EventInit { 38 PopStateEventInit(); 39 40 RefPtr<SerializedScriptValue> state; 41 }; 42 37 43 class PopStateEvent : public Event { 38 44 public: … … 40 46 static PassRefPtr<PopStateEvent> create(); 41 47 static PassRefPtr<PopStateEvent> create(PassRefPtr<SerializedScriptValue>); 48 static PassRefPtr<PopStateEvent> create(const AtomicString&, const PopStateEventInit&); 42 49 void initPopStateEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue>); 43 50 bool isPopStateEvent() const { return true; } … … 47 54 private: 48 55 PopStateEvent(); 56 PopStateEvent(const AtomicString&, const PopStateEventInit&); 49 57 explicit PopStateEvent(PassRefPtr<SerializedScriptValue>); 58 50 59 RefPtr<SerializedScriptValue> m_stateObject; 51 60 }; -
trunk/Source/WebCore/dom/PopStateEvent.idl
r91617 r95262 28 28 29 29 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP 30 interface PopStateEvent : Event { 30 interface [ 31 CanBeConstructed, 32 CustomConstructFunction 33 ] PopStateEvent : Event { 31 34 void initPopStateEvent(in [Optional=CallWithDefaultValue] DOMString typeArg, 32 35 in [Optional=CallWithDefaultValue] boolean canBubbleArg,
Note: See TracChangeset
for help on using the changeset viewer.