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

Side by Side Diff: Source/core/rendering/RenderInline.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/RenderImageResource.cpp ('k') | Source/core/rendering/RenderLayer.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, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 1352
1353 return style()->isHorizontalWritingMode() ? logicalOffset : logicalOffset.tr ansposedSize(); 1353 return style()->isHorizontalWritingMode() ? logicalOffset : logicalOffset.tr ansposedSize();
1354 } 1354 }
1355 1355
1356 void RenderInline::imageChanged(WrappedImagePtr, const IntRect*) 1356 void RenderInline::imageChanged(WrappedImagePtr, const IntRect*)
1357 { 1357 {
1358 if (!parent()) 1358 if (!parent())
1359 return; 1359 return;
1360 1360
1361 // FIXME: We can do better. 1361 // FIXME: We can do better.
1362 paintInvalidationForWholeRenderer(); 1362 setShouldDoFullPaintInvalidation(true);
1363 } 1363 }
1364 1364
1365 void RenderInline::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer) const 1365 void RenderInline::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer) const
1366 { 1366 {
1367 AbsoluteRectsGeneratorContext context(rects, additionalOffset); 1367 AbsoluteRectsGeneratorContext context(rects, additionalOffset);
1368 generateLineBoxRects(context); 1368 generateLineBoxRects(context);
1369 1369
1370 addChildFocusRingRects(rects, additionalOffset, paintContainer); 1370 addChildFocusRingRects(rects, additionalOffset, paintContainer);
1371 1371
1372 if (continuation()) { 1372 if (continuation()) {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 container = this; 1579 container = this;
1580 1580
1581 FloatPoint absPos = container->localToAbsolute(); 1581 FloatPoint absPos = container->localToAbsolute();
1582 region.bounds.setX(absPos.x() + region.bounds.x()); 1582 region.bounds.setX(absPos.x() + region.bounds.x());
1583 region.bounds.setY(absPos.y() + region.bounds.y()); 1583 region.bounds.setY(absPos.y() + region.bounds.y());
1584 1584
1585 regions.append(region); 1585 regions.append(region);
1586 } 1586 }
1587 1587
1588 } // namespace blink 1588 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderImageResource.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698