diff --git a/layout/style/nsCSSLoader.cpp b/layout/style/nsCSSLoader.cpp index f46b2707357..5d36849a9b2 100644 --- a/layout/style/nsCSSLoader.cpp +++ b/layout/style/nsCSSLoader.cpp @@ -1139,7 +1139,7 @@ CSSLoaderImpl::InsertSheetInDoc(nsICSSStyleSheet* aSheet, "Why do we still have our old sheet?"); // Have to compare - if (nsContentUtils::PositionBefore(sheetOwnerNode, aLinkingContent)) { + if (nsContentUtils::PositionIsBefore(sheetOwnerNode, aLinkingContent)) { // The current sheet comes before us, and it better be the first // such, because now we break break;