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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 1991763002: Remove LayoutBlock::deleteLineBoxTree(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 LayoutBlock* newBox = createAnonymousBlock(); 329 LayoutBlock* newBox = createAnonymousBlock();
330 LayoutBox::addChild(newBox, beforeChild); 330 LayoutBox::addChild(newBox, beforeChild);
331 newBox->addChild(newChild); 331 newBox->addChild(newChild);
332 return; 332 return;
333 } 333 }
334 } 334 }
335 335
336 LayoutBox::addChild(newChild, beforeChild); 336 LayoutBox::addChild(newChild, beforeChild);
337 } 337 }
338 338
339 void LayoutBlock::deleteLineBoxTree()
340 {
341 ASSERT(!m_lineBoxes.firstLineBox());
342 }
343
344 void LayoutBlock::removeLeftoverAnonymousBlock(LayoutBlock* child) 339 void LayoutBlock::removeLeftoverAnonymousBlock(LayoutBlock* child)
345 { 340 {
346 ASSERT(child->isAnonymousBlock()); 341 ASSERT(child->isAnonymousBlock());
347 ASSERT(!child->childrenInline()); 342 ASSERT(!child->childrenInline());
348 ASSERT(child->parent() == this); 343 ASSERT(child->parent() == this);
349 344
350 if (child->continuation()) 345 if (child->continuation())
351 return; 346 return;
352 347
353 // Promote all the leftover anonymous block's children (to become children o f this block 348 // Promote all the leftover anonymous block's children (to become children o f this block
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1921 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda ntSet->begin(); it != end; ++it) { 1916 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda ntSet->begin(); it != end; ++it) {
1922 LayoutBox* currBox = *it; 1917 LayoutBox* currBox = *it;
1923 ASSERT(!currBox->needsLayout()); 1918 ASSERT(!currBox->needsLayout());
1924 } 1919 }
1925 } 1920 }
1926 } 1921 }
1927 1922
1928 #endif 1923 #endif
1929 1924
1930 } // namespace blink 1925 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698