mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
fe04c04f8b
commit
974ca58155
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…
Reference in New Issue
Block a user