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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 protected: | 347 protected: |
348 virtual void willBeDestroyed(); | 348 virtual void willBeDestroyed(); |
349 | 349 |
350 // These functions are only used internally to manipulate the render tree st
ructure via remove/insert/appendChildNode. | 350 // These functions are only used internally to manipulate the render tree st
ructure via remove/insert/appendChildNode. |
351 // Since they are typically called only to move objects around within anonym
ous blocks (which only have layers in | 351 // Since they are typically called only to move objects around within anonym
ous blocks (which only have layers in |
352 // the case of column spans), the default for fullRemoveInsert is false rath
er than true. | 352 // the case of column spans), the default for fullRemoveInsert is false rath
er than true. |
353 void moveChildTo(RenderBlock* to, RenderObject* child, bool fullRemoveInsert
= false) | 353 void moveChildTo(RenderBlock* to, RenderObject* child, bool fullRemoveInsert
= false) |
354 { | 354 { |
355 return moveChildTo(to, child, 0, fullRemoveInsert); | 355 return moveChildTo(to, child, 0, fullRemoveInsert); |
356 } | 356 } |
357 void moveChildTo(RenderBlock* to, RenderObject* child, RenderObject* beforeC
hild, bool fullRemoveInsert = false); | 357 void moveChildTo(RenderBlock* toBlock, RenderObject* child, RenderObject* be
foreChild, bool fullRemoveInsert = false); |
358 void moveAllChildrenTo(RenderBlock* to, bool fullRemoveInsert = false) | 358 void moveAllChildrenTo(RenderBlock* toBlock, bool fullRemoveInsert = false) |
359 { | 359 { |
360 return moveAllChildrenTo(to, 0, fullRemoveInsert); | 360 return moveAllChildrenTo(toBlock, 0, fullRemoveInsert); |
361 } | 361 } |
362 void moveAllChildrenTo(RenderBlock* to, RenderObject* beforeChild, bool full
RemoveInsert = false) | 362 void moveAllChildrenTo(RenderBlock* toBlock, RenderObject* beforeChild, bool
fullRemoveInsert = false) |
363 { | 363 { |
364 return moveChildrenTo(to, firstChild(), 0, beforeChild, fullRemoveInsert
); | 364 return moveChildrenTo(toBlock, firstChild(), 0, beforeChild, fullRemoveI
nsert); |
365 } | 365 } |
366 // Move all of the kids from |startChild| up to but excluding |endChild|. 0
can be passed as the endChild to denote | 366 // Move all of the kids from |startChild| up to but excluding |endChild|. 0
can be passed as the endChild to denote |
367 // that all the kids from |startChild| onwards should be added. | 367 // that all the kids from |startChild| onwards should be added. |
368 void moveChildrenTo(RenderBlock* to, RenderObject* startChild, RenderObject*
endChild, bool fullRemoveInsert = false) | 368 void moveChildrenTo(RenderBlock* toBlock, RenderObject* startChild, RenderOb
ject* endChild, bool fullRemoveInsert = false) |
369 { | 369 { |
370 return moveChildrenTo(to, startChild, endChild, 0, fullRemoveInsert); | 370 return moveChildrenTo(toBlock, startChild, endChild, 0, fullRemoveInsert
); |
371 } | 371 } |
372 void moveChildrenTo(RenderBlock* to, RenderObject* startChild, RenderObject*
endChild, RenderObject* beforeChild, bool fullRemoveInsert = false); | 372 void moveChildrenTo(RenderBlock* toBlock, RenderObject* startChild, RenderOb
ject* endChild, RenderObject* beforeChild, bool fullRemoveInsert = false); |
373 | 373 |
374 LayoutUnit maxPositiveMarginBefore() const { return m_rareData ? m_rareData-
>m_margins.positiveMarginBefore() : RenderBlockRareData::positiveMarginBeforeDef
ault(this); } | 374 LayoutUnit maxPositiveMarginBefore() const { return m_rareData ? m_rareData-
>m_margins.positiveMarginBefore() : RenderBlockRareData::positiveMarginBeforeDef
ault(this); } |
375 LayoutUnit maxNegativeMarginBefore() const { return m_rareData ? m_rareData-
>m_margins.negativeMarginBefore() : RenderBlockRareData::negativeMarginBeforeDef
ault(this); } | 375 LayoutUnit maxNegativeMarginBefore() const { return m_rareData ? m_rareData-
>m_margins.negativeMarginBefore() : RenderBlockRareData::negativeMarginBeforeDef
ault(this); } |
376 LayoutUnit maxPositiveMarginAfter() const { return m_rareData ? m_rareData->
m_margins.positiveMarginAfter() : RenderBlockRareData::positiveMarginAfterDefaul
t(this); } | 376 LayoutUnit maxPositiveMarginAfter() const { return m_rareData ? m_rareData->
m_margins.positiveMarginAfter() : RenderBlockRareData::positiveMarginAfterDefaul
t(this); } |
377 LayoutUnit maxNegativeMarginAfter() const { return m_rareData ? m_rareData->
m_margins.negativeMarginAfter() : RenderBlockRareData::negativeMarginAfterDefaul
t(this); } | 377 LayoutUnit maxNegativeMarginAfter() const { return m_rareData ? m_rareData->
m_margins.negativeMarginAfter() : RenderBlockRareData::negativeMarginAfterDefaul
t(this); } |
378 | 378 |
379 void setMaxMarginBeforeValues(LayoutUnit pos, LayoutUnit neg); | 379 void setMaxMarginBeforeValues(LayoutUnit pos, LayoutUnit neg); |
380 void setMaxMarginAfterValues(LayoutUnit pos, LayoutUnit neg); | 380 void setMaxMarginAfterValues(LayoutUnit pos, LayoutUnit neg); |
381 | 381 |
382 void initMaxMarginValues() | 382 void initMaxMarginValues() |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 static String string(const int value); | 1106 static String string(const int value); |
1107 }; | 1107 }; |
1108 template<> struct ValueToString<RenderBlock::FloatingObject*> { | 1108 template<> struct ValueToString<RenderBlock::FloatingObject*> { |
1109 static String string(const RenderBlock::FloatingObject*); | 1109 static String string(const RenderBlock::FloatingObject*); |
1110 }; | 1110 }; |
1111 #endif | 1111 #endif |
1112 | 1112 |
1113 } // namespace WebCore | 1113 } // namespace WebCore |
1114 | 1114 |
1115 #endif // RenderBlock_h | 1115 #endif // RenderBlock_h |
OLD | NEW |