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

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

Issue 478433002: Avoid RenderObject::paintInvalidationForWholeRenderer() if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TestExpectations Created 6 years, 4 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/rendering/RenderTableCol.cpp ('k') | Source/core/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, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == P aintPhaseChildBlockBackground) 238 if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == P aintPhaseChildBlockBackground)
239 cell->paintBackgroundsBehindCell(paintInfo, paintOffset, this); 239 cell->paintBackgroundsBehindCell(paintInfo, paintOffset, this);
240 if (!cell->hasSelfPaintingLayer()) 240 if (!cell->hasSelfPaintingLayer())
241 cell->paint(paintInfo, paintOffset); 241 cell->paint(paintInfo, paintOffset);
242 } 242 }
243 } 243 }
244 244
245 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) 245 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*)
246 { 246 {
247 // FIXME: Examine cells and issue paint invalidations of only the rect the i mage paints in. 247 // FIXME: Examine cells and issue paint invalidations of only the rect the i mage paints in.
248 paintInvalidationForWholeRenderer(); 248 setShouldDoFullPaintInvalidation(true);
249 } 249 }
250 250
251 RenderTableRow* RenderTableRow::createAnonymous(Document* document) 251 RenderTableRow* RenderTableRow::createAnonymous(Document* document)
252 { 252 {
253 RenderTableRow* renderer = new RenderTableRow(0); 253 RenderTableRow* renderer = new RenderTableRow(0);
254 renderer->setDocumentForAnonymous(document); 254 renderer->setDocumentForAnonymous(document);
255 return renderer; 255 return renderer;
256 } 256 }
257 257
258 RenderTableRow* RenderTableRow::createAnonymousWithParentRenderer(const RenderOb ject* parent) 258 RenderTableRow* RenderTableRow::createAnonymousWithParentRenderer(const RenderOb ject* parent)
259 { 259 {
260 RenderTableRow* newRow = RenderTableRow::createAnonymous(&parent->document() ); 260 RenderTableRow* newRow = RenderTableRow::createAnonymous(&parent->document() );
261 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_ROW); 261 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_ROW);
262 newRow->setStyle(newStyle.release()); 262 newRow->setStyle(newStyle.release());
263 return newRow; 263 return newRow;
264 } 264 }
265 265
266 } // namespace blink 266 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableCol.cpp ('k') | Source/core/rendering/RenderTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698