| Index: Source/core/html/track/InbandTextTrack.cpp
|
| diff --git a/Source/core/html/track/InbandTextTrack.cpp b/Source/core/html/track/InbandTextTrack.cpp
|
| index b1076d4028a9960c6ecef517d38979ab75811f72..95f629d74ef34175a4c26d0ee21b8260b7a0bb3e 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().alpha())
|
| + if (cueData->backgroundColor().isValid())
|
| cue->setBackgroundColor(cueData->backgroundColor().rgb());
|
| - if (cueData->foregroundColor().alpha())
|
| + if (cueData->foregroundColor().isValid())
|
| cue->setForegroundColor(cueData->foregroundColor().rgb());
|
|
|
| if (cueData->align() == GenericCueData::Start)
|
|
|