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

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

Issue 301773002: Delete some dead reflection code in CompositedLayerMapping. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // The given layer will replicate this layer and its children; the replica r enders behind this layer. 128 // The given layer will replicate this layer and its children; the replica r enders behind this layer.
129 void setReplicatedByLayer(GraphicsLayer*); 129 void setReplicatedByLayer(GraphicsLayer*);
130 // Whether this layer is being replicated by another layer. 130 // Whether this layer is being replicated by another layer.
131 bool isReplicated() const { return m_replicaLayer; } 131 bool isReplicated() const { return m_replicaLayer; }
132 // The layer that replicates this layer (if any). 132 // The layer that replicates this layer (if any).
133 GraphicsLayer* replicaLayer() const { return m_replicaLayer; } 133 GraphicsLayer* replicaLayer() const { return m_replicaLayer; }
134 // The layer being replicated. 134 // The layer being replicated.
135 GraphicsLayer* replicatedLayer() const { return m_replicatedLayer; } 135 GraphicsLayer* replicatedLayer() const { return m_replicatedLayer; }
136 136
137 const FloatPoint& replicatedLayerPosition() const { return m_replicatedLayer Position; }
138 void setReplicatedLayerPosition(const FloatPoint& p) { m_replicatedLayerPosi tion = p; }
139
140 enum ShouldSetNeedsDisplay { 137 enum ShouldSetNeedsDisplay {
141 DontSetNeedsDisplay, 138 DontSetNeedsDisplay,
142 SetNeedsDisplay 139 SetNeedsDisplay
143 }; 140 };
144 141
145 // Offset is origin of the renderer minus origin of the graphics layer (so e ither zero or negative). 142 // Offset is origin of the renderer minus origin of the graphics layer (so e ither zero or negative).
146 IntSize offsetFromRenderer() const { return m_offsetFromRenderer; } 143 IntSize offsetFromRenderer() const { return m_offsetFromRenderer; }
147 void setOffsetFromRenderer(const IntSize&, ShouldSetNeedsDisplay = SetNeedsD isplay); 144 void setOffsetFromRenderer(const IntSize&, ShouldSetNeedsDisplay = SetNeedsD isplay);
148 145
149 // The position of the layer (the location of its top-left corner in its par ent) 146 // The position of the layer (the location of its top-left corner in its par ent)
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 }; 404 };
408 405
409 } // namespace WebCore 406 } // namespace WebCore
410 407
411 #ifndef NDEBUG 408 #ifndef NDEBUG
412 // Outside the WebCore namespace for ease of invocation from gdb. 409 // Outside the WebCore namespace for ease of invocation from gdb.
413 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*); 410 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*);
414 #endif 411 #endif
415 412
416 #endif // GraphicsLayer_h 413 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698