Bug 299065: Bidi resolution needs to split inlines in addition to text frames. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@190744 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -121,7 +121,7 @@ nsHTMLCanvasFrame::Reflow(nsPresContext* aPresContext,
|
||||
aMetrics.width += mBorderPadding.left + mBorderPadding.right;
|
||||
aMetrics.height += mBorderPadding.top + mBorderPadding.bottom;
|
||||
|
||||
if (mPrevInFlow) {
|
||||
if (GetPrevInFlow()) {
|
||||
nscoord y = GetContinuationOffset(&aMetrics.width);
|
||||
aMetrics.height -= y + mBorderPadding.top;
|
||||
aMetrics.height = PR_MAX(0, aMetrics.height);
|
||||
@@ -256,8 +256,8 @@ nsHTMLCanvasFrame::GetContinuationOffset(nscoord* aWidth) const
|
||||
*aWidth = 0;
|
||||
}
|
||||
|
||||
if (mPrevInFlow) {
|
||||
for (nsIFrame* prevInFlow = mPrevInFlow ; prevInFlow; prevInFlow = prevInFlow->GetPrevInFlow()) {
|
||||
if (GetPrevInFlow()) {
|
||||
for (nsIFrame* prevInFlow = GetPrevInFlow() ; prevInFlow; prevInFlow = prevInFlow->GetPrevInFlow()) {
|
||||
nsRect rect = prevInFlow->GetRect();
|
||||
if (aWidth) {
|
||||
*aWidth = rect.width;
|
||||
|
||||
Reference in New Issue
Block a user