mirror of
https://github.com/androidx/media.git
synced 2025-05-09 00:20:45 +08:00
Remove WebvttCssStyle.cascadeFrom()
It's not used. I was trying to work out how to correctly cascade my text-combine-upright styling, but deleting the method seemed easier... PiperOrigin-RevId: 287989480
This commit is contained in:
parent
0587180f14
commit
88e70d7c1b
@ -287,37 +287,6 @@ public final class WebvttCssStyle {
|
||||
return fontSize;
|
||||
}
|
||||
|
||||
public void cascadeFrom(WebvttCssStyle style) {
|
||||
if (style.hasFontColor) {
|
||||
setFontColor(style.fontColor);
|
||||
}
|
||||
if (style.bold != UNSPECIFIED) {
|
||||
bold = style.bold;
|
||||
}
|
||||
if (style.italic != UNSPECIFIED) {
|
||||
italic = style.italic;
|
||||
}
|
||||
if (style.fontFamily != null) {
|
||||
fontFamily = style.fontFamily;
|
||||
}
|
||||
if (linethrough == UNSPECIFIED) {
|
||||
linethrough = style.linethrough;
|
||||
}
|
||||
if (underline == UNSPECIFIED) {
|
||||
underline = style.underline;
|
||||
}
|
||||
if (textAlign == null) {
|
||||
textAlign = style.textAlign;
|
||||
}
|
||||
if (fontSizeUnit == UNSPECIFIED) {
|
||||
fontSizeUnit = style.fontSizeUnit;
|
||||
fontSize = style.fontSize;
|
||||
}
|
||||
if (style.hasBackgroundColor) {
|
||||
setBackgroundColor(style.backgroundColor);
|
||||
}
|
||||
}
|
||||
|
||||
private static int updateScoreForMatch(
|
||||
int currentScore, String target, @Nullable String actual, int score) {
|
||||
if (target.isEmpty() || currentScore == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user