Index: Source/WebCore/rendering/RenderBox.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBox.cpp (revision 143083) |
+++ Source/WebCore/rendering/RenderBox.cpp (working copy) |
@@ -2427,7 +2427,7 @@ |
// height since we don't set a height in RenderView when we're printing. So without this quirk, the |
// height has nothing to be a percentage of, and it ends up being 0. That is bad. |
bool paginatedContentNeedsBaseHeight = document()->printing() && h.isPercent() |
- && (isRoot() || (isBody() && document()->documentElement()->renderer()->style()->logicalHeight().isPercent())); |
+ && (isRoot() || (isBody() && document()->documentElement()->renderer()->style()->logicalHeight().isPercent())) && !isInline(); |
if (stretchesToViewport() || paginatedContentNeedsBaseHeight) { |
LayoutUnit margins = collapsedMarginBefore() + collapsedMarginAfter(); |
LayoutUnit visibleHeight = viewLogicalHeightForPercentages(); |