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

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

Issue 647903002: Remove RenderObject::checkForPaintInvalidation() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ight reserved. 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ight reserved.
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google 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 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 1063
1064 void RenderBlockFlow::markDirtyFloatsForPaintInvalidation(Vector<FloatWithRect>& floats) 1064 void RenderBlockFlow::markDirtyFloatsForPaintInvalidation(Vector<FloatWithRect>& floats)
1065 { 1065 {
1066 size_t floatCount = floats.size(); 1066 size_t floatCount = floats.size();
1067 // Floats that did not have layout did not paint invalidations when we laid them out. They would have 1067 // Floats that did not have layout did not paint invalidations when we laid them out. They would have
1068 // painted by now if they had moved, but if they stayed at (0, 0), they stil l need to be 1068 // painted by now if they had moved, but if they stayed at (0, 0), they stil l need to be
1069 // painted. 1069 // painted.
1070 for (size_t i = 0; i < floatCount; ++i) { 1070 for (size_t i = 0; i < floatCount; ++i) {
1071 if (!floats[i].everHadLayout) { 1071 if (!floats[i].everHadLayout) {
1072 RenderBox* f = floats[i].object; 1072 RenderBox* f = floats[i].object;
1073 if (!f->x() && !f->y() && f->checkForPaintInvalidation()) { 1073 if (!f->x() && !f->y())
1074 f->setShouldDoFullPaintInvalidation(); 1074 f->setShouldDoFullPaintInvalidation();
1075 }
1076 } 1075 }
1077 } 1076 }
1078 } 1077 }
1079 1078
1080 struct InlineMinMaxIterator { 1079 struct InlineMinMaxIterator {
1081 /* InlineMinMaxIterator is a class that will iterate over all render objects tha t contribute to 1080 /* InlineMinMaxIterator is a class that will iterate over all render objects tha t contribute to
1082 inline min/max width calculations. Note the following about the way it walks : 1081 inline min/max width calculations. Note the following about the way it walks :
1083 (1) Positioned content is skipped (since it does not contribute to min/max wi dth of a block) 1082 (1) Positioned content is skipped (since it does not contribute to min/max wi dth of a block)
1084 (2) We do not drill into the children of floats or replaced elements, since y ou can't break 1083 (2) We do not drill into the children of floats or replaced elements, since y ou can't break
1085 in the middle of such an element. 1084 in the middle of such an element.
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 float logicalLeft = logicalLeftOffsetForLine(logicalHeight(), false).toFloat (); 2041 float logicalLeft = logicalLeftOffsetForLine(logicalHeight(), false).toFloat ();
2043 float availableLogicalWidth = logicalRightOffsetForLine(logicalHeight(), fal se) - logicalLeft; 2042 float availableLogicalWidth = logicalRightOffsetForLine(logicalHeight(), fal se) - logicalLeft;
2044 updateLogicalWidthForAlignment(textAlign, 0, 0, logicalLeft, totalLogicalWid th, availableLogicalWidth, 0); 2043 updateLogicalWidthForAlignment(textAlign, 0, 0, logicalLeft, totalLogicalWid th, availableLogicalWidth, 0);
2045 2044
2046 if (!style()->isLeftToRightDirection()) 2045 if (!style()->isLeftToRightDirection())
2047 return logicalWidth() - logicalLeft; 2046 return logicalWidth() - logicalLeft;
2048 return logicalLeft; 2047 return logicalLeft;
2049 } 2048 }
2050 2049
2051 } 2050 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698