Backed out 5 changesets (bug 1298768, bug 1297963) for causing widespread mochitest-bc failures.
Backed out changeset dedd56fa5c54 (bug1297963) Backed out changeset bc1ac59cfe8f (bug1297963) Backed out changeset a2e337d5aa02 (bug1297963) Backed out changeset e73da71408a3 (bug1297963) Backed out changeset 56f8bca8f8e8 (bug 1298768) CLOSED TREE
This commit is contained in:
@@ -9175,12 +9175,11 @@ nsCSSFrameConstructor::CaptureStateForFramesOf(nsIContent* aContent,
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
DefinitelyEqualURIsAndPrincipal(mozilla::css::URLValue* aURI1,
|
||||
mozilla::css::URLValue* aURI2)
|
||||
static bool EqualURIs(mozilla::css::URLValue *aURI1,
|
||||
mozilla::css::URLValue *aURI2)
|
||||
{
|
||||
return aURI1 == aURI2 ||
|
||||
(aURI1 && aURI2 && aURI1->DefinitelyEqualURIsAndPrincipal(*aURI2));
|
||||
return aURI1 == aURI2 || // handle null==null, and optimize
|
||||
(aURI1 && aURI2 && aURI1->URIEquals(*aURI2));
|
||||
}
|
||||
|
||||
nsStyleContext*
|
||||
@@ -9216,8 +9215,7 @@ nsCSSFrameConstructor::MaybeRecreateFramesForElement(Element* aElement)
|
||||
return newContext;
|
||||
}
|
||||
const nsStyleDisplay* oldDisp = oldContext->PeekStyleDisplay();
|
||||
if (oldDisp &&
|
||||
DefinitelyEqualURIsAndPrincipal(disp->mBinding, oldDisp->mBinding)) {
|
||||
if (oldDisp && EqualURIs(disp->mBinding, oldDisp->mBinding)) {
|
||||
return newContext;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user