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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 void addChildAtIndex(GraphicsLayer*, int index); | 243 void addChildAtIndex(GraphicsLayer*, int index); |
244 void addChildAbove(GraphicsLayer*, GraphicsLayer* sibling); | 244 void addChildAbove(GraphicsLayer*, GraphicsLayer* sibling); |
245 void addChildBelow(GraphicsLayer*, GraphicsLayer* sibling); | 245 void addChildBelow(GraphicsLayer*, GraphicsLayer* sibling); |
246 bool replaceChild(GraphicsLayer* oldChild, GraphicsLayer* newChild); | 246 bool replaceChild(GraphicsLayer* oldChild, GraphicsLayer* newChild); |
247 | 247 |
248 void removeAllChildren(); | 248 void removeAllChildren(); |
249 void removeFromParent(); | 249 void removeFromParent(); |
250 | 250 |
251 GraphicsLayer* maskLayer() const { return m_maskLayer; } | 251 GraphicsLayer* maskLayer() const { return m_maskLayer; } |
252 void setMaskLayer(GraphicsLayer*); | 252 void setMaskLayer(GraphicsLayer*); |
| 253 |
| 254 GraphicsLayer* borderRadiusLayer() const { return m_borderRadiusLayer; } |
| 255 void setBorderRadiusLayer(GraphicsLayer*); |
253 | 256 |
254 // The given layer will replicate this layer and its children; the replica r
enders behind this layer. | 257 // The given layer will replicate this layer and its children; the replica r
enders behind this layer. |
255 void setReplicatedByLayer(GraphicsLayer*); | 258 void setReplicatedByLayer(GraphicsLayer*); |
256 // Whether this layer is being replicated by another layer. | 259 // Whether this layer is being replicated by another layer. |
257 bool isReplicated() const { return m_replicaLayer; } | 260 bool isReplicated() const { return m_replicaLayer; } |
258 // The layer that replicates this layer (if any). | 261 // The layer that replicates this layer (if any). |
259 GraphicsLayer* replicaLayer() const { return m_replicaLayer; } | 262 GraphicsLayer* replicaLayer() const { return m_replicaLayer; } |
260 | 263 |
261 const FloatPoint& replicatedLayerPosition() const { return m_replicatedLayer
Position; } | 264 const FloatPoint& replicatedLayerPosition() const { return m_replicatedLayer
Position; } |
262 void setReplicatedLayerPosition(const FloatPoint& p) { m_replicatedLayerPosi
tion = p; } | 265 void setReplicatedLayerPosition(const FloatPoint& p) { m_replicatedLayerPosi
tion = p; } |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 bool m_showDebugBorder : 1; | 529 bool m_showDebugBorder : 1; |
527 bool m_showRepaintCounter : 1; | 530 bool m_showRepaintCounter : 1; |
528 | 531 |
529 GraphicsLayerPaintingPhase m_paintingPhase; | 532 GraphicsLayerPaintingPhase m_paintingPhase; |
530 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat
ion of layer contents | 533 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat
ion of layer contents |
531 | 534 |
532 Vector<GraphicsLayer*> m_children; | 535 Vector<GraphicsLayer*> m_children; |
533 GraphicsLayer* m_parent; | 536 GraphicsLayer* m_parent; |
534 | 537 |
535 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this. | 538 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this. |
| 539 GraphicsLayer* m_borderRadiusLayer; // Reference to border radius mask layer
. We don't own this. |
536 | 540 |
537 GraphicsLayer* m_replicaLayer; // A layer that replicates this layer. We onl
y allow one, for now. | 541 GraphicsLayer* m_replicaLayer; // A layer that replicates this layer. We onl
y allow one, for now. |
538 // The replica is not parented; this is the p
rimary reference to it. | 542 // The replica is not parented; this is the p
rimary reference to it. |
539 GraphicsLayer* m_replicatedLayer; // For a replica layer, a reference to the
original layer. | 543 GraphicsLayer* m_replicatedLayer; // For a replica layer, a reference to the
original layer. |
540 FloatPoint m_replicatedLayerPosition; // For a replica layer, the position o
f the replica. | 544 FloatPoint m_replicatedLayerPosition; // For a replica layer, the position o
f the replica. |
541 | 545 |
542 IntRect m_contentsRect; | 546 IntRect m_contentsRect; |
543 | 547 |
544 int m_repaintCount; | 548 int m_repaintCount; |
545 | 549 |
(...skipping 26 matching lines...) Expand all Loading... |
572 | 576 |
573 | 577 |
574 } // namespace WebCore | 578 } // namespace WebCore |
575 | 579 |
576 #ifndef NDEBUG | 580 #ifndef NDEBUG |
577 // Outside the WebCore namespace for ease of invocation from gdb. | 581 // Outside the WebCore namespace for ease of invocation from gdb. |
578 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 582 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
579 #endif | 583 #endif |
580 | 584 |
581 #endif // GraphicsLayer_h | 585 #endif // GraphicsLayer_h |
OLD | NEW |