[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
hyatt
hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:10:06 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit d61f123a1669188ded314cf8837b1f7e3dbcfb51
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Nov 7 07:58:36 2003 +0000
Fixes for 3476717, inline blocks should expand to encompass floats; 3476718, inline blocks should not
collapse margins with children; and 3476721, run-ins and compacts can flow into anonymous blocks, even
ones that they caused to be created by failing to run in/compact in the first place.
Reviewed by darin (inline block fixes only).
* khtml/rendering/render_block.cpp:
(khtml::RenderBlock::layoutBlock):
(khtml::RenderBlock::layoutBlockChildren):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5416 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 01b4ecc..a73c03b 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,15 @@
+2003-11-06 David Hyatt <hyatt at apple.com>
+
+ Fixes for 3476717, inline blocks should expand to encompass floats; 3476718, inline blocks should not
+ collapse margins with children; and 3476721, run-ins and compacts can flow into anonymous blocks, even
+ ones that they caused to be created by failing to run in/compact in the first place.
+
+ Reviewed by darin (inline block fixes only).
+
+ * khtml/rendering/render_block.cpp:
+ (khtml::RenderBlock::layoutBlock):
+ (khtml::RenderBlock::layoutBlockChildren):
+
2003-11-06 Richard Williamson <rjw at apple.com>
Fixed 3476563. Remove unnecessary call to set view position after load completes.
diff --git a/WebCore/khtml/rendering/render_block.cpp b/WebCore/khtml/rendering/render_block.cpp
index ec26d55..ac39683 100644
--- a/WebCore/khtml/rendering/render_block.cpp
+++ b/WebCore/khtml/rendering/render_block.cpp
@@ -438,7 +438,7 @@ void RenderBlock::layoutBlock(bool relayoutChildren)
layoutBlockChildren( relayoutChildren );
// Expand our intrinsic height to encompass floats.
- if ( hasOverhangingFloats() && (isFloatingOrPositioned() || style()->hidesOverflow() ||
+ if ( hasOverhangingFloats() && (isInlineBlockOrInlineTable() || isFloatingOrPositioned() || style()->hidesOverflow() ||
(parent() && parent()->isFlexibleBox())) )
m_height = floatBottom() + borderBottom() + paddingBottom();
@@ -536,7 +536,7 @@ void RenderBlock::layoutBlockChildren( bool relayoutChildren )
// For now we only worry about the top border/padding. We will update the variable's
// value when it comes time to check against the bottom border/padding.
bool canCollapseWithChildren = !isCanvas() && !isRoot() && !isPositioned() &&
- !isFloating() && !isTableCell() && !style()->hidesOverflow();
+ !isFloating() && !isTableCell() && !style()->hidesOverflow() && !isInlineBlockOrInlineTable();
bool canCollapseTopWithChildren = canCollapseWithChildren && (m_height == 0);
// If any height other than auto is specified in CSS, then we don't collapse our bottom
@@ -662,8 +662,7 @@ void RenderBlock::layoutBlockChildren( bool relayoutChildren )
RenderObject* curr = next;
while (curr && curr->isFloatingOrPositioned())
curr = curr->nextSibling();
- if (curr && curr->isRenderBlock() && !curr->isAnonymous() &&
- !curr->isCompact() && !curr->isRunIn()) {
+ if (curr && curr->isRenderBlock() && !curr->isCompact() && !curr->isRunIn()) {
curr->calcWidth(); // So that horizontal margins are correct.
// Need to compute margins for the child as though it is a block.
child->style()->setDisplay(BLOCK);
@@ -705,8 +704,7 @@ void RenderBlock::layoutBlockChildren( bool relayoutChildren )
RenderObject* curr = child->nextSibling();
while (curr && curr->isFloatingOrPositioned())
curr = curr->nextSibling();
- if (curr && (curr->isRenderBlock() && !curr->isAnonymous() && curr->childrenInline() &&
- !curr->isCompact() && !curr->isRunIn())) {
+ if (curr && (curr->isRenderBlock() && curr->childrenInline() && !curr->isCompact() && !curr->isRunIn())) {
// The block acts like an inline, so just null out its
// position.
child->setInline(true);
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list