[WebVR] Fix VRDisplayEvent implementation
authorsvillar@igalia.com <svillar@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2018 11:42:00 +0000 (11:42 +0000)
committersvillar@igalia.com <svillar@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2018 11:42:00 +0000 (11:42 +0000)
commit1454087a20451f8798b4064a852a5757c8dfa42a
tree3ffb8c24e6d3a931804e29d928181961b18dfaa8
parent4252fa70e72edbe08973cb251ff4b9a1dc08e53f
[WebVR] Fix VRDisplayEvent implementation
https://bugs.webkit.org/show_bug.cgi?id=187337

Reviewed by Žan Doberšek.

VRDisplayEvent implementation had two issues. First there were no attributes storing the
VRDisplay the event refers to. Secondly the VRDisplayEventReason is not mandatory so it
should be handled via an optional.

* Modules/webvr/VRDisplayEvent.cpp:
(WebCore::VRDisplayEvent::VRDisplayEvent):
(WebCore::VRDisplayEvent::display const): Deleted.
(WebCore::VRDisplayEvent::reason const): Deleted.
* Modules/webvr/VRDisplayEvent.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/webvr/VRDisplayEvent.cpp
Source/WebCore/Modules/webvr/VRDisplayEvent.h