Fix for Bug 17644 [INLINE-H] negative text-indent paragraphs starting with images, r=dbaron, sr=roc+moz
This commit is contained in:
@@ -1672,7 +1672,7 @@ nsLineLayout::PlaceFrame(PerFrameData* pfd, nsHTMLReflowMetrics& aMetrics)
|
|||||||
|
|
||||||
// Count the number of frames on the line...
|
// Count the number of frames on the line...
|
||||||
mTotalPlacedFrames++;
|
mTotalPlacedFrames++;
|
||||||
if (psd->mX != psd->mLeftEdge) {
|
if (psd->mX != psd->mLeftEdge || pfd->mBounds.x != psd->mLeftEdge) {
|
||||||
// As soon as a frame placed on the line advances an X coordinate
|
// As soon as a frame placed on the line advances an X coordinate
|
||||||
// of any span we can no longer place a floater on the line.
|
// of any span we can no longer place a floater on the line.
|
||||||
SetFlag(LL_CANPLACEFLOATER, PR_FALSE);
|
SetFlag(LL_CANPLACEFLOATER, PR_FALSE);
|
||||||
|
|||||||
@@ -1672,7 +1672,7 @@ nsLineLayout::PlaceFrame(PerFrameData* pfd, nsHTMLReflowMetrics& aMetrics)
|
|||||||
|
|
||||||
// Count the number of frames on the line...
|
// Count the number of frames on the line...
|
||||||
mTotalPlacedFrames++;
|
mTotalPlacedFrames++;
|
||||||
if (psd->mX != psd->mLeftEdge) {
|
if (psd->mX != psd->mLeftEdge || pfd->mBounds.x != psd->mLeftEdge) {
|
||||||
// As soon as a frame placed on the line advances an X coordinate
|
// As soon as a frame placed on the line advances an X coordinate
|
||||||
// of any span we can no longer place a floater on the line.
|
// of any span we can no longer place a floater on the line.
|
||||||
SetFlag(LL_CANPLACEFLOATER, PR_FALSE);
|
SetFlag(LL_CANPLACEFLOATER, PR_FALSE);
|
||||||
|
|||||||
Reference in New Issue
Block a user