OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 | 1490 |
1491 // Fixed positioned elements don't contribute to layout overflow, since
they don't scroll with the content. | 1491 // Fixed positioned elements don't contribute to layout overflow, since
they don't scroll with the content. |
1492 if (positionedObject->style()->position() != FixedPosition) | 1492 if (positionedObject->style()->position() != FixedPosition) |
1493 addOverflowFromChild(positionedObject); | 1493 addOverflowFromChild(positionedObject); |
1494 } | 1494 } |
1495 } | 1495 } |
1496 | 1496 |
1497 bool RenderBlock::expandsToEncloseOverhangingFloats() const | 1497 bool RenderBlock::expandsToEncloseOverhangingFloats() const |
1498 { | 1498 { |
1499 return isInlineBlockOrInlineTable() || isFloatingOrPositioned() || hasOverfl
owClip() || (parent() && parent()->isDeprecatedFlexibleBox()) | 1499 return isInlineBlockOrInlineTable() || isFloatingOrPositioned() || hasOverfl
owClip() || (parent() && parent()->isDeprecatedFlexibleBox()) |
1500 || hasColumns() || isTableCell() || isFieldset() || isWritingModeRoot
() || isRoot(); | 1500 || hasColumns() || isTableCell() || isTableCaption() || isFieldset()
|| isWritingModeRoot() || isRoot(); |
1501 } | 1501 } |
1502 | 1502 |
1503 void RenderBlock::adjustPositionedBlock(RenderBox* child, const MarginInfo& marg
inInfo) | 1503 void RenderBlock::adjustPositionedBlock(RenderBox* child, const MarginInfo& marg
inInfo) |
1504 { | 1504 { |
1505 bool isHorizontal = isHorizontalWritingMode(); | 1505 bool isHorizontal = isHorizontalWritingMode(); |
1506 bool hasStaticBlockPosition = child->style()->hasStaticBlockPosition(isHoriz
ontal); | 1506 bool hasStaticBlockPosition = child->style()->hasStaticBlockPosition(isHoriz
ontal); |
1507 | 1507 |
1508 LayoutUnit logicalTop = logicalHeight(); | 1508 LayoutUnit logicalTop = logicalHeight(); |
1509 setStaticInlinePositionForChild(child, logicalTop, startOffsetForContent(log
icalTop)); | 1509 setStaticInlinePositionForChild(child, logicalTop, startOffsetForContent(log
icalTop)); |
1510 | 1510 |
(...skipping 5535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7046 } | 7046 } |
7047 | 7047 |
7048 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl
oatingObject* floatingObject) | 7048 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl
oatingObject* floatingObject) |
7049 { | 7049 { |
7050 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->x(
), floatingObject->y(), floatingObject->maxX(), floatingObject->maxY()); | 7050 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->x(
), floatingObject->y(), floatingObject->maxX(), floatingObject->maxY()); |
7051 } | 7051 } |
7052 | 7052 |
7053 #endif | 7053 #endif |
7054 | 7054 |
7055 } // namespace WebCore | 7055 } // namespace WebCore |
OLD | NEW |