Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTrackElement.idl ('k') | third_party/WebKit/Source/core/html/MediaError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698