| 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 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 bool didBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData->m
_didBreakAtLineToAvoidWidow; } | 220 bool didBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData->m
_didBreakAtLineToAvoidWidow; } |
| 221 | 221 |
| 222 // The page logical offset is the object's offset from the top of the page i
n the page progression | 222 // The page logical offset is the object's offset from the top of the page i
n the page progression |
| 223 // direction (so an x-offset in vertical text and a y-offset for horizontal
text). | 223 // direction (so an x-offset in vertical text and a y-offset for horizontal
text). |
| 224 LayoutUnit pageLogicalOffset() const { return m_rareData ? m_rareData->m_pag
eLogicalOffset : LayoutUnit(); } | 224 LayoutUnit pageLogicalOffset() const { return m_rareData ? m_rareData->m_pag
eLogicalOffset : LayoutUnit(); } |
| 225 void setPageLogicalOffset(LayoutUnit); | 225 void setPageLogicalOffset(LayoutUnit); |
| 226 | 226 |
| 227 // Accessors for logical width/height and margins in the containing block's
block-flow direction. | 227 // Accessors for logical width/height and margins in the containing block's
block-flow direction. |
| 228 LayoutUnit logicalWidthForChild(const RenderBox* child) const { return isHor
izontalWritingMode() ? child->width() : child->height(); } | 228 LayoutUnit logicalWidthForChild(const RenderBox* child) const { return isHor
izontalWritingMode() ? child->width() : child->height(); } |
| 229 LayoutUnit logicalHeightForChild(const RenderBox* child) const { return isHo
rizontalWritingMode() ? child->height() : child->width(); } | 229 LayoutUnit logicalHeightForChild(const RenderBox* child) const { return isHo
rizontalWritingMode() ? child->height() : child->width(); } |
| 230 LayoutSize logicalSizeForChild(const RenderBox* child) const { return isHori
zontalWritingMode() ? child->size() : child->size().transposedSize(); } |
| 230 LayoutUnit logicalTopForChild(const RenderBox* child) const { return isHoriz
ontalWritingMode() ? child->y() : child->x(); } | 231 LayoutUnit logicalTopForChild(const RenderBox* child) const { return isHoriz
ontalWritingMode() ? child->y() : child->x(); } |
| 231 LayoutUnit marginBeforeForChild(const RenderBoxModelObject* child) const { r
eturn child->marginBefore(style()); } | 232 LayoutUnit marginBeforeForChild(const RenderBoxModelObject* child) const { r
eturn child->marginBefore(style()); } |
| 232 LayoutUnit marginAfterForChild(const RenderBoxModelObject* child) const { re
turn child->marginAfter(style()); } | 233 LayoutUnit marginAfterForChild(const RenderBoxModelObject* child) const { re
turn child->marginAfter(style()); } |
| 233 LayoutUnit marginStartForChild(const RenderBoxModelObject* child) const { re
turn child->marginStart(style()); } | 234 LayoutUnit marginStartForChild(const RenderBoxModelObject* child) const { re
turn child->marginStart(style()); } |
| 234 LayoutUnit marginEndForChild(const RenderBoxModelObject* child) const { retu
rn child->marginEnd(style()); } | 235 LayoutUnit marginEndForChild(const RenderBoxModelObject* child) const { retu
rn child->marginEnd(style()); } |
| 235 void setMarginStartForChild(RenderBox* child, LayoutUnit value) const { chil
d->setMarginStart(value, style()); } | 236 void setMarginStartForChild(RenderBox* child, LayoutUnit value) const { chil
d->setMarginStart(value, style()); } |
| 236 void setMarginEndForChild(RenderBox* child, LayoutUnit value) const { child-
>setMarginEnd(value, style()); } | 237 void setMarginEndForChild(RenderBox* child, LayoutUnit value) const { child-
>setMarginEnd(value, style()); } |
| 237 void setMarginBeforeForChild(RenderBox* child, LayoutUnit value) const { chi
ld->setMarginBefore(value, style()); } | 238 void setMarginBeforeForChild(RenderBox* child, LayoutUnit value) const { chi
ld->setMarginBefore(value, style()); } |
| 238 void setMarginAfterForChild(RenderBox* child, LayoutUnit value) const { chil
d->setMarginAfter(value, style()); } | 239 void setMarginAfterForChild(RenderBox* child, LayoutUnit value) const { chil
d->setMarginAfter(value, style()); } |
| 239 LayoutUnit collapsedMarginBeforeForChild(const RenderBox* child) const; | 240 LayoutUnit collapsedMarginBeforeForChild(const RenderBox* child) const; |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 return false; | 578 return false; |
| 578 } | 579 } |
| 579 return true; | 580 return true; |
| 580 } | 581 } |
| 581 | 582 |
| 582 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 583 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 583 | 584 |
| 584 } // namespace WebCore | 585 } // namespace WebCore |
| 585 | 586 |
| 586 #endif // RenderBlock_h | 587 #endif // RenderBlock_h |
| OLD | NEW |