Bug 1140216. Remove asserts that stuff that we never create is not null, since it clearly is null. r=jwatt

This commit is contained in:
Boris Zbarsky 2015-03-06 16:33:30 -05:00
parent fe04c04f8b
commit 974ca58155
3 changed files with 24 additions and 3 deletions

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<style>
input { -moz-appearance: textfield; }
</style>
<script>
function boom()
{
window.getComputedStyle(x, "::-moz-number-spin-down").getPropertyValue("color");
}
</script>
<body onload="boom();">
<input type="number" id="x">
</body>
</html>

View File

@ -60,3 +60,4 @@ load 949891.xhtml
load 959311.html
load 960277-2.html
load 1102791.html
load 1140216.html

View File

@ -805,17 +805,17 @@ nsNumberControlFrame::GetPseudoElement(nsCSSPseudoElements::Type aType)
}
if (aType == nsCSSPseudoElements::ePseudo_mozNumberSpinBox) {
MOZ_ASSERT(mSpinBox);
// Might be null.
return mSpinBox;
}
if (aType == nsCSSPseudoElements::ePseudo_mozNumberSpinUp) {
MOZ_ASSERT(mSpinUp);
// Might be null.
return mSpinUp;
}
if (aType == nsCSSPseudoElements::ePseudo_mozNumberSpinDown) {
MOZ_ASSERT(mSpinDown);
// Might be null.
return mSpinDown;
}