Changeset 18857 in webkit


Ignore:
Timestamp:
Jan 15, 2007 2:10:49 AM (17 years ago)
Author:
hyatt
Message:

Fix for 12275, negative margins confuse page breaks.

Reviewed by Eric

  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::paintChildren):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r18856 r18857  
     12007-01-15  David Hyatt  <hyatt@apple.com>
     2
     3        Fix  for 12275, negative margins confuse page breaks.
     4
     5        Reviewed by Eric
     6
     7        * rendering/RenderBlock.cpp:
     8        (WebCore::RenderBlock::paintChildren):
     9
    1102007-01-15  Eric Seidel  <eric@eseidel.com>
    211
  • trunk/WebCore/rendering/RenderBlock.cpp

    r18840 r18857  
    14311431            inRootBlockContext() && (ty + child->yPos() + child->height()) > paintInfo.rect.y() &&
    14321432            (ty + child->yPos() + child->height()) < paintInfo.rect.bottom()) {
    1433             view()->setBestTruncatedAt(ty + child->yPos() + child->height() + child->collapsedMarginBottom(), this, true);
     1433            view()->setBestTruncatedAt(ty + child->yPos() + child->height() + max(0, child->collapsedMarginBottom()), this, true);
    14341434            return;
    14351435        }
Note: See TracChangeset for help on using the changeset viewer.