[MSE] Add isValid() assertions on PlatformTimeRanges::add() range ends
authoraboya@igalia.com <aboya@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2018 18:01:58 +0000 (18:01 +0000)
committeraboya@igalia.com <aboya@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2018 18:01:58 +0000 (18:01 +0000)
commitccb294bacaae1f9e2a78fedf0de6b069ea27cfbe
tree48f15a8665ffc41f05fbc8c1a7fb5e6d579496a0
parent64519eccfe5dbae93146e85030326a307745d2d7
[MSE] Add isValid() assertions on PlatformTimeRanges::add() range ends
https://bugs.webkit.org/show_bug.cgi?id=180253

Right now it's checked that start <= end but it's not checked that
neither of them is undefined.

When this happens, the bug can be hard to track down.

The assertion is not enabled for Mac because there is currently a test
that is hitting it.

Reviewed by Jer Noble.

* platform/graphics/PlatformTimeRanges.cpp:
(WebCore::PlatformTimeRanges::add):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230584 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/PlatformTimeRanges.cpp