Index: Source/core/html/track/InbandTextTrack.cpp |
diff --git a/Source/core/html/track/InbandTextTrack.cpp b/Source/core/html/track/InbandTextTrack.cpp |
index c97e193cde23befa69e310d5b8550db7afef7765..a18d82b7b27bad29a76db7059eeb8915cdf99296 100644 |
--- a/Source/core/html/track/InbandTextTrack.cpp |
+++ b/Source/core/html/track/InbandTextTrack.cpp |
@@ -156,9 +156,9 @@ void InbandTextTrack::addGenericCue(InbandTextTrackPrivate* trackPrivate, Generi |
cue->setLine(lround(cueData->line()), IGNORE_EXCEPTION); |
if (cueData->size() > 0) |
cue->setSize(lround(cueData->size()), IGNORE_EXCEPTION); |
- if (cueData->backgroundColor().isValid()) |
+ if (cueData->backgroundColor().alpha()) |
cue->setBackgroundColor(cueData->backgroundColor().rgb()); |
- if (cueData->foregroundColor().isValid()) |
+ if (cueData->foregroundColor().alpha()) |
cue->setForegroundColor(cueData->foregroundColor().rgb()); |
if (cueData->align() == GenericCueData::Start) |