Bug 660959 - Update link state less lazily r=bz

This commit is contained in:
David Zbarsky
2011-11-14 16:24:41 +13:00
parent 691a4185f8
commit 132af73713
20 changed files with 218 additions and 77 deletions

View File

@@ -4547,7 +4547,8 @@ nsCSSFrameConstructor::ResolveStyleContext(nsStyleContext* aParentStyleContext,
nsFrameConstructorState* aState)
{
nsStyleSet *styleSet = mPresShell->StyleSet();
aContent->OwnerDoc()->FlushPendingLinkUpdates();
if (aContent->IsElement()) {
if (aState) {
return styleSet->ResolveStyleFor(aContent->AsElement(),