Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: Source/WebCore/rendering/RenderBlock.h

Issue 9568025: Merge 107613 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 protected: 336 protected:
337 virtual void willBeDestroyed(); 337 virtual void willBeDestroyed();
338 338
339 // These functions are only used internally to manipulate the render tree st ructure via remove/insert/appendChildNode. 339 // These functions are only used internally to manipulate the render tree st ructure via remove/insert/appendChildNode.
340 // Since they are typically called only to move objects around within anonym ous blocks (which only have layers in 340 // Since they are typically called only to move objects around within anonym ous blocks (which only have layers in
341 // the case of column spans), the default for fullRemoveInsert is false rath er than true. 341 // the case of column spans), the default for fullRemoveInsert is false rath er than true.
342 void moveChildTo(RenderBlock* to, RenderObject* child, bool fullRemoveInsert = false) 342 void moveChildTo(RenderBlock* to, RenderObject* child, bool fullRemoveInsert = false)
343 { 343 {
344 return moveChildTo(to, child, 0, fullRemoveInsert); 344 return moveChildTo(to, child, 0, fullRemoveInsert);
345 } 345 }
346 void moveChildTo(RenderBlock* to, RenderObject* child, RenderObject* beforeC hild, bool fullRemoveInsert = false); 346 void moveChildTo(RenderBlock* toBlock, RenderObject* child, RenderObject* be foreChild, bool fullRemoveInsert = false);
347 void moveAllChildrenTo(RenderBlock* to, bool fullRemoveInsert = false) 347 void moveAllChildrenTo(RenderBlock* toBlock, bool fullRemoveInsert = false)
348 { 348 {
349 return moveAllChildrenTo(to, 0, fullRemoveInsert); 349 return moveAllChildrenTo(toBlock, 0, fullRemoveInsert);
350 } 350 }
351 void moveAllChildrenTo(RenderBlock* to, RenderObject* beforeChild, bool full RemoveInsert = false) 351 void moveAllChildrenTo(RenderBlock* toBlock, RenderObject* beforeChild, bool fullRemoveInsert = false)
352 { 352 {
353 return moveChildrenTo(to, firstChild(), 0, beforeChild, fullRemoveInsert ); 353 return moveChildrenTo(toBlock, firstChild(), 0, beforeChild, fullRemoveI nsert);
354 } 354 }
355 // Move all of the kids from |startChild| up to but excluding |endChild|. 0 can be passed as the endChild to denote 355 // Move all of the kids from |startChild| up to but excluding |endChild|. 0 can be passed as the endChild to denote
356 // that all the kids from |startChild| onwards should be added. 356 // that all the kids from |startChild| onwards should be added.
357 void moveChildrenTo(RenderBlock* to, RenderObject* startChild, RenderObject* endChild, bool fullRemoveInsert = false) 357 void moveChildrenTo(RenderBlock* toBlock, RenderObject* startChild, RenderOb ject* endChild, bool fullRemoveInsert = false)
358 { 358 {
359 return moveChildrenTo(to, startChild, endChild, 0, fullRemoveInsert); 359 return moveChildrenTo(toBlock, startChild, endChild, 0, fullRemoveInsert );
360 } 360 }
361 void moveChildrenTo(RenderBlock* to, RenderObject* startChild, RenderObject* endChild, RenderObject* beforeChild, bool fullRemoveInsert = false); 361 void moveChildrenTo(RenderBlock* toBlock, RenderObject* startChild, RenderOb ject* endChild, RenderObject* beforeChild, bool fullRemoveInsert = false);
362 362
363 LayoutUnit maxPositiveMarginBefore() const { return m_rareData ? m_rareData- >m_margins.positiveMarginBefore() : RenderBlockRareData::positiveMarginBeforeDef ault(this); } 363 LayoutUnit maxPositiveMarginBefore() const { return m_rareData ? m_rareData- >m_margins.positiveMarginBefore() : RenderBlockRareData::positiveMarginBeforeDef ault(this); }
364 LayoutUnit maxNegativeMarginBefore() const { return m_rareData ? m_rareData- >m_margins.negativeMarginBefore() : RenderBlockRareData::negativeMarginBeforeDef ault(this); } 364 LayoutUnit maxNegativeMarginBefore() const { return m_rareData ? m_rareData- >m_margins.negativeMarginBefore() : RenderBlockRareData::negativeMarginBeforeDef ault(this); }
365 LayoutUnit maxPositiveMarginAfter() const { return m_rareData ? m_rareData-> m_margins.positiveMarginAfter() : RenderBlockRareData::positiveMarginAfterDefaul t(this); } 365 LayoutUnit maxPositiveMarginAfter() const { return m_rareData ? m_rareData-> m_margins.positiveMarginAfter() : RenderBlockRareData::positiveMarginAfterDefaul t(this); }
366 LayoutUnit maxNegativeMarginAfter() const { return m_rareData ? m_rareData-> m_margins.negativeMarginAfter() : RenderBlockRareData::negativeMarginAfterDefaul t(this); } 366 LayoutUnit maxNegativeMarginAfter() const { return m_rareData ? m_rareData-> m_margins.negativeMarginAfter() : RenderBlockRareData::negativeMarginAfterDefaul t(this); }
367 367
368 void setMaxMarginBeforeValues(LayoutUnit pos, LayoutUnit neg); 368 void setMaxMarginBeforeValues(LayoutUnit pos, LayoutUnit neg);
369 void setMaxMarginAfterValues(LayoutUnit pos, LayoutUnit neg); 369 void setMaxMarginAfterValues(LayoutUnit pos, LayoutUnit neg);
370 370
371 void initMaxMarginValues() 371 void initMaxMarginValues()
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 static String string(const int value); 1081 static String string(const int value);
1082 }; 1082 };
1083 template<> struct ValueToString<RenderBlock::FloatingObject*> { 1083 template<> struct ValueToString<RenderBlock::FloatingObject*> {
1084 static String string(const RenderBlock::FloatingObject*); 1084 static String string(const RenderBlock::FloatingObject*);
1085 }; 1085 };
1086 #endif 1086 #endif
1087 1087
1088 } // namespace WebCore 1088 } // namespace WebCore
1089 1089
1090 #endif // RenderBlock_h 1090 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/multicol/span/clone-before-after-content-crash-expected.txt ('k') | Source/WebCore/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698