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

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

Issue 129853005: Fix checkForRepaintDuringLayout do return false when doing repaintAfterLayout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 6 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 | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderTableRow.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 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 { 219 {
220 } 220 }
221 221
222 void RenderTableCell::setCellLogicalWidth(int tableLayoutLogicalWidth, SubtreeLa youtScope& layouter) 222 void RenderTableCell::setCellLogicalWidth(int tableLayoutLogicalWidth, SubtreeLa youtScope& layouter)
223 { 223 {
224 if (tableLayoutLogicalWidth == logicalWidth()) 224 if (tableLayoutLogicalWidth == logicalWidth())
225 return; 225 return;
226 226
227 layouter.setNeedsLayout(this); 227 layouter.setNeedsLayout(this);
228 228
229 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled() 229 if (!table()->selfNeedsLayout() && checkForRepaintDuringLayout())
230 && !table()->selfNeedsLayout() && checkForRepaintDuringLayout())
231 repaint(); 230 repaint();
232 231
233 setLogicalWidth(tableLayoutLogicalWidth); 232 setLogicalWidth(tableLayoutLogicalWidth);
234 setCellWidthChanged(true); 233 setCellWidthChanged(true);
235 } 234 }
236 235
237 void RenderTableCell::layout() 236 void RenderTableCell::layout()
238 { 237 {
239 ASSERT(needsLayout()); 238 ASSERT(needsLayout());
240 239
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 1273
1275 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render Object* parent) 1274 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render Object* parent)
1276 { 1275 {
1277 RenderTableCell* newCell = RenderTableCell::createAnonymous(&parent->documen t()); 1276 RenderTableCell* newCell = RenderTableCell::createAnonymous(&parent->documen t());
1278 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_CELL); 1277 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_CELL);
1279 newCell->setStyle(newStyle.release()); 1278 newCell->setStyle(newStyle.release());
1280 return newCell; 1279 return newCell;
1281 } 1280 }
1282 1281
1283 } // namespace WebCore 1282 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderTableRow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698