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

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

Issue 10261009: Merge 113581 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 7 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 #ifndef NDEBUG 379 #ifndef NDEBUG
380 void showLineTreeAndMark(const InlineBox* = 0, const char* = 0, const Inline Box* = 0, const char* = 0, const RenderObject* = 0) const; 380 void showLineTreeAndMark(const InlineBox* = 0, const char* = 0, const Inline Box* = 0, const char* = 0, const RenderObject* = 0) const;
381 #endif 381 #endif
382 382
383 protected: 383 protected:
384 virtual void willBeDestroyed(); 384 virtual void willBeDestroyed();
385 385
386 void updateScrollInfoAfterLayout(); 386 void updateScrollInfoAfterLayout();
387 387
388 // These functions are only used internally to manipulate the render tree st ructure via remove/insert/appendChildNode.
389 // Since they are typically called only to move objects around within anonym ous blocks (which only have layers in
390 // the case of column spans), the default for fullRemoveInsert is false rath er than true.
391 void moveChildTo(RenderBlock* to, RenderObject* child, bool fullRemoveInsert = false)
392 {
393 return moveChildTo(to, child, 0, fullRemoveInsert);
394 }
395 void moveChildTo(RenderBlock* toBlock, RenderObject* child, RenderObject* be foreChild, bool fullRemoveInsert = false);
396 void moveAllChildrenTo(RenderBlock* toBlock, bool fullRemoveInsert = false)
397 {
398 return moveAllChildrenTo(toBlock, 0, fullRemoveInsert);
399 }
400 void moveAllChildrenTo(RenderBlock* toBlock, RenderObject* beforeChild, bool fullRemoveInsert = false)
401 {
402 return moveChildrenTo(toBlock, firstChild(), 0, beforeChild, fullRemoveI nsert);
403 }
404 // Move all of the kids from |startChild| up to but excluding |endChild|. 0 can be passed as the endChild to denote
405 // that all the kids from |startChild| onwards should be added.
406 void moveChildrenTo(RenderBlock* toBlock, RenderObject* startChild, RenderOb ject* endChild, bool fullRemoveInsert = false)
407 {
408 return moveChildrenTo(toBlock, startChild, endChild, 0, fullRemoveInsert );
409 }
410 void moveChildrenTo(RenderBlock* toBlock, RenderObject* startChild, RenderOb ject* endChild, RenderObject* beforeChild, bool fullRemoveInsert = false);
411
412 LayoutUnit maxPositiveMarginBefore() const { return m_rareData ? m_rareData- >m_margins.positiveMarginBefore() : RenderBlockRareData::positiveMarginBeforeDef ault(this); } 388 LayoutUnit maxPositiveMarginBefore() const { return m_rareData ? m_rareData- >m_margins.positiveMarginBefore() : RenderBlockRareData::positiveMarginBeforeDef ault(this); }
413 LayoutUnit maxNegativeMarginBefore() const { return m_rareData ? m_rareData- >m_margins.negativeMarginBefore() : RenderBlockRareData::negativeMarginBeforeDef ault(this); } 389 LayoutUnit maxNegativeMarginBefore() const { return m_rareData ? m_rareData- >m_margins.negativeMarginBefore() : RenderBlockRareData::negativeMarginBeforeDef ault(this); }
414 LayoutUnit maxPositiveMarginAfter() const { return m_rareData ? m_rareData-> m_margins.positiveMarginAfter() : RenderBlockRareData::positiveMarginAfterDefaul t(this); } 390 LayoutUnit maxPositiveMarginAfter() const { return m_rareData ? m_rareData-> m_margins.positiveMarginAfter() : RenderBlockRareData::positiveMarginAfterDefaul t(this); }
415 LayoutUnit maxNegativeMarginAfter() const { return m_rareData ? m_rareData-> m_margins.negativeMarginAfter() : RenderBlockRareData::negativeMarginAfterDefaul t(this); } 391 LayoutUnit maxNegativeMarginAfter() const { return m_rareData ? m_rareData-> m_margins.negativeMarginAfter() : RenderBlockRareData::negativeMarginAfterDefaul t(this); }
416 392
417 void setMaxMarginBeforeValues(LayoutUnit pos, LayoutUnit neg); 393 void setMaxMarginBeforeValues(LayoutUnit pos, LayoutUnit neg);
418 void setMaxMarginAfterValues(LayoutUnit pos, LayoutUnit neg); 394 void setMaxMarginAfterValues(LayoutUnit pos, LayoutUnit neg);
419 395
420 void initMaxMarginValues() 396 void initMaxMarginValues()
421 { 397 {
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 818
843 // Adjust from painting offsets to the local coords of this renderer 819 // Adjust from painting offsets to the local coords of this renderer
844 void offsetForContents(LayoutPoint&) const; 820 void offsetForContents(LayoutPoint&) const;
845 821
846 virtual void calcColumnWidth(); 822 virtual void calcColumnWidth();
847 bool layoutColumns(bool hasSpecifiedPageLogicalHeight, LayoutUnit pageLogica lHeight, LayoutStateMaintainer&); 823 bool layoutColumns(bool hasSpecifiedPageLogicalHeight, LayoutUnit pageLogica lHeight, LayoutStateMaintainer&);
848 void makeChildrenAnonymousColumnBlocks(RenderObject* beforeChild, RenderBloc k* newBlockBox, RenderObject* newChild); 824 void makeChildrenAnonymousColumnBlocks(RenderObject* beforeChild, RenderBloc k* newBlockBox, RenderObject* newChild);
849 825
850 bool expandsToEncloseOverhangingFloats() const; 826 bool expandsToEncloseOverhangingFloats() const;
851 827
852 RenderObject* splitAnonymousBlocksAroundChild(RenderObject* beforeChild);
853 RenderObject* splitTablePartsAroundChild(RenderObject* beforeChild);
854 void splitBlocks(RenderBlock* fromBlock, RenderBlock* toBlock, RenderBlock* middleBlock, 828 void splitBlocks(RenderBlock* fromBlock, RenderBlock* toBlock, RenderBlock* middleBlock,
855 RenderObject* beforeChild, RenderBoxModelObject* oldCont); 829 RenderObject* beforeChild, RenderBoxModelObject* oldCont);
856 void splitFlow(RenderObject* beforeChild, RenderBlock* newBlockBox, 830 void splitFlow(RenderObject* beforeChild, RenderBlock* newBlockBox,
857 RenderObject* newChild, RenderBoxModelObject* oldCont); 831 RenderObject* newChild, RenderBoxModelObject* oldCont);
858 RenderBlock* clone() const; 832 RenderBlock* clone() const;
859 RenderBlock* continuationBefore(RenderObject* beforeChild); 833 RenderBlock* continuationBefore(RenderObject* beforeChild);
860 RenderBlock* containingColumnsBlock(bool allowAnonymousColumnBlock = true); 834 RenderBlock* containingColumnsBlock(bool allowAnonymousColumnBlock = true);
861 RenderBlock* columnsBlockForSpanningElement(RenderObject* newChild); 835 RenderBlock* columnsBlockForSpanningElement(RenderObject* newChild);
862 836
863 class MarginInfo { 837 class MarginInfo {
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 static String string(const int value); 1139 static String string(const int value);
1166 }; 1140 };
1167 template<> struct ValueToString<RenderBlock::FloatingObject*> { 1141 template<> struct ValueToString<RenderBlock::FloatingObject*> {
1168 static String string(const RenderBlock::FloatingObject*); 1142 static String string(const RenderBlock::FloatingObject*);
1169 }; 1143 };
1170 #endif 1144 #endif
1171 1145
1172 } // namespace WebCore 1146 } // namespace WebCore
1173 1147
1174 #endif // RenderBlock_h 1148 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/table/table-split2-expected.txt ('k') | Source/WebCore/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698