OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 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 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // GraphicsLayer backing, but is nevertheless the root for a call to the Ren
derLayer::paint*() methods. | 203 // GraphicsLayer backing, but is nevertheless the root for a call to the Ren
derLayer::paint*() methods. |
204 RenderLayer* enclosingLayerForPaintInvalidation() const; | 204 RenderLayer* enclosingLayerForPaintInvalidation() const; |
205 | 205 |
206 RenderLayer* enclosingLayerForPaintInvalidationCrossingFrameBoundaries() con
st; | 206 RenderLayer* enclosingLayerForPaintInvalidationCrossingFrameBoundaries() con
st; |
207 | 207 |
208 bool hasAncestorWithFilterOutsets() const; | 208 bool hasAncestorWithFilterOutsets() const; |
209 | 209 |
210 bool canUseConvertToLayerCoords() const | 210 bool canUseConvertToLayerCoords() const |
211 { | 211 { |
212 // These RenderObjects have an impact on their layers without the render
ers knowing about it. | 212 // These RenderObjects have an impact on their layers without the render
ers knowing about it. |
213 return !renderer()->hasColumns() && !renderer()->hasTransform() && !rend
erer()->isSVGRoot(); | 213 return !renderer()->hasColumns() && !renderer()->hasTransformRelatedProp
erty() && !renderer()->isSVGRoot(); |
214 } | 214 } |
215 | 215 |
216 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co
nst; | 216 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co
nst; |
217 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con
st; | 217 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con
st; |
218 | 218 |
219 // The hitTest() method looks for mouse events by walking layers that inters
ect the point from front to back. | 219 // The hitTest() method looks for mouse events by walking layers that inters
ect the point from front to back. |
220 bool hitTest(const HitTestRequest&, HitTestResult&); | 220 bool hitTest(const HitTestRequest&, HitTestResult&); |
221 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | 221 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); |
222 | 222 |
223 // Pass offsetFromRoot if known. | 223 // Pass offsetFromRoot if known. |
(...skipping 18 matching lines...) Expand all Loading... |
242 | 242 |
243 LayoutUnit staticInlinePosition() const { return m_staticInlinePosition; } | 243 LayoutUnit staticInlinePosition() const { return m_staticInlinePosition; } |
244 LayoutUnit staticBlockPosition() const { return m_staticBlockPosition; } | 244 LayoutUnit staticBlockPosition() const { return m_staticBlockPosition; } |
245 | 245 |
246 void setStaticInlinePosition(LayoutUnit position) { m_staticInlinePosition =
position; } | 246 void setStaticInlinePosition(LayoutUnit position) { m_staticInlinePosition =
position; } |
247 void setStaticBlockPosition(LayoutUnit position) { m_staticBlockPosition = p
osition; } | 247 void setStaticBlockPosition(LayoutUnit position) { m_staticBlockPosition = p
osition; } |
248 | 248 |
249 LayoutSize subpixelAccumulation() const; | 249 LayoutSize subpixelAccumulation() const; |
250 void setSubpixelAccumulation(const LayoutSize&); | 250 void setSubpixelAccumulation(const LayoutSize&); |
251 | 251 |
252 bool hasTransform() const { return renderer()->hasTransform(); } | 252 bool hasTransformRelatedProperty() const { return renderer()->hasTransformRe
latedProperty(); } |
253 // Note that this transform has the transform-origin baked in. | 253 // Note that this transform has the transform-origin baked in. |
254 TransformationMatrix* transform() const { return m_transform.get(); } | 254 TransformationMatrix* transform() const { return m_transform.get(); } |
255 void setTransform(PassOwnPtr<TransformationMatrix> transform) { m_transform
= transform; } | 255 void setTransform(PassOwnPtr<TransformationMatrix> transform) { m_transform
= transform; } |
256 void clearTransform() { m_transform.clear(); } | 256 void clearTransform() { m_transform.clear(); } |
257 | 257 |
258 // currentTransform computes a transform which takes accelerated animations
into account. The | 258 // currentTransform computes a transform which takes accelerated animations
into account. The |
259 // resulting transform has transform-origin baked in. If the layer does not
have a transform, | 259 // resulting transform has transform-origin baked in. If the layer does not
have a transform, |
260 // returns the identity matrix. | 260 // returns the identity matrix. |
261 TransformationMatrix currentTransform(RenderStyle::ApplyTransformOrigin = Re
nderStyle::IncludeTransformOrigin) const; | 261 TransformationMatrix currentTransform(RenderStyle::ApplyTransformOrigin = Re
nderStyle::IncludeTransformOrigin) const; |
262 TransformationMatrix renderableTransform(PaintBehavior) const; | 262 TransformationMatrix renderableTransform(PaintBehavior) const; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea.
get(); } | 373 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea.
get(); } |
374 RenderLayerClipper& clipper() { return m_clipper; } | 374 RenderLayerClipper& clipper() { return m_clipper; } |
375 const RenderLayerClipper& clipper() const { return m_clipper; } | 375 const RenderLayerClipper& clipper() const { return m_clipper; } |
376 | 376 |
377 inline bool isPositionedContainer() const | 377 inline bool isPositionedContainer() const |
378 { | 378 { |
379 // FIXME: This is not in sync with containingBlock. | 379 // FIXME: This is not in sync with containingBlock. |
380 // RenderObject::canContainFixedPositionedObject() should probably be us
ed | 380 // RenderObject::canContainFixedPositionedObject() should probably be us
ed |
381 // instead. | 381 // instead. |
382 RenderLayerModelObject* layerRenderer = renderer(); | 382 RenderLayerModelObject* layerRenderer = renderer(); |
383 return isRootLayer() || layerRenderer->isPositioned() || hasTransform(); | 383 return isRootLayer() || layerRenderer->isPositioned() || hasTransformRel
atedProperty(); |
384 } | 384 } |
385 | 385 |
386 bool scrollsOverflow() const; | 386 bool scrollsOverflow() const; |
387 | 387 |
388 CompositingReasons potentialCompositingReasonsFromStyle() const { return m_p
otentialCompositingReasonsFromStyle; } | 388 CompositingReasons potentialCompositingReasonsFromStyle() const { return m_p
otentialCompositingReasonsFromStyle; } |
389 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) { A
SSERT(reasons == (reasons & CompositingReasonComboAllStyleDeterminedReasons)); m
_potentialCompositingReasonsFromStyle = reasons; } | 389 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) { A
SSERT(reasons == (reasons & CompositingReasonComboAllStyleDeterminedReasons)); m
_potentialCompositingReasonsFromStyle = reasons; } |
390 | 390 |
391 bool hasStyleDeterminedDirectCompositingReasons() const { return m_potential
CompositingReasonsFromStyle & CompositingReasonComboAllDirectStyleDeterminedReas
ons; } | 391 bool hasStyleDeterminedDirectCompositingReasons() const { return m_potential
CompositingReasonsFromStyle & CompositingReasonComboAllDirectStyleDeterminedReas
ons; } |
392 | 392 |
393 class AncestorDependentCompositingInputs { | 393 class AncestorDependentCompositingInputs { |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 | 709 |
710 } // namespace blink | 710 } // namespace blink |
711 | 711 |
712 #ifndef NDEBUG | 712 #ifndef NDEBUG |
713 // Outside the WebCore namespace for ease of invocation from gdb. | 713 // Outside the WebCore namespace for ease of invocation from gdb. |
714 void showLayerTree(const blink::RenderLayer*); | 714 void showLayerTree(const blink::RenderLayer*); |
715 void showLayerTree(const blink::RenderObject*); | 715 void showLayerTree(const blink::RenderObject*); |
716 #endif | 716 #endif |
717 | 717 |
718 #endif // RenderLayer_h | 718 #endif // RenderLayer_h |
OLD | NEW |