Fix margin-right for ::first-letter. b=60289 r=rbs sr=dbaron

This commit is contained in:
mats.palmgren%bredband.net 2004-11-28 02:17:42 +00:00
Родитель 74ac1e169b
Коммит 2ea386e9aa
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1276,7 +1276,7 @@ nsLineLayout::CanPlaceFrame(PerFrameData* pfd,
// XXXwaterson this is probably not exactly right; e.g., embeddings, etc.
PRBool ltr = (NS_STYLE_DIRECTION_LTR == aReflowState.mStyleVisibility->mDirection);
if (NS_FRAME_IS_NOT_COMPLETE(aStatus)) {
if (NS_FRAME_IS_NOT_COMPLETE(aStatus) && !pfd->GetFlag(PFD_ISLETTERFRAME)) {
// Only apply end margin for the last-in-flow. Zero this out so
// that when we compute the max-element-width of the frame we
// will properly avoid adding in the end margin.

Просмотреть файл

@ -1276,7 +1276,7 @@ nsLineLayout::CanPlaceFrame(PerFrameData* pfd,
// XXXwaterson this is probably not exactly right; e.g., embeddings, etc.
PRBool ltr = (NS_STYLE_DIRECTION_LTR == aReflowState.mStyleVisibility->mDirection);
if (NS_FRAME_IS_NOT_COMPLETE(aStatus)) {
if (NS_FRAME_IS_NOT_COMPLETE(aStatus) && !pfd->GetFlag(PFD_ISLETTERFRAME)) {
// Only apply end margin for the last-in-flow. Zero this out so
// that when we compute the max-element-width of the frame we
// will properly avoid adding in the end margin.