Fix crashes on restyling of a node with a broken URI in content:. Bug 308890,
patch by Mats Palmgren <mats.palmgren@bredband.net>, r+sr=dbaron git-svn-id: svn://10.0.0.236/trunk@180626 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
29205c7e0b
commit
b90cffc0a2
@ -1339,6 +1339,8 @@ PRBool nsStyleContentData::operator==(const nsStyleContentData& aOther)
|
||||
if (mType != aOther.mType)
|
||||
return PR_FALSE;
|
||||
if (mType == eStyleContentType_Image) {
|
||||
if (!mContent.mImage || !aOther.mContent.mImage)
|
||||
return mContent.mImage == aOther.mContent.mImage;
|
||||
PRBool eq;
|
||||
nsCOMPtr<nsIURI> thisURI, otherURI;
|
||||
mContent.mImage->GetURI(getter_AddRefs(thisURI));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user