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

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

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. Created 5 years, 10 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
« no previous file with comments | « Source/core/layout/LayoutTableCol.h ('k') | Source/core/layout/PaintInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return child->isLayoutTableCol() && style.display() == TABLE_COLUMN; 102 return child->isLayoutTableCol() && style.display() == TABLE_COLUMN;
103 } 103 }
104 104
105 bool LayoutTableCol::canHaveChildren() const 105 bool LayoutTableCol::canHaveChildren() const
106 { 106 {
107 // Cols cannot have children. This is actually necessary to fix a bug 107 // Cols cannot have children. This is actually necessary to fix a bug
108 // with libraries.uc.edu, which makes a <p> be a table-column. 108 // with libraries.uc.edu, which makes a <p> be a table-column.
109 return isTableColumnGroup(); 109 return isTableColumnGroup();
110 } 110 }
111 111
112 LayoutRect LayoutTableCol::clippedOverflowRectForPaintInvalidation(const LayoutL ayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paint InvalidationState) const 112 LayoutRect LayoutTableCol::clippedOverflowRectForPaintInvalidation(const LayoutB oxModelObject* paintInvalidationContainer, const PaintInvalidationState* paintIn validationState) const
113 { 113 {
114 // For now, just paint invalidate the whole table. 114 // For now, just paint invalidate the whole table.
115 // FIXME: Find a better way to do this, e.g., need to paint invalidate all t he cells that we 115 // FIXME: Find a better way to do this, e.g., need to paint invalidate all t he cells that we
116 // might have propagated a background color or borders into. 116 // might have propagated a background color or borders into.
117 // FIXME: check for paintInvalidationContainer each time here? 117 // FIXME: check for paintInvalidationContainer each time here?
118 118
119 LayoutTable* parentTable = table(); 119 LayoutTable* parentTable = table();
120 if (!parentTable) 120 if (!parentTable)
121 return LayoutRect(); 121 return LayoutRect();
122 return parentTable->clippedOverflowRectForPaintInvalidation(paintInvalidatio nContainer, paintInvalidationState); 122 return parentTable->clippedOverflowRectForPaintInvalidation(paintInvalidatio nContainer, paintInvalidationState);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 return style()->borderStart(); 189 return style()->borderStart();
190 } 190 }
191 191
192 const BorderValue& LayoutTableCol::borderAdjoiningCellAfter(const LayoutTableCel l* cell) const 192 const BorderValue& LayoutTableCol::borderAdjoiningCellAfter(const LayoutTableCel l* cell) const
193 { 193 {
194 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); 194 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this);
195 return style()->borderEnd(); 195 return style()->borderEnd();
196 } 196 }
197 197
198 } 198 }
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTableCol.h ('k') | Source/core/layout/PaintInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698