Changeset 142205 in webkit
- Timestamp:
- Feb 7, 2013 4:37:49 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r142204 r142205 1 2013-02-07 Kentaro Hara <haraken@chromium.org> 2 3 Implement FocusEvent constructor 4 https://bugs.webkit.org/show_bug.cgi?id=109170 5 6 Reviewed by Adam Barth. 7 8 Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm 9 10 FocusEvent constructor should be implemented under a DOM4_EVENTS_CONSTRUCTOR 11 flag, which is enabled on Chromium and Safari. 12 13 * fast/dom/constructed-objects-prototypes-expected.txt: 14 * fast/events/constructors/focus-event-constructor-expected.txt: Added. 15 * fast/events/constructors/focus-event-constructor.html: Added. 16 * platform/efl/TestExpectations: 17 * platform/gtk/TestExpectations: 18 * platform/qt/TestExpectations: 19 * platform/win/TestExpectations: 20 * platform/wincairo/TestExpectations: 21 1 22 2013-02-07 Elliott Sprehn <esprehn@chromium.org> 2 23 -
trunk/LayoutTests/fast/dom/constructed-objects-prototypes-expected.txt
r141346 r142205 22 22 PASS (new inner.Event()).isInner is true 23 23 PASS (new inner.Event()).constructor.isInner is true 24 PASS (new inner.FocusEvent()).isInner is true 25 PASS (new inner.FocusEvent()).constructor.isInner is true 24 26 PASS (new inner.FormData()).isInner is true 25 27 PASS (new inner.FormData()).constructor.isInner is true -
trunk/LayoutTests/platform/efl/TestExpectations
r142167 r142205 1248 1248 webkit.org/b/107428 fast/events/constructors/keyboard-event-constructor.html [ Skip ] 1249 1249 webkit.org/b/107428 fast/events/constructors/composition-event-constructor.html [ Skip ] 1250 webkit.org/b/107428 fast/events/constructors/focus-event-constructor.html [ Skip ] 1250 1251 1251 1252 # Requires support for Web notifications -
trunk/LayoutTests/platform/gtk/TestExpectations
r142174 r142205 403 403 webkit.org/b/107428 fast/events/constructors/keyboard-event-constructor.html [ Skip ] 404 404 webkit.org/b/107428 fast/events/constructors/composition-event-constructor.html [ Skip ] 405 webkit.org/b/107428 fast/events/constructors/focus-event-constructor.html [ Skip ] 405 406 406 407 # No CORS support for media elements is implemented yet. -
trunk/LayoutTests/platform/qt/TestExpectations
r142167 r142205 116 116 fast/events/constructors/wheel-event-constructor.html 117 117 fast/events/constructors/keyboard-event-constructor.html 118 fast/events/constructors/focus-event-constructor.html 118 119 119 120 # ENABLE(INDEXED_DATABASE) is disabled. -
trunk/LayoutTests/platform/win/TestExpectations
r142084 r142205 1226 1226 fast/events/constructors/wheel-event-constructor.html 1227 1227 fast/events/constructors/keyboard-event-constructor.html 1228 fast/events/constructors/focus-event-constructor.html 1228 1229 1229 1230 # Disable until the windows WebKit API supports injecting in the top frame only. -
trunk/LayoutTests/platform/wincairo/TestExpectations
r141621 r142205 1749 1749 fast/events/constructors/wheel-event-constructor.html 1750 1750 fast/events/constructors/keyboard-event-constructor.html 1751 fast/events/constructors/focus-event-constructor.html 1751 1752 1752 1753 # Disable until the windows WebKit API supports injecting in the top frame only. -
trunk/Source/WebCore/ChangeLog
r142204 r142205 1 2013-02-07 Kentaro Hara <haraken@chromium.org> 2 3 Implement FocusEvent constructor 4 https://bugs.webkit.org/show_bug.cgi?id=109170 5 6 Reviewed by Adam Barth. 7 8 Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm 9 10 FocusEvent constructor should be implemented under a DOM4_EVENTS_CONSTRUCTOR 11 flag, which is enabled on Chromium and Safari. 12 13 Test: fast/events/constructors/focus-event-constructor.html 14 15 * dom/FocusEvent.cpp: 16 (WebCore::FocusEventInit::FocusEventInit): 17 (WebCore): 18 (WebCore::FocusEvent::FocusEvent): 19 * dom/FocusEvent.h: 20 (FocusEventInit): 21 (WebCore): 22 (WebCore::FocusEvent::create): 23 (FocusEvent): 24 * dom/FocusEvent.idl: 25 * page/DOMWindow.idl: 26 1 27 2013-02-07 Elliott Sprehn <esprehn@chromium.org> 2 28 -
trunk/Source/WebCore/dom/FocusEvent.cpp
r142072 r142205 32 32 namespace WebCore { 33 33 34 FocusEventInit::FocusEventInit() 35 : relatedTarget(0) 36 { 37 } 38 34 39 const AtomicString& FocusEvent::interfaceName() const 35 40 { … … 52 57 } 53 58 59 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializer) 60 : UIEvent(type, initializer) 61 , m_relatedTarget(initializer.relatedTarget) 62 { 63 } 64 54 65 } // namespace WebCore -
trunk/Source/WebCore/dom/FocusEvent.h
r142072 r142205 32 32 namespace WebCore { 33 33 34 struct FocusEventInit : public UIEventInit { 35 FocusEventInit(); 36 37 RefPtr<EventTarget> relatedTarget; 38 }; 39 34 40 class FocusEvent : public UIEvent { 35 41 public: … … 44 50 } 45 51 52 static PassRefPtr<FocusEvent> create(const AtomicString& type, const FocusEventInit& initializer) 53 { 54 return adoptRef(new FocusEvent(type, initializer)); 55 } 56 46 57 EventTarget* relatedTarget() const { return m_relatedTarget.get(); } 47 58 void setRelatedTarget(PassRefPtr<EventTarget> relatedTarget) { m_relatedTarget = relatedTarget; } … … 53 64 FocusEvent(); 54 65 FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, int, PassRefPtr<EventTarget>); 66 FocusEvent(const AtomicString& type, const FocusEventInit&); 55 67 56 68 RefPtr<EventTarget> m_relatedTarget; -
trunk/Source/WebCore/dom/FocusEvent.idl
r142072 r142205 24 24 */ 25 25 26 interface FocusEvent : UIEvent 27 { 28 readonly attribute EventTarget relatedTarget; 26 [ 27 ConstructorConditional=DOM4_EVENTS_CONSTRUCTOR, 28 ConstructorTemplate=Event 29 ] interface FocusEvent : UIEvent { 30 [InitializedByEventConstructor] readonly attribute EventTarget relatedTarget; 29 31 }; -
trunk/Source/WebCore/page/DOMWindow.idl
r142149 r142205 546 546 attribute CustomEventConstructor CustomEvent; 547 547 attribute ErrorEventConstructor ErrorEvent; 548 attribute FocusEventConstructor FocusEvent; 548 549 attribute HashChangeEventConstructor HashChangeEvent; 549 550 attribute KeyboardEventConstructor KeyboardEvent;
Note: See TracChangeset
for help on using the changeset viewer.