Index: Source/core/html/track/TextTrackCueGeneric.cpp |
diff --git a/Source/core/html/track/TextTrackCueGeneric.cpp b/Source/core/html/track/TextTrackCueGeneric.cpp |
index 86907940ef1d6a5f44c66232e4896874fba02dd0..a7f0db26ef305615357af24d2c7cb2be419f3445 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().isValid()) |
+ if (cue->foregroundColor().alpha()) |
setInlineStyleProperty(CSSPropertyColor, cue->foregroundColor().serialized()); |
- if (cue->backgroundColor().isValid()) |
+ if (cue->backgroundColor().alpha()) |
cue->element()->setInlineStyleProperty(CSSPropertyBackgroundColor, cue->backgroundColor().serialized()); |
if (cue->getWritingDirection() == TextTrackCue::Horizontal) |