Changeset 94962 in webkit
- Timestamp:
- Sep 12, 2011 10:40:55 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r94959 r94962 1 2011-09-12 Kentaro Hara <haraken@google.com> 2 3 Implement a HashChangeEvent constructor for JSC 4 https://bugs.webkit.org/show_bug.cgi?id=67924 5 6 Reviewed by Sam Weinig. 7 8 hash-change-event-constructor.html checks the behavior of the HashChangeEvent constructor. 9 10 * fast/events/constructors/hash-change-event-constructor-expected.txt: Added. 11 * fast/events/constructors/hash-change-event-constructor.html: Added. 12 * platform/chromium/test_expectations.txt: Skipped hash-change-event-constructor.html, since V8 does not yet have the HashChangeEvent constructor. 13 1 14 2011-09-12 Nate Chapin <japhet@chromium.org> 2 15 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r94959 r94962 83 83 BUGCR10395 SKIP : svg/custom/image-with-prefix-in-webarchive.svg = PASS FAIL 84 84 BUGCR10395 SKIP : http/tests/webarchive = PASS FAIL 85 86 // This will soon be fixed after implementing a HashChangeEvent constructor for V8. 87 BUGWK67924 : fast/events/constructors/hash-change-event-constructor.html = FAIL 85 88 86 89 // According to the Chromium bug, we need to write some sort of workaround for -
trunk/Source/WebCore/ChangeLog
r94961 r94962 1 2011-09-12 Kentaro Hara <haraken@google.com> 2 3 Implement a HashChangeEvent constructor for JSC 4 https://bugs.webkit.org/show_bug.cgi?id=67924 5 6 Reviewed by Sam Weinig. 7 8 The spec for the HashChangeEvent constructor is here: 9 http://www.whatwg.org/specs/web-apps/current-work/#hashchangeevent 10 11 Test: fast/events/constructors/hash-change-event-constructor.html 12 13 * bindings/generic/EventConstructors.h: Added a definition for the HashChangeEvent constructor. 14 * bindings/js/JSEventConstructors.cpp: Added #includes for HashChangeEvent. 15 * dom/HashChangeEvent.h: Added a definition for HashChangeEventInit. 16 (WebCore::HashChangeEventInit::HashChangeEventInit): 17 (WebCore::HashChangeEvent::create): 18 (WebCore::HashChangeEvent::HashChangeEvent): 19 * dom/HashChangeEvent.idl: Makes HashChangeEvent constructible. 20 1 21 2011-09-12 Mike Reed <reed@google.com> 2 22 -
trunk/Source/WebCore/bindings/generic/EventConstructors.h
r94861 r94962 60 60 DICTIONARY_END(WebKitAnimationEvent) 61 61 62 #define INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_HASH_CHANGE_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 63 \ 64 DICTIONARY_START(HashChangeEvent) \ 65 FILL_PARENT_PROPERTIES(Event) \ 66 FILL_PROPERTY(oldURL) \ 67 FILL_PROPERTY(newURL) \ 68 DICTIONARY_END(HashChangeEvent) 69 62 70 63 71 #define INSTANTIATE_ALL_EVENT_INITIALIZING_CONSTRUCTORS(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ … … 66 74 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_PROGRESS_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 67 75 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_WEBKIT_ANIMATION_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 76 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_HASH_CHANGE_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 68 77 69 78 } // namespace WebCore -
trunk/Source/WebCore/bindings/js/JSEventConstructors.cpp
r94861 r94962 29 29 #include "CustomEvent.h" 30 30 #include "Event.h" 31 #include "HashChangeEvent.h" 31 32 #include "JSCustomEvent.h" 32 33 #include "JSDictionary.h" 33 34 #include "JSEvent.h" 35 #include "JSHashChangeEvent.h" 34 36 #include "JSProgressEvent.h" 35 37 #include "JSWebKitAnimationEvent.h" -
trunk/Source/WebCore/dom/HashChangeEvent.h
r94505 r94962 27 27 namespace WebCore { 28 28 29 struct HashChangeEventInit : public EventInit { 30 HashChangeEventInit() 31 { 32 }; 33 34 String oldURL; 35 String newURL; 36 }; 37 29 38 class HashChangeEvent : public Event { 30 39 public: … … 39 48 { 40 49 return adoptRef(new HashChangeEvent(oldURL, newURL)); 50 } 51 52 static PassRefPtr<HashChangeEvent> create(const AtomicString& type, const HashChangeEventInit& initializer) 53 { 54 return adoptRef(new HashChangeEvent(type, initializer)); 41 55 } 42 56 … … 67 81 } 68 82 83 HashChangeEvent(const AtomicString& type, const HashChangeEventInit& initializer) 84 : Event(type, initializer) 85 , m_oldURL(initializer.oldURL) 86 , m_newURL(initializer.newURL) 87 { 88 } 89 69 90 String m_oldURL; 70 91 String m_newURL; -
trunk/Source/WebCore/dom/HashChangeEvent.idl
r91617 r94962 22 22 // Introduced in http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#event-hashchange 23 23 interface [ 24 GenerateConstructor 24 CanBeConstructed, 25 CustomConstructFunction 25 26 ] HashChangeEvent : Event { 26 27 void initHashChangeEvent(in [Optional=CallWithDefaultValue] DOMString type,
Note: See TracChangeset
for help on using the changeset viewer.