| Index: Source/core/html/track/TextTrackCueGeneric.cpp
|
| diff --git a/Source/core/html/track/TextTrackCueGeneric.cpp b/Source/core/html/track/TextTrackCueGeneric.cpp
|
| index 5ea1db44c40d895fcd81ef964dec953f48267f0e..b80e67b7d9bf85c432193a43d2e500a6413913a1 100644
|
| --- a/Source/core/html/track/TextTrackCueGeneric.cpp
|
| +++ b/Source/core/html/track/TextTrackCueGeneric.cpp
|
| @@ -73,10 +73,10 @@ void TextTrackCueGenericBoxElement::applyCSSProperties(const IntSize& videoSize)
|
| setInlineStyleProperty(CSSPropertyHeight, size, CSSPrimitiveValue::CSS_PERCENTAGE);
|
| }
|
|
|
| - if (cue->foregroundColor().alpha())
|
| + if (cue->foregroundColor().isValid())
|
| setInlineStyleProperty(CSSPropertyColor, cue->foregroundColor().serialized());
|
|
|
| - if (cue->backgroundColor().alpha())
|
| + if (cue->backgroundColor().isValid())
|
| cue->element()->setInlineStyleProperty(CSSPropertyBackgroundColor, cue->backgroundColor().serialized());
|
|
|
| if (cue->getWritingDirection() == TextTrackCue::Horizontal)
|
|
|