OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void transitionPaused(double timeOffset, CSSPropertyID); | 116 void transitionPaused(double timeOffset, CSSPropertyID); |
117 void transitionFinished(CSSPropertyID); | 117 void transitionFinished(CSSPropertyID); |
118 | 118 |
119 bool startAnimation(double timeOffset, const CSSAnimationData* anim, const K
eyframeList& keyframes); | 119 bool startAnimation(double timeOffset, const CSSAnimationData* anim, const K
eyframeList& keyframes); |
120 void animationPaused(double timeOffset, const String& name); | 120 void animationPaused(double timeOffset, const String& name); |
121 void animationFinished(const String& name); | 121 void animationFinished(const String& name); |
122 | 122 |
123 void suspendAnimations(double time = 0); | 123 void suspendAnimations(double time = 0); |
124 void resumeAnimations(); | 124 void resumeAnimations(); |
125 | 125 |
126 IntRect compositedBounds() const; | 126 LayoutRect compositedBounds() const; |
127 void setCompositedBounds(const IntRect&); | 127 void setCompositedBounds(const LayoutRect&); |
128 void updateCompositedBounds(); | 128 void updateCompositedBounds(); |
129 | 129 |
130 void updateAfterWidgetResize(); | 130 void updateAfterWidgetResize(); |
131 void positionOverflowControlsLayers(const IntSize& offsetFromRoot); | 131 void positionOverflowControlsLayers(const IntSize& offsetFromRoot); |
132 bool hasUnpositionedOverflowControlsLayers() const; | 132 bool hasUnpositionedOverflowControlsLayers() const; |
133 | 133 |
134 // GraphicsLayerClient interface | 134 // GraphicsLayerClient interface |
135 virtual void notifyAnimationStarted(const GraphicsLayer*, double startTime)
OVERRIDE; | 135 virtual void notifyAnimationStarted(const GraphicsLayer*, double startTime)
OVERRIDE; |
136 | 136 |
137 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& clip) OVERRIDE; | 137 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& clip) OVERRIDE; |
138 | 138 |
139 virtual void didCommitChangesForLayer(const GraphicsLayer*) const OVERRIDE; | 139 virtual void didCommitChangesForLayer(const GraphicsLayer*) const OVERRIDE; |
140 virtual bool getCurrentTransform(const GraphicsLayer*, TransformationMatrix&
) const OVERRIDE; | 140 virtual bool getCurrentTransform(const GraphicsLayer*, TransformationMatrix&
) const OVERRIDE; |
141 | 141 |
142 virtual bool isTrackingRepaints() const OVERRIDE; | 142 virtual bool isTrackingRepaints() const OVERRIDE; |
143 | 143 |
144 #ifndef NDEBUG | 144 #ifndef NDEBUG |
145 virtual void verifyNotPainting(); | 145 virtual void verifyNotPainting(); |
146 #endif | 146 #endif |
147 | 147 |
148 IntRect contentsBox() const; | 148 LayoutRect contentsBox() const; |
149 IntRect backgroundBox() const; | 149 IntRect backgroundBox() const; |
150 | 150 |
151 // For informative purposes only. | 151 // For informative purposes only. |
152 CompositingLayerType compositingLayerType() const; | 152 CompositingLayerType compositingLayerType() const; |
153 | 153 |
154 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo
ntalScrollbar.get(); } | 154 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo
ntalScrollbar.get(); } |
155 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical
Scrollbar.get(); } | 155 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical
Scrollbar.get(); } |
156 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } | 156 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } |
157 | 157 |
158 void updateFilters(const RenderStyle*); | 158 void updateFilters(const RenderStyle*); |
(...skipping 23 matching lines...) Expand all Loading... |
182 bool requiresVerticalScrollbarLayer() const { return m_owningLayer->vertical
Scrollbar(); } | 182 bool requiresVerticalScrollbarLayer() const { return m_owningLayer->vertical
Scrollbar(); } |
183 bool requiresScrollCornerLayer() const { return !m_owningLayer->scrollCorner
AndResizerRect().isEmpty(); } | 183 bool requiresScrollCornerLayer() const { return !m_owningLayer->scrollCorner
AndResizerRect().isEmpty(); } |
184 bool updateScrollingLayers(bool scrollingLayers); | 184 bool updateScrollingLayers(bool scrollingLayers); |
185 void updateDrawsContent(bool isSimpleContainer); | 185 void updateDrawsContent(bool isSimpleContainer); |
186 void registerScrollingLayers(); | 186 void registerScrollingLayers(); |
187 | 187 |
188 void setBackgroundLayerPaintsFixedRootBackground(bool); | 188 void setBackgroundLayerPaintsFixedRootBackground(bool); |
189 | 189 |
190 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; | 190 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; |
191 | 191 |
192 IntSize contentOffsetInCompostingLayer() const; | 192 LayoutSize contentOffsetInCompostingLayer() const; |
193 // Result is transform origin in pixels. | 193 // Result is transform origin in pixels. |
194 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; | 194 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; |
195 // Result is perspective origin in pixels. | 195 // Result is perspective origin in pixels. |
196 FloatPoint computePerspectiveOrigin(const IntRect& borderBox) const; | 196 FloatPoint computePerspectiveOrigin(const IntRect& borderBox) const; |
197 | 197 |
198 void updateOpacity(const RenderStyle*); | 198 void updateOpacity(const RenderStyle*); |
199 void updateTransform(const RenderStyle*); | 199 void updateTransform(const RenderStyle*); |
200 void updateLayerBlendMode(const RenderStyle*); | 200 void updateLayerBlendMode(const RenderStyle*); |
201 // Return the opacity value that this layer should use for compositing. | 201 // Return the opacity value that this layer should use for compositing. |
202 float compositingOpacity(float rendererOpacity) const; | 202 float compositingOpacity(float rendererOpacity) const; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; | 241 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; |
242 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; | 242 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; |
243 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 243 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
244 | 244 |
245 OwnPtr<GraphicsLayer> m_scrollingLayer; // Only used if the layer is using c
omposited scrolling. | 245 OwnPtr<GraphicsLayer> m_scrollingLayer; // Only used if the layer is using c
omposited scrolling. |
246 OwnPtr<GraphicsLayer> m_scrollingContentsLayer; // Only used if the layer is
using composited scrolling. | 246 OwnPtr<GraphicsLayer> m_scrollingContentsLayer; // Only used if the layer is
using composited scrolling. |
247 | 247 |
248 uint64_t m_scrollLayerID; | 248 uint64_t m_scrollLayerID; |
249 | 249 |
250 IntRect m_compositedBounds; | 250 LayoutRect m_compositedBounds; |
| 251 LayoutSize m_subpixelAccumulation; // The accumulated subpixel offset of the
compositedBounds compared to absolute coordinates. |
251 | 252 |
252 bool m_artificiallyInflatedBounds; // bounds had to be made non-zero to make
transform-origin work | 253 bool m_artificiallyInflatedBounds; // bounds had to be made non-zero to make
transform-origin work |
253 bool m_boundsConstrainedByClipping; | 254 bool m_boundsConstrainedByClipping; |
254 bool m_isMainFrameRenderViewLayer; | 255 bool m_isMainFrameRenderViewLayer; |
255 bool m_requiresOwnBackingStore; | 256 bool m_requiresOwnBackingStore; |
256 bool m_canCompositeFilters; | 257 bool m_canCompositeFilters; |
257 bool m_backgroundLayerPaintsFixedRootBackground; | 258 bool m_backgroundLayerPaintsFixedRootBackground; |
258 }; | 259 }; |
259 | 260 |
260 } // namespace WebCore | 261 } // namespace WebCore |
261 | 262 |
262 #endif // RenderLayerBacking_h | 263 #endif // RenderLayerBacking_h |
OLD | NEW |