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

Side by Side Diff: Source/core/layout/LayoutTableCell.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 m_hasRowSpan = node() && parseRowSpanFromDOM() != 1; 94 m_hasRowSpan = node() && parseRowSpanFromDOM() != 1;
95 } 95 }
96 96
97 void LayoutTableCell::colSpanOrRowSpanChanged() 97 void LayoutTableCell::colSpanOrRowSpanChanged()
98 { 98 {
99 ASSERT(node()); 99 ASSERT(node());
100 ASSERT(isHTMLTableCellElement(*node())); 100 ASSERT(isHTMLTableCellElement(*node()));
101 101
102 updateColAndRowSpanFlags(); 102 updateColAndRowSpanFlags();
103 103
104 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(); 104 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidation Reason::AttributeChanged);
105 if (parent() && section()) 105 if (parent() && section())
106 section()->setNeedsCellRecalc(); 106 section()->setNeedsCellRecalc();
107 } 107 }
108 108
109 Length LayoutTableCell::logicalWidthFromColumns(LayoutTableCol* firstColForThisC ell, Length widthFromStyle) const 109 Length LayoutTableCell::logicalWidthFromColumns(LayoutTableCol* firstColForThisC ell, Length widthFromStyle) const
110 { 110 {
111 ASSERT(firstColForThisCell && firstColForThisCell == table()->colElement(col ())); 111 ASSERT(firstColForThisCell && firstColForThisCell == table()->colElement(col ()));
112 LayoutTableCol* tableCol = firstColForThisCell; 112 LayoutTableCol* tableCol = firstColForThisCell;
113 113
114 unsigned colSpanCount = colSpan(); 114 unsigned colSpanCount = colSpan();
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 1048
1049 LayoutTableCell* LayoutTableCell::createAnonymousWithParentRenderer(const Layout Object* parent) 1049 LayoutTableCell* LayoutTableCell::createAnonymousWithParentRenderer(const Layout Object* parent)
1050 { 1050 {
1051 LayoutTableCell* newCell = LayoutTableCell::createAnonymous(&parent->documen t()); 1051 LayoutTableCell* newCell = LayoutTableCell::createAnonymous(&parent->documen t());
1052 RefPtr<LayoutStyle> newStyle = LayoutStyle::createAnonymousStyleWithDisplay( parent->styleRef(), TABLE_CELL); 1052 RefPtr<LayoutStyle> newStyle = LayoutStyle::createAnonymousStyleWithDisplay( parent->styleRef(), TABLE_CELL);
1053 newCell->setStyle(newStyle.release()); 1053 newCell->setStyle(newStyle.release());
1054 return newCell; 1054 return newCell;
1055 } 1055 }
1056 1056
1057 } // namespace blink 1057 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698