| 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 bool scrollsWithViewport() const; | 375 bool scrollsWithViewport() const; |
| 376 bool scrollsWithRespectTo(const RenderLayer*) const; | 376 bool scrollsWithRespectTo(const RenderLayer*) const; |
| 377 | 377 |
| 378 void addLayerHitTestRects(LayerHitTestRects&) const; | 378 void addLayerHitTestRects(LayerHitTestRects&) const; |
| 379 | 379 |
| 380 // Compute rects only for this layer | 380 // Compute rects only for this layer |
| 381 void computeSelfHitTestRects(LayerHitTestRects&) const; | 381 void computeSelfHitTestRects(LayerHitTestRects&) const; |
| 382 | 382 |
| 383 // FIXME: This should probably return a ScrollableArea but a lot of internal
methods are mistakenly exposed. | 383 // FIXME: This should probably return a ScrollableArea but a lot of internal
methods are mistakenly exposed. |
| 384 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea.
get(); } | 384 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea.
get(); } |
| 385 RenderLayerRepainter& paintInvalidator() { return m_repainter; } | 385 RenderLayerRepainter& paintInvalidator() { return m_paintInvalidator; } |
| 386 RenderLayerClipper& clipper() { return m_clipper; } | 386 RenderLayerClipper& clipper() { return m_clipper; } |
| 387 const RenderLayerClipper& clipper() const { return m_clipper; } | 387 const RenderLayerClipper& clipper() const { return m_clipper; } |
| 388 | 388 |
| 389 inline bool isPositionedContainer() const | 389 inline bool isPositionedContainer() const |
| 390 { | 390 { |
| 391 // FIXME: This is not in sync with containingBlock. | 391 // FIXME: This is not in sync with containingBlock. |
| 392 // RenderObject::canContainFixedPositionedObject() should probably be us
ed | 392 // RenderObject::canContainFixedPositionedObject() should probably be us
ed |
| 393 // instead. | 393 // instead. |
| 394 RenderLayerModelObject* layerRenderer = renderer(); | 394 RenderLayerModelObject* layerRenderer = renderer(); |
| 395 return isRootLayer() || layerRenderer->isPositioned() || hasTransform(); | 395 return isRootLayer() || layerRenderer->isPositioned() || hasTransform(); |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 DescendantDependentCompositingInputs m_descendantDependentCompositingInputs; | 727 DescendantDependentCompositingInputs m_descendantDependentCompositingInputs; |
| 728 AncestorDependentCompositingInputs m_ancestorDependentCompositingInputs; | 728 AncestorDependentCompositingInputs m_ancestorDependentCompositingInputs; |
| 729 | 729 |
| 730 IntRect m_blockSelectionGapsBounds; | 730 IntRect m_blockSelectionGapsBounds; |
| 731 | 731 |
| 732 OwnPtr<CompositedLayerMapping> m_compositedLayerMapping; | 732 OwnPtr<CompositedLayerMapping> m_compositedLayerMapping; |
| 733 OwnPtr<RenderLayerScrollableArea> m_scrollableArea; | 733 OwnPtr<RenderLayerScrollableArea> m_scrollableArea; |
| 734 | 734 |
| 735 CompositedLayerMapping* m_groupedMapping; | 735 CompositedLayerMapping* m_groupedMapping; |
| 736 | 736 |
| 737 RenderLayerRepainter m_repainter; | 737 RenderLayerRepainter m_paintInvalidator; |
| 738 RenderLayerClipper m_clipper; // FIXME: Lazily allocate? | 738 RenderLayerClipper m_clipper; // FIXME: Lazily allocate? |
| 739 OwnPtr<RenderLayerStackingNode> m_stackingNode; | 739 OwnPtr<RenderLayerStackingNode> m_stackingNode; |
| 740 OwnPtrWillBePersistent<RenderLayerReflectionInfo> m_reflectionInfo; | 740 OwnPtrWillBePersistent<RenderLayerReflectionInfo> m_reflectionInfo; |
| 741 | 741 |
| 742 LayoutSize m_subpixelAccumulation; // The accumulated subpixel offset of a c
omposited layer's composited bounds compared to absolute coordinates. | 742 LayoutSize m_subpixelAccumulation; // The accumulated subpixel offset of a c
omposited layer's composited bounds compared to absolute coordinates. |
| 743 }; | 743 }; |
| 744 | 744 |
| 745 } // namespace blink | 745 } // namespace blink |
| 746 | 746 |
| 747 #ifndef NDEBUG | 747 #ifndef NDEBUG |
| 748 // Outside the WebCore namespace for ease of invocation from gdb. | 748 // Outside the WebCore namespace for ease of invocation from gdb. |
| 749 void showLayerTree(const blink::RenderLayer*); | 749 void showLayerTree(const blink::RenderLayer*); |
| 750 void showLayerTree(const blink::RenderObject*); | 750 void showLayerTree(const blink::RenderObject*); |
| 751 #endif | 751 #endif |
| 752 | 752 |
| 753 #endif // RenderLayer_h | 753 #endif // RenderLayer_h |
| OLD | NEW |