Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: Source/core/platform/graphics/GraphicsLayer.h

Issue 16688004: Large canvas does not honor containing div's border radius (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Replaced explicit baselines with NeedsRebaseline Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void addChildAbove(GraphicsLayer*, GraphicsLayer* sibling); 120 void addChildAbove(GraphicsLayer*, GraphicsLayer* sibling);
121 void addChildBelow(GraphicsLayer*, GraphicsLayer* sibling); 121 void addChildBelow(GraphicsLayer*, GraphicsLayer* sibling);
122 bool replaceChild(GraphicsLayer* oldChild, GraphicsLayer* newChild); 122 bool replaceChild(GraphicsLayer* oldChild, GraphicsLayer* newChild);
123 123
124 void removeAllChildren(); 124 void removeAllChildren();
125 void removeFromParent(); 125 void removeFromParent();
126 126
127 GraphicsLayer* maskLayer() const { return m_maskLayer; } 127 GraphicsLayer* maskLayer() const { return m_maskLayer; }
128 void setMaskLayer(GraphicsLayer*); 128 void setMaskLayer(GraphicsLayer*);
129 129
130 GraphicsLayer* contentsClippingMaskLayer() const { return m_contentsClipping MaskLayer; }
131 void setContentsClippingMaskLayer(GraphicsLayer*);
132
130 // The given layer will replicate this layer and its children; the replica r enders behind this layer. 133 // The given layer will replicate this layer and its children; the replica r enders behind this layer.
131 void setReplicatedByLayer(GraphicsLayer*); 134 void setReplicatedByLayer(GraphicsLayer*);
132 // Whether this layer is being replicated by another layer. 135 // Whether this layer is being replicated by another layer.
133 bool isReplicated() const { return m_replicaLayer; } 136 bool isReplicated() const { return m_replicaLayer; }
134 // The layer that replicates this layer (if any). 137 // The layer that replicates this layer (if any).
135 GraphicsLayer* replicaLayer() const { return m_replicaLayer; } 138 GraphicsLayer* replicaLayer() const { return m_replicaLayer; }
136 // The layer being replicated. 139 // The layer being replicated.
137 GraphicsLayer* replicatedLayer() const { return m_replicatedLayer; } 140 GraphicsLayer* replicatedLayer() const { return m_replicatedLayer; }
138 141
139 const FloatPoint& replicatedLayerPosition() const { return m_replicatedLayer Position; } 142 const FloatPoint& replicatedLayerPosition() const { return m_replicatedLayer Position; }
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 bool m_drawsContent : 1; 380 bool m_drawsContent : 1;
378 bool m_contentsVisible : 1; 381 bool m_contentsVisible : 1;
379 382
380 GraphicsLayerPaintingPhase m_paintingPhase; 383 GraphicsLayerPaintingPhase m_paintingPhase;
381 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents 384 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents
382 385
383 Vector<GraphicsLayer*> m_children; 386 Vector<GraphicsLayer*> m_children;
384 GraphicsLayer* m_parent; 387 GraphicsLayer* m_parent;
385 388
386 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this. 389 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this.
390 GraphicsLayer* m_contentsClippingMaskLayer; // Reference to clipping mask la yer. We don't own this.
387 391
388 GraphicsLayer* m_replicaLayer; // A layer that replicates this layer. We onl y allow one, for now. 392 GraphicsLayer* m_replicaLayer; // A layer that replicates this layer. We onl y allow one, for now.
389 // The replica is not parented; this is the p rimary reference to it. 393 // The replica is not parented; this is the p rimary reference to it.
390 GraphicsLayer* m_replicatedLayer; // For a replica layer, a reference to the original layer. 394 GraphicsLayer* m_replicatedLayer; // For a replica layer, a reference to the original layer.
391 FloatPoint m_replicatedLayerPosition; // For a replica layer, the position o f the replica. 395 FloatPoint m_replicatedLayerPosition; // For a replica layer, the position o f the replica.
392 396
393 IntRect m_contentsRect; 397 IntRect m_contentsRect;
394 398
395 int m_paintCount; 399 int m_paintCount;
396 400
(...skipping 22 matching lines...) Expand all
419 423
420 424
421 } // namespace WebCore 425 } // namespace WebCore
422 426
423 #ifndef NDEBUG 427 #ifndef NDEBUG
424 // Outside the WebCore namespace for ease of invocation from gdb. 428 // Outside the WebCore namespace for ease of invocation from gdb.
425 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); 429 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
426 #endif 430 #endif
427 431
428 #endif // GraphicsLayer_h 432 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/GraphicsContextAnnotation.cpp ('k') | Source/core/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698