зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1276130 - part1 : replace the value 'middle' with 'center. r=rillian,smaug
MozReview-Commit-ID: 9rh32HkilYv --HG-- extra : rebase_source : bf08e4ffc77378553760dfae3854248cf700ea09
This commit is contained in:
Родитель
4aae6261d7
Коммит
3d967f770e
|
@ -39,7 +39,7 @@ TextTrackCue::SetDefaultCueSettings()
|
|||
mPauseOnExit = false;
|
||||
mSnapToLines = true;
|
||||
mLineIsAutoKeyword = true;
|
||||
mAlign = AlignSetting::Middle;
|
||||
mAlign = AlignSetting::Center;
|
||||
mLineAlign = LineAlignSetting::Start;
|
||||
mVertical = DirectionSetting::_empty;
|
||||
mActive = false;
|
||||
|
|
|
@ -218,7 +218,7 @@ this.EXPORTED_SYMBOLS = ["WebVTT"];
|
|||
settings.percent(k, v);
|
||||
break;
|
||||
case "align":
|
||||
settings.alt(k, v, ["start", "middle", "end", "left", "right"]);
|
||||
settings.alt(k, v, ["start", "center", "end", "left", "right"]);
|
||||
break;
|
||||
}
|
||||
}, /:/, /\s/);
|
||||
|
@ -230,7 +230,7 @@ this.EXPORTED_SYMBOLS = ["WebVTT"];
|
|||
cue.lineAlign = settings.get("lineAlign", "start");
|
||||
cue.snapToLines = settings.get("snapToLines", true);
|
||||
cue.size = settings.get("size", 100);
|
||||
cue.align = settings.get("align", "middle");
|
||||
cue.align = settings.get("align", "center");
|
||||
cue.position = settings.get("position", {
|
||||
start: 0,
|
||||
left: 0,
|
||||
|
@ -736,11 +736,10 @@ this.EXPORTED_SYMBOLS = ["WebVTT"];
|
|||
this.applyStyles(styles, this.cueDiv);
|
||||
|
||||
// Create an absolutely positioned div that will be used to position the cue
|
||||
// div. Note, all WebVTT cue-setting alignments are equivalent to the CSS
|
||||
// mirrors of them except "middle" which is "center" in CSS.
|
||||
// div.
|
||||
this.div = window.document.createElement("div");
|
||||
styles = {
|
||||
textAlign: cue.align === "middle" ? "center" : cue.align,
|
||||
textAlign: cue.align,
|
||||
font: styleOptions.font,
|
||||
whiteSpace: "pre-line",
|
||||
position: "absolute"
|
||||
|
|
|
@ -24,7 +24,7 @@ enum PositionAlignSetting {
|
|||
|
||||
enum AlignSetting {
|
||||
"start",
|
||||
"middle",
|
||||
"center",
|
||||
"end",
|
||||
"left",
|
||||
"right"
|
||||
|
|
Загрузка…
Ссылка в новой задаче