| 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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 m_layer->layer()->setScrollClient(0); | 1128 m_layer->layer()->setScrollClient(0); |
| 1129 else | 1129 else |
| 1130 m_layer->layer()->setScrollClient(this); | 1130 m_layer->layer()->setScrollClient(this); |
| 1131 } | 1131 } |
| 1132 | 1132 |
| 1133 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip) | 1133 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip) |
| 1134 { | 1134 { |
| 1135 paintGraphicsLayerContents(context, clip); | 1135 paintGraphicsLayerContents(context, clip); |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 void GraphicsLayer::paint(GraphicsContext& context) |
| 1139 { |
| 1140 // TODO(chrishtr: fix this rect to instead derive interest rect during paint
(crbug.com/486603). |
| 1141 paintGraphicsLayerContents(context, LayoutRect::infiniteIntRect()); |
| 1142 } |
| 1138 | 1143 |
| 1139 void GraphicsLayer::notifyAnimationStarted(double monotonicTime, int group) | 1144 void GraphicsLayer::notifyAnimationStarted(double monotonicTime, int group) |
| 1140 { | 1145 { |
| 1141 if (m_client) | 1146 if (m_client) |
| 1142 m_client->notifyAnimationStarted(this, monotonicTime, group); | 1147 m_client->notifyAnimationStarted(this, monotonicTime, group); |
| 1143 } | 1148 } |
| 1144 | 1149 |
| 1145 void GraphicsLayer::notifyAnimationFinished(double, int group) | 1150 void GraphicsLayer::notifyAnimationFinished(double, int group) |
| 1146 { | 1151 { |
| 1147 if (m_scrollableArea) | 1152 if (m_scrollableArea) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1175 { | 1180 { |
| 1176 if (!layer) { | 1181 if (!layer) { |
| 1177 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1182 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1178 return; | 1183 return; |
| 1179 } | 1184 } |
| 1180 | 1185 |
| 1181 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1186 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1182 fprintf(stderr, "%s\n", output.utf8().data()); | 1187 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1183 } | 1188 } |
| 1184 #endif | 1189 #endif |
| OLD | NEW |