Changeset 141028 in webkit
- Timestamp:
- Jan 28, 2013 5:01:37 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r141014 r141028 1 2013-01-27 Kentaro Hara <haraken@chromium.org> 2 3 Implement CompositionEvent constructor 4 https://bugs.webkit.org/show_bug.cgi?id=107919 5 6 Reviewed by Sam Weinig. 7 8 This patch implements a CompositionEvent constructor under 9 a DOM4_EVENTS_CONSTRUCTOR flag. 10 11 Spec: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm 12 13 * fast/dom/constructed-objects-prototypes-expected.txt: 14 * fast/events/constructors/composition-event-constructor-expected.txt: Added. 15 * fast/events/constructors/composition-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 22 * fast/dom/constructed-objects-prototypes-expected.txt: 23 * platform/efl/TestExpectations: 24 * platform/gtk/TestExpectations: 25 * platform/qt/TestExpectations: 26 * platform/win/TestExpectations: 27 * platform/wincairo/TestExpectations: 28 1 29 2013-01-28 Joshua Bell <jsbell@chromium.org> 2 30 -
trunk/LayoutTests/fast/dom/constructed-objects-prototypes-expected.txt
r140657 r141028 12 12 PASS (new inner.CloseEvent()).isInner is true 13 13 PASS (new inner.CloseEvent()).constructor.isInner is true 14 PASS (new inner.CompositionEvent()).isInner is true 15 PASS (new inner.CompositionEvent()).constructor.isInner is true 14 16 PASS (new inner.CustomEvent()).isInner is true 15 17 PASS (new inner.CustomEvent()).constructor.isInner is true -
trunk/LayoutTests/platform/efl/TestExpectations
r140975 r141028 1231 1231 webkit.org/b/107428 fast/events/constructors/ui-event-constructor.html [ Skip ] 1232 1232 webkit.org/b/107428 fast/events/constructors/mouse-event-constructor.html [ Skip ] 1233 webkit.org/b/107428 fast/events/constructors/composition-event-constructor.html [ Skip ] 1233 1234 1234 1235 # Requires support for Web notifications -
trunk/LayoutTests/platform/gtk/TestExpectations
r140991 r141028 392 392 webkit.org/b/107428 fast/events/constructors/ui-event-constructor.html [ Skip ] 393 393 webkit.org/b/107428 fast/events/constructors/mouse-event-constructor.html [ Skip ] 394 webkit.org/b/107428 fast/events/constructors/composition-event-constructor.html [ Skip ] 394 395 395 396 # No CORS support for media elements is implemented yet. -
trunk/LayoutTests/platform/qt/TestExpectations
r140975 r141028 108 108 fast/events/constructors/ui-event-constructor.html 109 109 fast/events/constructors/mouse-event-constructor.html 110 fast/events/constructors/composition-event-constructor.html 110 111 111 112 # ENABLE(INDEXED_DATABASE) is disabled. -
trunk/LayoutTests/platform/win/TestExpectations
r140975 r141028 1214 1214 fast/events/constructors/ui-event-constructor.html 1215 1215 fast/events/constructors/mouse-event-constructor.html 1216 fast/events/constructors/composition-event-constructor.html 1216 1217 1217 1218 # Disable until the windows WebKit API supports injecting in the top frame only. -
trunk/LayoutTests/platform/wincairo/TestExpectations
r140679 r141028 1741 1741 fast/events/constructors/ui-event-constructor.html 1742 1742 fast/events/constructors/mouse-event-constructor.html 1743 fast/events/constructors/composition-event-constructor.html 1743 1744 1744 1745 # Disable until the windows WebKit API supports injecting in the top frame only. -
trunk/Source/WebCore/ChangeLog
r141025 r141028 1 2013-01-27 Kentaro Hara <haraken@chromium.org> 2 3 Implement CompositionEvent constructor 4 https://bugs.webkit.org/show_bug.cgi?id=107919 5 6 Reviewed by Sam Weinig. 7 8 This patch implements a CompositionEvent constructor under 9 a DOM4_EVENTS_CONSTRUCTOR flag. 10 11 Spec: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm 12 13 Test: fast/events/constructors/composition-event-constructor.html 14 15 * dom/CompositionEvent.cpp: 16 (WebCore::CompositionEventInit::CompositionEventInit): 17 (WebCore): 18 (WebCore::CompositionEvent::CompositionEvent): 19 * dom/CompositionEvent.h: 20 (CompositionEventInit): 21 (WebCore): 22 (CompositionEvent): 23 (WebCore::CompositionEvent::create): 24 (WebCore::CompositionEvent::data): 25 * dom/CompositionEvent.idl: 26 1 27 2013-01-28 Pratik Solanki <psolanki@apple.com> 2 28 -
trunk/Source/WebCore/dom/CompositionEvent.cpp
r98146 r141028 32 32 namespace WebCore { 33 33 34 CompositionEventInit::CompositionEventInit() 35 { 36 } 37 34 38 CompositionEvent::CompositionEvent() 35 39 { … … 39 43 : UIEvent(type, true, true, view, 0) 40 44 , m_data(data) 45 { 46 } 47 48 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEventInit& initializer) 49 : UIEvent(type, initializer) 50 , m_data(initializer.data) 41 51 { 42 52 } -
trunk/Source/WebCore/dom/CompositionEvent.h
r98146 r141028 32 32 namespace WebCore { 33 33 34 class CompositionEvent : public UIEvent { 35 public: 36 static PassRefPtr<CompositionEvent> create() 37 { 38 return adoptRef(new CompositionEvent); 39 } 40 static PassRefPtr<CompositionEvent> create(const AtomicString& type, PassRefPtr<AbstractView> view, const String& data) 41 { 42 return adoptRef(new CompositionEvent(type, view, data)); 43 } 44 virtual ~CompositionEvent(); 34 struct CompositionEventInit : UIEventInit { 35 CompositionEventInit(); 45 36 46 void initCompositionEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, const String& data); 37 String data; 38 }; 47 39 48 String data() const { return m_data; } 40 class CompositionEvent : public UIEvent { 41 public: 42 static PassRefPtr<CompositionEvent> create() 43 { 44 return adoptRef(new CompositionEvent); 45 } 49 46 50 virtual const AtomicString& interfaceName() const; 47 static PassRefPtr<CompositionEvent> create(const AtomicString& type, PassRefPtr<AbstractView> view, const String& data) 48 { 49 return adoptRef(new CompositionEvent(type, view, data)); 50 } 51 51 52 private: 53 CompositionEvent(); 54 CompositionEvent(const AtomicString& type, PassRefPtr<AbstractView> view, const String& data); 52 static PassRefPtr<CompositionEvent> create(const AtomicString& type, const CompositionEventInit& initializer) 53 { 54 return adoptRef(new CompositionEvent(type, initializer)); 55 } 55 56 56 String m_data; 57 }; 57 virtual ~CompositionEvent(); 58 59 void initCompositionEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, const String& data); 60 61 String data() const { return m_data; } 62 63 virtual const AtomicString& interfaceName() const; 64 65 private: 66 CompositionEvent(); 67 CompositionEvent(const AtomicString& type, PassRefPtr<AbstractView>, const String&); 68 CompositionEvent(const AtomicString& type, const CompositionEventInit&); 69 70 String m_data; 71 }; 58 72 59 73 } // namespace WebCore -
trunk/Source/WebCore/dom/CompositionEvent.idl
r131145 r141028 24 24 */ 25 25 26 // Introduced in DOM Level 3: 27 interface CompositionEvent : UIEvent { 26 [ 27 ConstructorConditional=DOM4_EVENTS_CONSTRUCTOR, 28 ConstructorTemplate=Event 29 ] interface CompositionEvent : UIEvent { 28 30 29 readonly attribute DOMString data;31 [InitializedByEventConstructor] readonly attribute DOMString data; 30 32 31 33 void initCompositionEvent(in [Optional=DefaultIsUndefined] DOMString typeArg,
Note: See TracChangeset
for help on using the changeset viewer.