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 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 | 1052 |
1053 m_layer->layer()->invalidateRect(rect); | 1053 m_layer->layer()->invalidateRect(rect); |
1054 if (firstPaintInvalidationTrackingEnabled()) | 1054 if (firstPaintInvalidationTrackingEnabled()) |
1055 m_debugInfo.appendAnnotatedInvalidateRect(rect, invalidationReason); | 1055 m_debugInfo.appendAnnotatedInvalidateRect(rect, invalidationReason); |
1056 if (isTrackingPaintInvalidations()) | 1056 if (isTrackingPaintInvalidations()) |
1057 trackPaintInvalidationRect(rect); | 1057 trackPaintInvalidationRect(rect); |
1058 for (size_t i = 0; i < m_linkHighlights.size(); ++i) | 1058 for (size_t i = 0; i < m_linkHighlights.size(); ++i) |
1059 m_linkHighlights[i]->invalidate(); | 1059 m_linkHighlights[i]->invalidate(); |
1060 } | 1060 } |
1061 | 1061 |
1062 void GraphicsLayer::invalidateDisplayItemClient(const DisplayItemClient& display
ItemClient, PaintInvalidationReason paintInvalidationReason, const IntRect* visu
alRect) | 1062 void GraphicsLayer::invalidateDisplayItemClient(const DisplayItemClient& display
ItemClient, PaintInvalidationReason) |
1063 { | 1063 { |
1064 if (!drawsContent()) | 1064 if (!drawsContent()) |
1065 return; | 1065 return; |
1066 | 1066 |
1067 paintController().invalidate(displayItemClient, paintInvalidationReason, vis
ualRect); | 1067 paintController().invalidate(displayItemClient); |
1068 if (isTrackingPaintInvalidations()) | 1068 if (isTrackingPaintInvalidations()) |
1069 trackPaintInvalidationObject(displayItemClient.debugName()); | 1069 trackPaintInvalidationObject(displayItemClient.debugName()); |
1070 } | 1070 } |
1071 | 1071 |
1072 void GraphicsLayer::setContentsRect(const IntRect& rect) | 1072 void GraphicsLayer::setContentsRect(const IntRect& rect) |
1073 { | 1073 { |
1074 if (rect == m_contentsRect) | 1074 if (rect == m_contentsRect) |
1075 return; | 1075 return; |
1076 | 1076 |
1077 m_contentsRect = rect; | 1077 m_contentsRect = rect; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 { | 1258 { |
1259 if (!layer) { | 1259 if (!layer) { |
1260 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1260 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
1261 return; | 1261 return; |
1262 } | 1262 } |
1263 | 1263 |
1264 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1264 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1265 fprintf(stderr, "%s\n", output.utf8().data()); | 1265 fprintf(stderr, "%s\n", output.utf8().data()); |
1266 } | 1266 } |
1267 #endif | 1267 #endif |
OLD | NEW |