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

Side by Side Diff: Source/core/rendering/RenderListMarker.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/RenderLayerFilterInfo.cpp ('k') | Source/core/rendering/RenderMeter.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com) 6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 1349
1350 void RenderListMarker::imageChanged(WrappedImagePtr o, const IntRect*) 1350 void RenderListMarker::imageChanged(WrappedImagePtr o, const IntRect*)
1351 { 1351 {
1352 // A list marker can't have a background or border image, so no need to call the base class method. 1352 // A list marker can't have a background or border image, so no need to call the base class method.
1353 if (o != m_image->data()) 1353 if (o != m_image->data())
1354 return; 1354 return;
1355 1355
1356 if (width() != m_image->imageSize(this, style()->effectiveZoom()).width() || height() != m_image->imageSize(this, style()->effectiveZoom()).height() || m_im age->errorOccurred()) 1356 if (width() != m_image->imageSize(this, style()->effectiveZoom()).width() || height() != m_image->imageSize(this, style()->effectiveZoom()).height() || m_im age->errorOccurred())
1357 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(); 1357 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
1358 else 1358 else
1359 paintInvalidationForWholeRenderer(); 1359 setShouldDoFullPaintInvalidation(true);
1360 } 1360 }
1361 1361
1362 void RenderListMarker::updateMarginsAndContent() 1362 void RenderListMarker::updateMarginsAndContent()
1363 { 1363 {
1364 updateContent(); 1364 updateContent();
1365 updateMargins(); 1365 updateMargins();
1366 } 1366 }
1367 1367
1368 void RenderListMarker::updateContent() 1368 void RenderListMarker::updateContent()
1369 { 1369 {
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 1843
1844 if (clipToVisibleContent) 1844 if (clipToVisibleContent)
1845 mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect); 1845 mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect);
1846 else 1846 else
1847 rect = localToContainerQuad(FloatRect(rect), paintInvalidationContainer) .enclosingBoundingBox(); 1847 rect = localToContainerQuad(FloatRect(rect), paintInvalidationContainer) .enclosingBoundingBox();
1848 1848
1849 return rect; 1849 return rect;
1850 } 1850 }
1851 1851
1852 } // namespace blink 1852 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerFilterInfo.cpp ('k') | Source/core/rendering/RenderMeter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698