mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1469769 - Part 4: svg: Replace failing NS_NOTREACHED with NS_ERROR. r=heycam
I'm replacing non-failing calls to NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE, but this NS_NOTREACHED fails when running the dom/svg/crashtests/412104-1.svg test. This assertion failure is bug 903785. This patch DOES NOT fix the cause of the assertion failure (a missing TextNodeCorrespondenceProperty). It just replaces this failing NS_NOTREACHED with NS_ERROR because I can't replace with a fatal MOZ_ASSERT_UNREACHABLE. MozReview-Commit-ID: 8ffEdO5W1zU --HG-- extra : rebase_source : 618008591b516e3b4b51871debcd0cf177a3f5b1 extra : intermediate-source : 099e1bbbc5b43b67ad9324464e4eec2e33d7eaa3 extra : source : f95d808c6f81b656c680d1dd005236571dedee20
This commit is contained in:
parent
74dea2596b
commit
f743d8e9dd
@ -1333,8 +1333,9 @@ GetUndisplayedCharactersBeforeFrame(nsTextFrame* aFrame)
|
||||
TextNodeCorrespondence* correspondence =
|
||||
static_cast<TextNodeCorrespondence*>(value);
|
||||
if (!correspondence) {
|
||||
NS_NOTREACHED("expected a TextNodeCorrespondenceProperty on nsTextFrame "
|
||||
"used for SVG text");
|
||||
// FIXME bug 903785
|
||||
NS_ERROR("expected a TextNodeCorrespondenceProperty on nsTextFrame "
|
||||
"used for SVG text");
|
||||
return 0;
|
||||
}
|
||||
return correspondence->mUndisplayedCharacters;
|
||||
|
Loading…
Reference in New Issue
Block a user