| Index: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| index 15634a7a83e9693e7ccdbf8759c0d7a210ca5609..4bc83610e903afc6cc3fc93b955609de5ec5a6b5 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| @@ -330,11 +330,11 @@ IntSize HTMLVideoElement::bitmapSourceSize() const
|
| ScriptPromise HTMLVideoElement::createImageBitmap(ScriptState* scriptState, EventTarget& eventTarget, Optional<IntRect> cropRect, const ImageBitmapOptions& options, ExceptionState& exceptionState)
|
| {
|
| DCHECK(eventTarget.toLocalDOMWindow());
|
| - if (getNetworkState() == HTMLMediaElement::NETWORK_EMPTY) {
|
| + if (getNetworkState() == HTMLMediaElement::kNetworkEmpty) {
|
| exceptionState.throwDOMException(InvalidStateError, "The provided element has not retrieved data.");
|
| return ScriptPromise();
|
| }
|
| - if (getReadyState() <= HTMLMediaElement::HAVE_METADATA) {
|
| + if (getReadyState() <= HTMLMediaElement::kHaveMetadata) {
|
| exceptionState.throwDOMException(InvalidStateError, "The provided element's player has no current data.");
|
| return ScriptPromise();
|
| }
|
|
|