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

Side by Side Diff: Source/core/rendering/RenderBox.cpp

Issue 280633002: Rename RenderObject::setNeedsLayout to setNeedsLayoutAndFullRepaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 4623 matching lines...) Expand 10 before | Expand all | Expand 10 after
4634 { 4634 {
4635 // FIXME: The table code should handle that automatically. If not, 4635 // FIXME: The table code should handle that automatically. If not,
4636 // we should fix it and remove the table part checks. 4636 // we should fix it and remove the table part checks.
4637 if (box->isTable()) { 4637 if (box->isTable()) {
4638 // Because we may have added some sections with already computed column structures, we need to 4638 // Because we may have added some sections with already computed column structures, we need to
4639 // sync the table structure with them now. This avoids crashes when addi ng new cells to the table. 4639 // sync the table structure with them now. This avoids crashes when addi ng new cells to the table.
4640 toRenderTable(box)->forceSectionsRecalc(); 4640 toRenderTable(box)->forceSectionsRecalc();
4641 } else if (box->isTableSection()) 4641 } else if (box->isTableSection())
4642 toRenderTableSection(box)->setNeedsCellRecalc(); 4642 toRenderTableSection(box)->setNeedsCellRecalc();
4643 4643
4644 box->setNeedsLayoutAndPrefWidthsRecalc(); 4644 box->setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint();
4645 } 4645 }
4646 4646
4647 RenderObject* RenderBox::splitAnonymousBoxesAroundChild(RenderObject* beforeChil d) 4647 RenderObject* RenderBox::splitAnonymousBoxesAroundChild(RenderObject* beforeChil d)
4648 { 4648 {
4649 bool didSplitParentAnonymousBoxes = false; 4649 bool didSplitParentAnonymousBoxes = false;
4650 4650
4651 while (beforeChild->parent() != this) { 4651 while (beforeChild->parent() != this) {
4652 RenderBox* boxToSplit = toRenderBox(beforeChild->parent()); 4652 RenderBox* boxToSplit = toRenderBox(beforeChild->parent());
4653 if (boxToSplit->slowFirstChild() != beforeChild && boxToSplit->isAnonymo us()) { 4653 if (boxToSplit->slowFirstChild() != beforeChild && boxToSplit->isAnonymo us()) {
4654 didSplitParentAnonymousBoxes = true; 4654 didSplitParentAnonymousBoxes = true;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
4687 return 0; 4687 return 0;
4688 4688
4689 if (!layoutState && !flowThreadContainingBlock()) 4689 if (!layoutState && !flowThreadContainingBlock())
4690 return 0; 4690 return 0;
4691 4691
4692 RenderBlock* containerBlock = containingBlock(); 4692 RenderBlock* containerBlock = containingBlock();
4693 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); 4693 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop();
4694 } 4694 }
4695 4695
4696 } // namespace WebCore 4696 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlockLineLayout.cpp ('k') | Source/core/rendering/RenderCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698