| Index: third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp
|
| diff --git a/third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp b/third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp
|
| index 911ea9067ad1dc4d314f6560203f1d1a28ecf691..a4bb9f81a7a7366a5cec7e6ba7ded8548e398b73 100644
|
| --- a/third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp
|
| +++ b/third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp
|
| @@ -6,27 +6,19 @@
|
|
|
| namespace blink {
|
|
|
| -SensorReadingEvent::~SensorReadingEvent()
|
| -{
|
| -}
|
| +SensorReadingEvent::~SensorReadingEvent() = default;
|
|
|
| -SensorReadingEvent::SensorReadingEvent(const AtomicString& eventType)
|
| - : Event(eventType, true, false) // let default be bubbles but is not cancelable.
|
| - , m_reading(SensorReading::create())
|
| -{
|
| -}
|
| +SensorReadingEvent::SensorReadingEvent() = default;
|
|
|
| -SensorReadingEvent::SensorReadingEvent(const AtomicString& eventType, SensorReading& reading)
|
| - : Event(eventType, true, false) // let default be bubbles but is not cancelable.
|
| +SensorReadingEvent::SensorReadingEvent(const AtomicString& eventType, SensorReading* reading)
|
| + : Event(eventType, false, false) // Does not bubble and is not cancelable.
|
| , m_reading(reading)
|
| {
|
| }
|
|
|
| SensorReadingEvent::SensorReadingEvent(const AtomicString& eventType, const SensorReadingEventInit& initializer)
|
| - : Event(eventType, initializer)
|
| - , m_reading(SensorReading::create())
|
| + : SensorReadingEvent(eventType, initializer.reading())
|
| {
|
| - setCanBubble(true);
|
| }
|
|
|
| const AtomicString& SensorReadingEvent::interfaceName() const
|
|
|