Bug 522374. Ignore <area> elements in looking for a next/prev siblings for frame construction due to their misuse of the primary frame map. r=bz

This commit is contained in:
Timothy Nikkel
2009-10-16 20:51:05 -05:00
parent 0af5da9be3
commit 682517bae0

View File

@@ -5867,7 +5867,9 @@ nsCSSFrameConstructor::FindFrameForContentSibling(nsIContent* aContent,
PRBool aPrevSibling)
{
nsIFrame* sibling = mPresShell->GetPrimaryFrameFor(aContent);
if (!sibling) {
if (!sibling || sibling->GetContent() != aContent) {
// XXX the GetContent() != aContent check is needed due to bug 135040.
// Remove it once that's fixed.
return nsnull;
}