Changeset 3526
- Timestamp:
- 01/31/03 13:13:29 (6 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 modified
-
ChangeLog-2003-10-25 (modified) (1 diff)
-
ChangeLog-2005-08-23 (modified) (1 diff)
-
khtml/rendering/render_flow.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog-2003-10-25
r3525 r3526 1 2003-01-31 Darin Adler <darin@apple.com> 2 3 Reviewed by me, Dave wrote the code. 4 5 - fixed 3162013 -- Safari collapses margins through bottom borders (affects top of zeldman.com) 6 7 * khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren): 8 Don't collapse if we have any bottom border or padding. 9 1 10 2003-01-31 Darin Adler <darin@apple.com> 2 11 -
trunk/WebCore/ChangeLog-2005-08-23
r3525 r3526 1 2003-01-31 Darin Adler <darin@apple.com> 2 3 Reviewed by me, Dave wrote the code. 4 5 - fixed 3162013 -- Safari collapses margins through bottom borders (affects top of zeldman.com) 6 7 * khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren): 8 Don't collapse if we have any bottom border or padding. 9 1 10 2003-01-31 Darin Adler <darin@apple.com> 2 11 -
trunk/WebCore/khtml/rendering/render_flow.cpp
r3509 r3526 745 745 746 746 // If any height other than auto is specified in CSS, then we don't collapse our bottom 747 // margins with our children's margins. To do otherwise would be to risk odd visual747 // margins with our children's margins. To do otherwise would be to risk odd visual 748 748 // effects when the children overflow out of the parent block and yet still collapse 749 // with it. 750 if (canCollapseWithChildren && !autoHeight) 749 // with it. We also don't collapse if we had any bottom border/padding (represented by 750 // |toAdd|. 751 if (canCollapseWithChildren && (toAdd || !autoHeight)) 751 752 canCollapseWithChildren = false; 752 753