| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 if (offset == m_offsetFromLayoutObject) | 285 if (offset == m_offsetFromLayoutObject) |
| 286 return; | 286 return; |
| 287 | 287 |
| 288 m_offsetFromLayoutObject = offset; | 288 m_offsetFromLayoutObject = offset; |
| 289 | 289 |
| 290 // If the compositing layer offset changes, we need to repaint. | 290 // If the compositing layer offset changes, we need to repaint. |
| 291 if (shouldSetNeedsDisplay == SetNeedsDisplay) | 291 if (shouldSetNeedsDisplay == SetNeedsDisplay) |
| 292 setNeedsDisplay(); | 292 setNeedsDisplay(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 IntRect GraphicsLayer::interestRect() |
| 296 { |
| 297 return m_previousInterestRect; |
| 298 } |
| 299 |
| 295 void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect) | 300 void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect) |
| 296 { | 301 { |
| 297 ASSERT(interestRect || RuntimeEnabledFeatures::slimmingPaintSynchronizedPain
tingEnabled()); | 302 ASSERT(interestRect || RuntimeEnabledFeatures::slimmingPaintSynchronizedPain
tingEnabled()); |
| 298 ASSERT(drawsContent()); | 303 ASSERT(drawsContent()); |
| 299 | 304 |
| 300 if (!m_client) | 305 if (!m_client) |
| 301 return; | 306 return; |
| 302 if (firstPaintInvalidationTrackingEnabled()) | 307 if (firstPaintInvalidationTrackingEnabled()) |
| 303 m_debugInfo.clearAnnotatedInvalidateRects(); | 308 m_debugInfo.clearAnnotatedInvalidateRects(); |
| 304 incrementPaintCount(); | 309 incrementPaintCount(); |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 { | 1210 { |
| 1206 if (!layer) { | 1211 if (!layer) { |
| 1207 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1212 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1208 return; | 1213 return; |
| 1209 } | 1214 } |
| 1210 | 1215 |
| 1211 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1216 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1212 fprintf(stderr, "%s\n", output.utf8().data()); | 1217 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1213 } | 1218 } |
| 1214 #endif | 1219 #endif |
| OLD | NEW |