Fix debug DumpRegressionData method to not crash on null uris for things like

mBinding, mBackgroundImage, etc


git-svn-id: svn://10.0.0.236/trunk@147603 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2003-10-06 02:16:20 +00:00
parent 8e79545d21
commit 4dcff7ec30
2 changed files with 10 additions and 2 deletions

View File

@ -538,7 +538,11 @@ nsStyleContext::Mark()
class URICString : public nsCAutoString {
public:
URICString(nsIURI* aURI) {
aURI->GetSpec(*this);
if (aURI) {
aURI->GetSpec(*this);
} else {
Assign("[no background image]");
}
}
URICString& operator=(const URICString& aOther) {

View File

@ -538,7 +538,11 @@ nsStyleContext::Mark()
class URICString : public nsCAutoString {
public:
URICString(nsIURI* aURI) {
aURI->GetSpec(*this);
if (aURI) {
aURI->GetSpec(*this);
} else {
Assign("[no background image]");
}
}
URICString& operator=(const URICString& aOther) {