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 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 else | 1195 else |
1196 m_layer->layer()->setScrollClient(this); | 1196 m_layer->layer()->setScrollClient(this); |
1197 } | 1197 } |
1198 | 1198 |
1199 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip) | 1199 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip) |
1200 { | 1200 { |
1201 paintGraphicsLayerContents(context, clip); | 1201 paintGraphicsLayerContents(context, clip); |
1202 } | 1202 } |
1203 | 1203 |
1204 | 1204 |
1205 void GraphicsLayer::notifyAnimationStarted(double wallClockTime, double monotoni
cTime, WebAnimation::TargetProperty) | 1205 void GraphicsLayer::notifyAnimationStarted(double monotonicTime, WebAnimation::T
argetProperty) |
1206 { | 1206 { |
1207 if (m_client) | 1207 if (m_client) |
1208 m_client->notifyAnimationStarted(this, wallClockTime, monotonicTime); | 1208 m_client->notifyAnimationStarted(this, monotonicTime); |
1209 } | 1209 } |
1210 | 1210 |
1211 void GraphicsLayer::notifyAnimationFinished(double, double, WebAnimation::Target
Property) | 1211 void GraphicsLayer::notifyAnimationFinished(double, WebAnimation::TargetProperty
) |
1212 { | 1212 { |
1213 // Do nothing. | 1213 // Do nothing. |
1214 } | 1214 } |
1215 | 1215 |
1216 void GraphicsLayer::didScroll() | 1216 void GraphicsLayer::didScroll() |
1217 { | 1217 { |
1218 if (m_scrollableArea) | 1218 if (m_scrollableArea) |
1219 m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minim
umScrollPosition() + toIntSize(m_layer->layer()->scrollPosition())); | 1219 m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minim
umScrollPosition() + toIntSize(m_layer->layer()->scrollPosition())); |
1220 } | 1220 } |
1221 | 1221 |
1222 } // namespace WebCore | 1222 } // namespace WebCore |
1223 | 1223 |
1224 #ifndef NDEBUG | 1224 #ifndef NDEBUG |
1225 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) | 1225 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) |
1226 { | 1226 { |
1227 if (!layer) | 1227 if (!layer) |
1228 return; | 1228 return; |
1229 | 1229 |
1230 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); | 1230 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); |
1231 fprintf(stderr, "%s\n", output.utf8().data()); | 1231 fprintf(stderr, "%s\n", output.utf8().data()); |
1232 } | 1232 } |
1233 #endif | 1233 #endif |
OLD | NEW |