mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 13:52:37 +00:00
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:
parent
8aaa845a81
commit
1be2f186e5
20
layout/forms/crashtests/1140216.html
Normal file
20
layout/forms/crashtests/1140216.html
Normal 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>
|
@ -60,3 +60,4 @@ load 949891.xhtml
|
||||
load 959311.html
|
||||
load 960277-2.html
|
||||
load 1102791.html
|
||||
load 1140216.html
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user