| OLD | NEW |
| 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 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 if (view()->document().printing()) | 1167 if (view()->document().printing()) |
| 1168 return; // Don't invalidate paints if we're printing. | 1168 return; // Don't invalidate paints if we're printing. |
| 1169 | 1169 |
| 1170 LayoutRect dirtyRect(r); | 1170 LayoutRect dirtyRect(r); |
| 1171 | 1171 |
| 1172 const RenderLayerModelObject* paintInvalidationContainer = containerForPaint
Invalidation(); | 1172 const RenderLayerModelObject* paintInvalidationContainer = containerForPaint
Invalidation(); |
| 1173 RenderLayer::mapRectToPaintInvalidationBacking(this, paintInvalidationContai
ner, dirtyRect); | 1173 RenderLayer::mapRectToPaintInvalidationBacking(this, paintInvalidationContai
ner, dirtyRect); |
| 1174 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, PaintIn
validationRectangle); | 1174 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, PaintIn
validationRectangle); |
| 1175 } | 1175 } |
| 1176 | 1176 |
| 1177 IntRect RenderObject::pixelSnappedAbsoluteClippedOverflowRect() const | |
| 1178 { | |
| 1179 return pixelSnappedIntRect(absoluteClippedOverflowRect()); | |
| 1180 } | |
| 1181 | |
| 1182 void RenderObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInv
alidationState) | 1177 void RenderObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInv
alidationState) |
| 1183 { | 1178 { |
| 1184 ASSERT(!needsLayout()); | 1179 ASSERT(!needsLayout()); |
| 1185 | 1180 |
| 1186 // If we didn't need paint invalidation then our children don't need as well
. | 1181 // If we didn't need paint invalidation then our children don't need as well
. |
| 1187 // Skip walking down the tree as everything should be fine below us. | 1182 // Skip walking down the tree as everything should be fine below us. |
| 1188 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 1183 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
| 1189 return; | 1184 return; |
| 1190 | 1185 |
| 1191 invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationState.paint
InvalidationContainer()); | 1186 invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationState.paint
InvalidationContainer()); |
| (...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3150 { | 3145 { |
| 3151 if (object1) { | 3146 if (object1) { |
| 3152 const blink::RenderObject* root = object1; | 3147 const blink::RenderObject* root = object1; |
| 3153 while (root->parent()) | 3148 while (root->parent()) |
| 3154 root = root->parent(); | 3149 root = root->parent(); |
| 3155 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3150 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3156 } | 3151 } |
| 3157 } | 3152 } |
| 3158 | 3153 |
| 3159 #endif | 3154 #endif |
| OLD | NEW |