mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Attempt to fix nebiros bustage by moving style struct access into nsIInspectorCSSUtils
r/a=timeless,jkeiser,#mozilla bug 147189
This commit is contained in:
parent
3beb6c7274
commit
11a7fe7e34
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user