Attempt to fix nebiros bustage by moving style struct access into nsIInspectorCSSUtils

r/a=timeless,jkeiser,#mozilla
bug 147189
This commit is contained in:
caillon%returnzero.com 2006-05-17 02:37:44 +00:00
parent 3beb6c7274
commit 11a7fe7e34

View File

@ -154,11 +154,10 @@ inDOMUtils::IsIgnorableWhitespace(nsIDOMCharacterData *aDataNode,
getter_AddRefs(styleContext));
if (styleContext) {
const nsStyleText* text = nsnull;
::GetStyleData(styleContext, &text);
NS_ASSERTION(text, "Could not get a style struct!");
PRBool significant = PR_FALSE;
mCSSUtils->IsWhiteSpaceSignificant(styleContext, &significant);
*aReturn = !text->WhiteSpaceIsSignificant();
*aReturn = !significant;
}
else {
// No style context. Let's just assume the default value of