OLD | NEW |
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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 // Floats that did not have layout did not paint invalidations when we laid
them out. They would have | 1219 // Floats that did not have layout did not paint invalidations when we laid
them out. They would have |
1220 // painted by now if they had moved, but if they stayed at (0, 0), they stil
l need to be | 1220 // painted by now if they had moved, but if they stayed at (0, 0), they stil
l need to be |
1221 // painted. | 1221 // painted. |
1222 for (size_t i = 0; i < floatCount; ++i) { | 1222 for (size_t i = 0; i < floatCount; ++i) { |
1223 if (!floats[i].everHadLayout) { | 1223 if (!floats[i].everHadLayout) { |
1224 RenderBox* f = floats[i].object; | 1224 RenderBox* f = floats[i].object; |
1225 if (!f->x() && !f->y() && f->checkForRepaint()) { | 1225 if (!f->x() && !f->y() && f->checkForRepaint()) { |
1226 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) | 1226 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) |
1227 f->setShouldDoFullPaintInvalidationAfterLayout(true); | 1227 f->setShouldDoFullPaintInvalidationAfterLayout(true); |
1228 else | 1228 else |
1229 f->repaint(); | 1229 f->paintInvalidationForWholeRenderer(); |
1230 } | 1230 } |
1231 } | 1231 } |
1232 } | 1232 } |
1233 } | 1233 } |
1234 | 1234 |
1235 struct InlineMinMaxIterator { | 1235 struct InlineMinMaxIterator { |
1236 /* InlineMinMaxIterator is a class that will iterate over all render objects tha
t contribute to | 1236 /* InlineMinMaxIterator is a class that will iterate over all render objects tha
t contribute to |
1237 inline min/max width calculations. Note the following about the way it walks
: | 1237 inline min/max width calculations. Note the following about the way it walks
: |
1238 (1) Positioned content is skipped (since it does not contribute to min/max wi
dth of a block) | 1238 (1) Positioned content is skipped (since it does not contribute to min/max wi
dth of a block) |
1239 (2) We do not drill into the children of floats or replaced elements, since y
ou can't break | 1239 (2) We do not drill into the children of floats or replaced elements, since y
ou can't break |
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2190 float logicalLeft = logicalLeftOffsetForLine(logicalHeight(), false).toFloat
(); | 2190 float logicalLeft = logicalLeftOffsetForLine(logicalHeight(), false).toFloat
(); |
2191 float availableLogicalWidth = logicalRightOffsetForLine(logicalHeight(), fal
se) - logicalLeft; | 2191 float availableLogicalWidth = logicalRightOffsetForLine(logicalHeight(), fal
se) - logicalLeft; |
2192 updateLogicalWidthForAlignment(textAlign, 0, 0, logicalLeft, totalLogicalWid
th, availableLogicalWidth, 0); | 2192 updateLogicalWidthForAlignment(textAlign, 0, 0, logicalLeft, totalLogicalWid
th, availableLogicalWidth, 0); |
2193 | 2193 |
2194 if (!style()->isLeftToRightDirection()) | 2194 if (!style()->isLeftToRightDirection()) |
2195 return logicalWidth() - logicalLeft; | 2195 return logicalWidth() - logicalLeft; |
2196 return logicalLeft; | 2196 return logicalLeft; |
2197 } | 2197 } |
2198 | 2198 |
2199 } | 2199 } |
OLD | NEW |