Fix var issues (noted by YUI compression)
This commit is contained in:
parent
e4982cb703
commit
737fbc01df
|
@ -815,7 +815,7 @@
|
||||||
//
|
//
|
||||||
// Adjust margins to prevent overlaps at the edges
|
// Adjust margins to prevent overlaps at the edges
|
||||||
//
|
//
|
||||||
var child = span.firstChild.firstChild.style;
|
child = span.firstChild.firstChild.style;
|
||||||
if (bbox.H != null && bbox.H > bbox.h)
|
if (bbox.H != null && bbox.H > bbox.h)
|
||||||
{child.marginTop = HTMLCSS.Em(bbox.H-Math.max(bbox.h,HTMLCSS.FONTDATA.lineH))}
|
{child.marginTop = HTMLCSS.Em(bbox.H-Math.max(bbox.h,HTMLCSS.FONTDATA.lineH))}
|
||||||
if (bbox.D != null && bbox.D > bbox.d)
|
if (bbox.D != null && bbox.D > bbox.d)
|
||||||
|
@ -1737,9 +1737,9 @@
|
||||||
for (var i = 0, m = this.data.length; i < m; i++)
|
for (var i = 0, m = this.data.length; i < m; i++)
|
||||||
{if (this.data[i]) {this.data[i].toHTML(span)}}
|
{if (this.data[i]) {this.data[i].toHTML(span)}}
|
||||||
var stretchy = this.HTMLcomputeBBox(span);
|
var stretchy = this.HTMLcomputeBBox(span);
|
||||||
var h = span.bbox.h, d = span.bbox.d, stretched = false;
|
var h = span.bbox.h, d = span.bbox.d, stretched = false, bbox;
|
||||||
for (i = 0, m = stretchy.length; i < m; i++) {
|
for (i = 0, m = stretchy.length; i < m; i++) {
|
||||||
var bbox = stretchy[i].HTMLspanElement().bbox;
|
bbox = stretchy[i].HTMLspanElement().bbox;
|
||||||
if (stretchy[i].forceStretch || bbox.h !== h || bbox.d !== d)
|
if (stretchy[i].forceStretch || bbox.h !== h || bbox.d !== d)
|
||||||
{stretchy[i].HTMLstretchV(span,h,d); stretched = true}
|
{stretchy[i].HTMLstretchV(span,h,d); stretched = true}
|
||||||
}
|
}
|
||||||
|
@ -1749,7 +1749,7 @@
|
||||||
this.HTMLhandleColor(span);
|
this.HTMLhandleColor(span);
|
||||||
if (this.data.length === 1 && this.data[0]) {
|
if (this.data.length === 1 && this.data[0]) {
|
||||||
// copy skew data from accented character
|
// copy skew data from accented character
|
||||||
var bbox = this.data[0].HTMLspanElement().bbox;
|
bbox = this.data[0].HTMLspanElement().bbox;
|
||||||
if (bbox.skew) span.bbox.skew = bbox.skew;
|
if (bbox.skew) span.bbox.skew = bbox.skew;
|
||||||
}
|
}
|
||||||
return span;
|
return span;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user