зеркало из https://github.com/mozilla/pjs.git
Bug 335913: Reimplement CompareDocumentPosition using nsINode interfaces. r/sr=bz
This commit is contained in:
Родитель
78b593ffc9
Коммит
e207f41e6f
|
@ -1139,7 +1139,7 @@ CSSLoaderImpl::InsertSheetInDoc(nsICSSStyleSheet* aSheet,
|
||||||
"Why do we still have our old sheet?");
|
"Why do we still have our old sheet?");
|
||||||
|
|
||||||
// Have to compare
|
// 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
|
// The current sheet comes before us, and it better be the first
|
||||||
// such, because now we break
|
// such, because now we break
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче