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

Side by Side Diff: WebCore/rendering/RenderTableRow.cpp

Issue 6200003: Merge 74987 - Merge 74954 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « WebCore/rendering/RenderTable.cpp ('k') | WebCore/rendering/RenderTableSection.cpp » ('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, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 { 66 {
67 // Make sure we don't append things after :after-generated content if we hav e it. 67 // Make sure we don't append things after :after-generated content if we hav e it.
68 if (!beforeChild && isAfterContent(lastChild())) 68 if (!beforeChild && isAfterContent(lastChild()))
69 beforeChild = lastChild(); 69 beforeChild = lastChild();
70 70
71 if (!child->isTableCell()) { 71 if (!child->isTableCell()) {
72 RenderObject* last = beforeChild; 72 RenderObject* last = beforeChild;
73 if (!last) 73 if (!last)
74 last = lastChild(); 74 last = lastChild();
75 if (last && last->isAnonymous() && last->isTableCell()) { 75 if (last && last->isAnonymous() && last->isTableCell()) {
76 last->addChild(child, child->isBeforeContent() ? last->firstChild() : 0); 76 if (beforeChild == last)
77 beforeChild = last->firstChild();
78 last->addChild(child, beforeChild);
77 return; 79 return;
78 } 80 }
79 81
80 // If beforeChild is inside an anonymous cell, insert into the cell. 82 // If beforeChild is inside an anonymous cell, insert into the cell.
81 if (last && !last->isTableCell() && last->parent() && last->parent()->is Anonymous()) { 83 if (last && !last->isTableCell() && last->parent() && last->parent()->is Anonymous()) {
82 last->parent()->addChild(child, beforeChild); 84 last->parent()->addChild(child, beforeChild);
83 return; 85 return;
84 } 86 }
85 87
86 RenderTableCell* cell = new (renderArena()) RenderTableCell(document() / * anonymous object */); 88 RenderTableCell* cell = new (renderArena()) RenderTableCell(document() / * anonymous object */);
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 207 }
206 } 208 }
207 209
208 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) 210 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*)
209 { 211 {
210 // FIXME: Examine cells and repaint only the rect the image paints in. 212 // FIXME: Examine cells and repaint only the rect the image paints in.
211 repaint(); 213 repaint();
212 } 214 }
213 215
214 } // namespace WebCore 216 } // namespace WebCore
OLDNEW
« no previous file with comments | « WebCore/rendering/RenderTable.cpp ('k') | WebCore/rendering/RenderTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698