Fix for 13815. Implement OnContentInserted. Approved by chofmann and reviewed by hyatt.
git-svn-id: svn://10.0.0.236/trunk@48921 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -5713,7 +5713,15 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
|
||||
// Convert to a tree row group frame.
|
||||
nsTreeRowGroupFrame* treeRowGroup = (nsTreeRowGroupFrame*)parentFrame;
|
||||
if (treeRowGroup && treeRowGroup->IsLazy()) {
|
||||
treeRowGroup->OnContentAdded(*aPresContext);
|
||||
nsIFrame* nextSibling = FindNextSibling(shell, aContainer, aIndexInContainer);
|
||||
if(!nextSibling)
|
||||
treeRowGroup->OnContentAdded(*aPresContext);
|
||||
else {
|
||||
nsIFrame* frame = GetFrameFor(shell, aPresContext, aContainer);
|
||||
nsTreeRowGroupFrame* frameTreeRowGroup = (nsTreeRowGroupFrame*)frame;
|
||||
if(frameTreeRowGroup)
|
||||
frameTreeRowGroup->OnContentInserted(*aPresContext, nextSibling);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user