6596 |
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 |
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 |
6597 |
if ( val <= 0 || val == null ) { |
if ( val <= 0 || val == null ) { |
6598 |
// HACK for a Safari bug (see rdar #32565741) |
// HACK for a Safari bug (see rdar #32565741) |
6599 |
if (elem.firstChild.offsetHeight > 0) { |
if (name === "width") { |
6600 |
return elem.firstChild.offsetHeight; |
if (elem.firstChild.offsetWidth > 0) { |
6601 |
|
return elem.firstChild.offsetWidth; |
6602 |
|
} |
6603 |
|
} else { |
6604 |
|
if (elem.firstChild.offsetHeight > 0) { |
6605 |
|
return elem.firstChild.offsetHeight; |
6606 |
|
} |
6607 |
} |
} |
6608 |
|
|
6609 |
// Fall back to computed then uncomputed css if necessary |
// Fall back to computed then uncomputed css if necessary |