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 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1173 else | 1173 else |
1174 m_layer->layer()->setScrollClient(this); | 1174 m_layer->layer()->setScrollClient(this); |
1175 } | 1175 } |
1176 | 1176 |
1177 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip) | 1177 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip) |
1178 { | 1178 { |
1179 paintGraphicsLayerContents(context, clip); | 1179 paintGraphicsLayerContents(context, clip); |
1180 } | 1180 } |
1181 | 1181 |
1182 | 1182 |
1183 void GraphicsLayer::notifyAnimationStarted(double wallClockTime, double monotoni
cTime, WebAnimation::TargetProperty) | 1183 void GraphicsLayer::notifyAnimationStarted(double monotonicTime, WebAnimation::T
argetProperty) |
1184 { | 1184 { |
1185 if (m_client) | 1185 if (m_client) |
1186 m_client->notifyAnimationStarted(this, wallClockTime, monotonicTime); | 1186 m_client->notifyAnimationStarted(this, monotonicTime); |
1187 } | 1187 } |
1188 | 1188 |
1189 void GraphicsLayer::notifyAnimationFinished(double, double, WebAnimation::Target
Property) | 1189 void GraphicsLayer::notifyAnimationFinished(double, WebAnimation::TargetProperty
) |
1190 { | 1190 { |
1191 // Do nothing. | 1191 // Do nothing. |
1192 } | 1192 } |
1193 | 1193 |
1194 void GraphicsLayer::didScroll() | 1194 void GraphicsLayer::didScroll() |
1195 { | 1195 { |
1196 if (m_scrollableArea) | 1196 if (m_scrollableArea) |
1197 m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minim
umScrollPosition() + toIntSize(m_layer->layer()->scrollPosition())); | 1197 m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minim
umScrollPosition() + toIntSize(m_layer->layer()->scrollPosition())); |
1198 } | 1198 } |
1199 | 1199 |
1200 } // namespace WebCore | 1200 } // namespace WebCore |
1201 | 1201 |
1202 #ifndef NDEBUG | 1202 #ifndef NDEBUG |
1203 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) | 1203 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) |
1204 { | 1204 { |
1205 if (!layer) | 1205 if (!layer) |
1206 return; | 1206 return; |
1207 | 1207 |
1208 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); | 1208 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); |
1209 fprintf(stderr, "%s\n", output.utf8().data()); | 1209 fprintf(stderr, "%s\n", output.utf8().data()); |
1210 } | 1210 } |
1211 #endif | 1211 #endif |
OLD | NEW |