| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // direction (so an x-offset in vertical text and a y-offset for horizontal
text). | 324 // direction (so an x-offset in vertical text and a y-offset for horizontal
text). |
| 325 LayoutUnit pageLogicalOffset() const { return m_rareData ? m_rareData->m_pag
eLogicalOffset : LayoutUnit(); } | 325 LayoutUnit pageLogicalOffset() const { return m_rareData ? m_rareData->m_pag
eLogicalOffset : LayoutUnit(); } |
| 326 void setPageLogicalOffset(LayoutUnit); | 326 void setPageLogicalOffset(LayoutUnit); |
| 327 | 327 |
| 328 RootInlineBox* lineGridBox() const { return m_rareData ? m_rareData->m_lineG
ridBox : 0; } | 328 RootInlineBox* lineGridBox() const { return m_rareData ? m_rareData->m_lineG
ridBox : 0; } |
| 329 void setLineGridBox(RootInlineBox* box) | 329 void setLineGridBox(RootInlineBox* box) |
| 330 { | 330 { |
| 331 if (!m_rareData) | 331 if (!m_rareData) |
| 332 m_rareData = adoptPtr(new RenderBlockRareData(this)); | 332 m_rareData = adoptPtr(new RenderBlockRareData(this)); |
| 333 if (m_rareData->m_lineGridBox) | 333 if (m_rareData->m_lineGridBox) |
| 334 m_rareData->m_lineGridBox->destroy(renderArena()); | 334 m_rareData->m_lineGridBox->destroy(); |
| 335 m_rareData->m_lineGridBox = box; | 335 m_rareData->m_lineGridBox = box; |
| 336 } | 336 } |
| 337 void layoutLineGridBox(); | 337 void layoutLineGridBox(); |
| 338 | 338 |
| 339 // Accessors for logical width/height and margins in the containing block's
block-flow direction. | 339 // Accessors for logical width/height and margins in the containing block's
block-flow direction. |
| 340 enum ApplyLayoutDeltaMode { ApplyLayoutDelta, DoNotApplyLayoutDelta }; | 340 enum ApplyLayoutDeltaMode { ApplyLayoutDelta, DoNotApplyLayoutDelta }; |
| 341 LayoutUnit logicalWidthForChild(const RenderBox* child) { return isHorizonta
lWritingMode() ? child->width() : child->height(); } | 341 LayoutUnit logicalWidthForChild(const RenderBox* child) { return isHorizonta
lWritingMode() ? child->width() : child->height(); } |
| 342 LayoutUnit logicalHeightForChild(const RenderBox* child) { return isHorizont
alWritingMode() ? child->height() : child->width(); } | 342 LayoutUnit logicalHeightForChild(const RenderBox* child) { return isHorizont
alWritingMode() ? child->height() : child->width(); } |
| 343 LayoutUnit logicalTopForChild(const RenderBox* child) { return isHorizontalW
ritingMode() ? child->y() : child->x(); } | 343 LayoutUnit logicalTopForChild(const RenderBox* child) { return isHorizontalW
ritingMode() ? child->y() : child->x(); } |
| 344 void setLogicalLeftForChild(RenderBox* child, LayoutUnit logicalLeft, ApplyL
ayoutDeltaMode = DoNotApplyLayoutDelta); | 344 void setLogicalLeftForChild(RenderBox* child, LayoutUnit logicalLeft, ApplyL
ayoutDeltaMode = DoNotApplyLayoutDelta); |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1348 static String string(const int value); | 1348 static String string(const int value); |
| 1349 }; | 1349 }; |
| 1350 template<> struct ValueToString<RenderBlock::FloatingObject*> { | 1350 template<> struct ValueToString<RenderBlock::FloatingObject*> { |
| 1351 static String string(const RenderBlock::FloatingObject*); | 1351 static String string(const RenderBlock::FloatingObject*); |
| 1352 }; | 1352 }; |
| 1353 #endif | 1353 #endif |
| 1354 | 1354 |
| 1355 } // namespace WebCore | 1355 } // namespace WebCore |
| 1356 | 1356 |
| 1357 #endif // RenderBlock_h | 1357 #endif // RenderBlock_h |
| OLD | NEW |