зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
c1b5abd259
Коммит
40ffa23361
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче