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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // Whether this layer is being replicated by another layer. | 230 // Whether this layer is being replicated by another layer. |
231 bool isReplicated() const { return m_replicaLayer; } | 231 bool isReplicated() const { return m_replicaLayer; } |
232 // The layer that replicates this layer (if any). | 232 // The layer that replicates this layer (if any). |
233 GraphicsLayer* replicaLayer() const { return m_replicaLayer; } | 233 GraphicsLayer* replicaLayer() const { return m_replicaLayer; } |
234 | 234 |
235 const FloatPoint& replicatedLayerPosition() const { return m_replicatedLayer
Position; } | 235 const FloatPoint& replicatedLayerPosition() const { return m_replicatedLayer
Position; } |
236 void setReplicatedLayerPosition(const FloatPoint& p) { m_replicatedLayerPosi
tion = p; } | 236 void setReplicatedLayerPosition(const FloatPoint& p) { m_replicatedLayerPosi
tion = p; } |
237 | 237 |
238 // Offset is origin of the renderer minus origin of the graphics layer (so e
ither zero or negative). | 238 // Offset is origin of the renderer minus origin of the graphics layer (so e
ither zero or negative). |
239 IntSize offsetFromRenderer() const { return m_offsetFromRenderer; } | 239 IntSize offsetFromRenderer() const { return m_offsetFromRenderer; } |
240 void setOffsetFromRenderer(const IntSize& offset) { m_offsetFromRenderer = o
ffset; } | 240 void setOffsetFromRenderer(const IntSize&); |
241 | 241 |
242 // The position of the layer (the location of its top-left corner in its par
ent) | 242 // The position of the layer (the location of its top-left corner in its par
ent) |
243 const FloatPoint& position() const { return m_position; } | 243 const FloatPoint& position() const { return m_position; } |
244 virtual void setPosition(const FloatPoint& p) { m_position = p; } | 244 virtual void setPosition(const FloatPoint& p) { m_position = p; } |
245 | 245 |
246 // Anchor point: (0, 0) is top left, (1, 1) is bottom right. The anchor poin
t | 246 // Anchor point: (0, 0) is top left, (1, 1) is bottom right. The anchor poin
t |
247 // affects the origin of the transforms. | 247 // affects the origin of the transforms. |
248 const FloatPoint3D& anchorPoint() const { return m_anchorPoint; } | 248 const FloatPoint3D& anchorPoint() const { return m_anchorPoint; } |
249 virtual void setAnchorPoint(const FloatPoint3D& p) { m_anchorPoint = p; } | 249 virtual void setAnchorPoint(const FloatPoint3D& p) { m_anchorPoint = p; } |
250 | 250 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 | 462 |
463 #ifndef NDEBUG | 463 #ifndef NDEBUG |
464 // Outside the WebCore namespace for ease of invocation from gdb. | 464 // Outside the WebCore namespace for ease of invocation from gdb. |
465 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 465 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
466 #endif | 466 #endif |
467 | 467 |
468 #endif // USE(ACCELERATED_COMPOSITING) | 468 #endif // USE(ACCELERATED_COMPOSITING) |
469 | 469 |
470 #endif // GraphicsLayer_h | 470 #endif // GraphicsLayer_h |
471 | 471 |
OLD | NEW |