Reparent views when splitting inline ancestors. bug=329762 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@191981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
#include "nsBidiFrames.h"
|
||||
#include "nsBidiUtils.h"
|
||||
#include "nsCSSFrameConstructor.h"
|
||||
#include "nsHTMLContainerFrame.h"
|
||||
|
||||
static const PRUnichar kSpace = 0x0020;
|
||||
static const PRUnichar kLineSeparator = 0x2028;
|
||||
@@ -125,6 +126,12 @@ SplitInlineAncestors(nsPresContext* aPresContext,
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Reparent views as necessary
|
||||
rv = nsHTMLContainerFrame::ReparentFrameViewList(aPresContext, newFrame, parent, newParent);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
// The list name nsLayoutAtoms::nextBidi would indicate we don't want reflow
|
||||
rv = grandparent->InsertFrames(nsLayoutAtoms::nextBidi, parent, newParent);
|
||||
|
||||
Reference in New Issue
Block a user