| 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 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1004 | 1004 |
| 1005 m_layer->layer()->invalidateRect(rect); | 1005 m_layer->layer()->invalidateRect(rect); |
| 1006 if (firstPaintInvalidationTrackingEnabled()) | 1006 if (firstPaintInvalidationTrackingEnabled()) |
| 1007 m_debugInfo.appendAnnotatedInvalidateRect(rect, invalidationReason); | 1007 m_debugInfo.appendAnnotatedInvalidateRect(rect, invalidationReason); |
| 1008 if (isTrackingPaintInvalidations()) | 1008 if (isTrackingPaintInvalidations()) |
| 1009 trackPaintInvalidationRect(rect); | 1009 trackPaintInvalidationRect(rect); |
| 1010 for (size_t i = 0; i < m_linkHighlights.size(); ++i) | 1010 for (size_t i = 0; i < m_linkHighlights.size(); ++i) |
| 1011 m_linkHighlights[i]->invalidate(); | 1011 m_linkHighlights[i]->invalidate(); |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 void GraphicsLayer::invalidateDisplayItemClient(const DisplayItemClientWrapper&
displayItemClient, PaintInvalidationReason paintInvalidationReason, const IntRec
t& previousPaintInvalidationRect, const IntRect& newPaintInvalidationRect) | 1014 void GraphicsLayer::invalidateDisplayItemClient(const DisplayItemClientWrapper&
displayItemClient, PaintInvalidationReason paintInvalidationReason, const IntRec
t* visualRect) |
| 1015 { | 1015 { |
| 1016 paintController()->invalidate(displayItemClient, paintInvalidationReason, pr
eviousPaintInvalidationRect, newPaintInvalidationRect); | 1016 paintController()->invalidate(displayItemClient, paintInvalidationReason, vi
sualRect); |
| 1017 if (isTrackingPaintInvalidations()) | 1017 if (isTrackingPaintInvalidations()) |
| 1018 trackPaintInvalidationObject(displayItemClient.debugName()); | 1018 trackPaintInvalidationObject(displayItemClient.debugName()); |
| 1019 } | 1019 } |
| 1020 | 1020 |
| 1021 void GraphicsLayer::setContentsRect(const IntRect& rect) | 1021 void GraphicsLayer::setContentsRect(const IntRect& rect) |
| 1022 { | 1022 { |
| 1023 if (rect == m_contentsRect) | 1023 if (rect == m_contentsRect) |
| 1024 return; | 1024 return; |
| 1025 | 1025 |
| 1026 m_contentsRect = rect; | 1026 m_contentsRect = rect; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1182 { | 1182 { |
| 1183 if (!layer) { | 1183 if (!layer) { |
| 1184 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1184 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1185 return; | 1185 return; |
| 1186 } | 1186 } |
| 1187 | 1187 |
| 1188 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1188 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1189 fprintf(stderr, "%s\n", output.utf8().data()); | 1189 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1190 } | 1190 } |
| 1191 #endif | 1191 #endif |
| OLD | NEW |