mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
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
--HG-- extra : rebase_source : 1b996eb1c5c6a130197e84ad11998afae4b20eb9
This commit is contained in:
parent
b673b2a8b9
commit
575feb2291
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user