Changeset 95079 in webkit
- Timestamp:
- Sep 14, 2011 12:40:25 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r95077 r95079 1 2011-09-14 Kentaro Hara <haraken@google.com> 2 3 Implement a PageTransitionEvent constructor for JSC 4 https://bugs.webkit.org/show_bug.cgi?id=68048 5 6 Reviewed by Sam Weinig. 7 8 page-transition-event-constructor.html checks the behavior of the PageTransitionEvent constructor. 9 10 * fast/dom/constructed-objects-prototypes-expected.txt: Added PageTransitionEvent. 11 * fast/events/constructors/page-transition-event-constructor-expected.txt: Added. 12 * fast/events/constructors/page-transition-event-constructor.html: Added. 13 * platform/chromium/test_expectations.txt: Skipped page-transition-event-constructor.html, since V8 does not yet have the PageTransitionEvent constructor. 14 1 15 2011-09-13 Sheriff Bot <webkit.review.bot@gmail.com> 2 16 -
trunk/LayoutTests/fast/dom/constructed-objects-prototypes-expected.txt
r94970 r95079 22 22 PASS (new inner.Option()).isInner is true 23 23 PASS (new inner.Option()).constructor.isInner is true 24 PASS (new inner.PageTransitionEvent()).isInner is true 25 PASS (new inner.PageTransitionEvent()).constructor.isInner is true 24 26 PASS (new inner.ProgressEvent()).isInner is true 25 27 PASS (new inner.ProgressEvent()).constructor.isInner is true -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r95073 r95079 64 64 // to re-enable these "in the next few weeks". 65 65 BUGPKASTING SKIP : animations/animation-api-1.html = TEXT 66 67 // This will soon be fixed after implementing a PageTransitionEvent constructor for V8. 68 BUGWK68048 : fast/events/constructors/page-transition-event-constructor.html = FAIL 66 69 67 70 // Unskip after implementing DRT support for setDefersLoading and goBack. -
trunk/Source/WebCore/ChangeLog
r95077 r95079 1 2011-09-14 Kentaro Hara <haraken@google.com> 2 3 Implement a PageTransitionEvent constructor for JSC 4 https://bugs.webkit.org/show_bug.cgi?id=68048 5 6 Reviewed by Sam Weinig. 7 8 The spec for the PageTransitionEvent constructor is here: 9 http://www.whatwg.org/specs/web-apps/current-work/#pagetransitionevent 10 11 Test: fast/events/constructors/page-transition-event-constructor.html 12 13 * bindings/generic/EventConstructors.h: Added a definition for the PageTransitionEvent constructor. 14 * bindings/js/JSEventConstructors.cpp: Added #includes for PageTransitionEvent. 15 * dom/PageTransitionEvent.cpp: 16 (WebCore::PageTransitionEventInit::PageTransitionEventInit): 17 (WebCore::PageTransitionEvent::PageTransitionEvent): 18 (WebCore::PageTransitionEvent::initPageTransitionEvent): 19 * dom/PageTransitionEvent.h: Added a definition for PageTransitionEventInit. 20 (WebCore::PageTransitionEvent::create): 21 (WebCore::PageTransitionEvent::isPageTransitionEvent): 22 (WebCore::PageTransitionEvent::persisted): 23 * dom/PageTransitionEvent.idl: Makes PageTransitionEvent constructible. 24 1 25 2011-09-13 Sheriff Bot <webkit.review.bot@gmail.com> 2 26 -
trunk/Source/WebCore/bindings/generic/EventConstructors.h
r94962 r95079 68 68 DICTIONARY_END(HashChangeEvent) 69 69 70 #define INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_PAGE_TRANSITION_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 71 \ 72 DICTIONARY_START(PageTransitionEvent) \ 73 FILL_PARENT_PROPERTIES(Event) \ 74 FILL_PROPERTY(persisted) \ 75 DICTIONARY_END(PageTransitionEvent) 76 70 77 71 78 #define INSTANTIATE_ALL_EVENT_INITIALIZING_CONSTRUCTORS(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ … … 75 82 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_WEBKIT_ANIMATION_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 76 83 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_HASH_CHANGE_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 84 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_PAGE_TRANSITION_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) \ 77 85 78 86 } // namespace WebCore -
trunk/Source/WebCore/bindings/js/JSEventConstructors.cpp
r94962 r95079 34 34 #include "JSEvent.h" 35 35 #include "JSHashChangeEvent.h" 36 #include "JSPageTransitionEvent.h" 36 37 #include "JSProgressEvent.h" 37 38 #include "JSWebKitAnimationEvent.h" 39 #include "PageTransitionEvent.h" 38 40 #include "ProgressEvent.h" 39 41 #include "WebKitAnimationEvent.h" -
trunk/Source/WebCore/dom/PageTransitionEvent.cpp
r47824 r95079 30 30 31 31 namespace WebCore { 32 32 33 PageTransitionEventInit::PageTransitionEventInit() 34 : persisted(false) 35 { 36 } 37 33 38 PageTransitionEvent::PageTransitionEvent() 34 39 : m_persisted(false) … … 39 44 : Event(type, true, true) 40 45 , m_persisted(persisted) 46 { 47 } 48 49 PageTransitionEvent::PageTransitionEvent(const AtomicString& type, const PageTransitionEventInit& initializer) 50 : Event(type, initializer) 51 , m_persisted(initializer.persisted) 41 52 { 42 53 } … … 53 64 if (dispatched()) 54 65 return; 55 66 56 67 initEvent(type, canBubbleArg, cancelableArg); 57 68 58 69 m_persisted = persisted; 59 70 } -
trunk/Source/WebCore/dom/PageTransitionEvent.h
r47824 r95079 31 31 namespace WebCore { 32 32 33 class PageTransitionEvent : public Event { 34 public: 35 static PassRefPtr<PageTransitionEvent> create() 36 { 37 return adoptRef(new PageTransitionEvent); 38 } 39 static PassRefPtr<PageTransitionEvent> create(const AtomicString& type, bool persisted) 40 { 41 return adoptRef(new PageTransitionEvent(type, persisted)); 42 } 33 struct PageTransitionEventInit : public EventInit { 34 PageTransitionEventInit(); 43 35 44 virtual ~PageTransitionEvent(); 36 bool persisted; 37 }; 45 38 46 void initPageTransitionEvent(const AtomicString& type, 47 bool canBubbleArg, 48 bool cancelableArg, 49 bool persisted); 39 class PageTransitionEvent : public Event { 40 public: 41 static PassRefPtr<PageTransitionEvent> create() 42 { 43 return adoptRef(new PageTransitionEvent); 44 } 45 static PassRefPtr<PageTransitionEvent> create(const AtomicString& type, bool persisted) 46 { 47 return adoptRef(new PageTransitionEvent(type, persisted)); 48 } 49 static PassRefPtr<PageTransitionEvent> create(const AtomicString& type, const PageTransitionEventInit& initializer) 50 { 51 return adoptRef(new PageTransitionEvent(type, initializer)); 52 } 50 53 51 virtual bool isPageTransitionEvent() const { return true; }54 virtual ~PageTransitionEvent(); 52 55 53 bool persisted() const { return m_persisted; } 56 void initPageTransitionEvent(const AtomicString& type, 57 bool canBubbleArg, 58 bool cancelableArg, 59 bool persisted); 54 60 55 private: 56 PageTransitionEvent(); 57 PageTransitionEvent(const AtomicString& type, bool persisted); 61 virtual bool isPageTransitionEvent() const { return true; } 58 62 59 bool m_persisted; 60 }; 63 bool persisted() const { return m_persisted; } 64 65 private: 66 PageTransitionEvent(); 67 PageTransitionEvent(const AtomicString& type, bool persisted); 68 PageTransitionEvent(const AtomicString&, const PageTransitionEventInit&); 69 70 bool m_persisted; 71 }; 61 72 62 73 } // namespace WebCore -
trunk/Source/WebCore/dom/PageTransitionEvent.idl
r91617 r95079 26 26 module events { 27 27 28 interface PageTransitionEvent : Event { 28 interface [ 29 CanBeConstructed, 30 CustomConstructFunction 31 ] PageTransitionEvent : Event { 29 32 30 33 readonly attribute boolean persisted;
Note: See TracChangeset
for help on using the changeset viewer.