| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 * version of this file under any of the LGPL, the MPL or the GPL. | 42 * version of this file under any of the LGPL, the MPL or the GPL. |
| 43 */ | 43 */ |
| 44 | 44 |
| 45 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ | 45 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ |
| 46 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ | 46 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ |
| 47 | 47 |
| 48 #include "sky/engine/core/rendering/LayerPaintingInfo.h" | 48 #include "sky/engine/core/rendering/LayerPaintingInfo.h" |
| 49 #include "sky/engine/core/rendering/RenderBox.h" | 49 #include "sky/engine/core/rendering/RenderBox.h" |
| 50 #include "sky/engine/core/rendering/RenderLayerClipper.h" | 50 #include "sky/engine/core/rendering/RenderLayerClipper.h" |
| 51 #include "sky/engine/core/rendering/RenderLayerFilterInfo.h" | 51 #include "sky/engine/core/rendering/RenderLayerFilterInfo.h" |
| 52 #include "sky/engine/core/rendering/RenderLayerRepainter.h" | |
| 53 #include "sky/engine/core/rendering/RenderLayerScrollableArea.h" | 52 #include "sky/engine/core/rendering/RenderLayerScrollableArea.h" |
| 54 #include "sky/engine/core/rendering/RenderLayerStackingNode.h" | 53 #include "sky/engine/core/rendering/RenderLayerStackingNode.h" |
| 55 #include "sky/engine/core/rendering/RenderLayerStackingNodeIterator.h" | 54 #include "sky/engine/core/rendering/RenderLayerStackingNodeIterator.h" |
| 56 #include "sky/engine/public/platform/WebBlendMode.h" | 55 #include "sky/engine/public/platform/WebBlendMode.h" |
| 57 #include "sky/engine/wtf/OwnPtr.h" | 56 #include "sky/engine/wtf/OwnPtr.h" |
| 58 | 57 |
| 59 namespace blink { | 58 namespace blink { |
| 60 | 59 |
| 61 class FilterEffectRenderer; | 60 class FilterEffectRenderer; |
| 62 class FilterOperations; | 61 class FilterOperations; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 void setHasFilterInfo(bool hasFilterInfo) { m_hasFilterInfo = hasFilterInfo;
} | 269 void setHasFilterInfo(bool hasFilterInfo) { m_hasFilterInfo = hasFilterInfo;
} |
| 271 | 270 |
| 272 void updateFilters(const RenderStyle* oldStyle, const RenderStyle* newStyle)
; | 271 void updateFilters(const RenderStyle* oldStyle, const RenderStyle* newStyle)
; |
| 273 | 272 |
| 274 Node* enclosingElement() const; | 273 Node* enclosingElement() const; |
| 275 | 274 |
| 276 bool scrollsWithRespectTo(const RenderLayer*) const; | 275 bool scrollsWithRespectTo(const RenderLayer*) const; |
| 277 | 276 |
| 278 // FIXME: This should probably return a ScrollableArea but a lot of internal
methods are mistakenly exposed. | 277 // FIXME: This should probably return a ScrollableArea but a lot of internal
methods are mistakenly exposed. |
| 279 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea.
get(); } | 278 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea.
get(); } |
| 280 RenderLayerRepainter& paintInvalidator() { return m_paintInvalidator; } | |
| 281 RenderLayerClipper& clipper() { return m_clipper; } | 279 RenderLayerClipper& clipper() { return m_clipper; } |
| 282 const RenderLayerClipper& clipper() const { return m_clipper; } | 280 const RenderLayerClipper& clipper() const { return m_clipper; } |
| 283 | 281 |
| 284 inline bool isPositionedContainer() const | 282 inline bool isPositionedContainer() const |
| 285 { | 283 { |
| 286 // FIXME: This is not in sync with containingBlock. | 284 // FIXME: This is not in sync with containingBlock. |
| 287 RenderLayerModelObject* layerRenderer = renderer(); | 285 RenderLayerModelObject* layerRenderer = renderer(); |
| 288 return isRootLayer() || layerRenderer->isPositioned() || hasTransform(); | 286 return isRootLayer() || layerRenderer->isPositioned() || hasTransform(); |
| 289 } | 287 } |
| 290 | 288 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 | 545 |
| 548 OwnPtr<TransformationMatrix> m_transform; | 546 OwnPtr<TransformationMatrix> m_transform; |
| 549 | 547 |
| 550 DescendantDependentCompositingInputs m_descendantDependentCompositingInputs; | 548 DescendantDependentCompositingInputs m_descendantDependentCompositingInputs; |
| 551 AncestorDependentCompositingInputs m_ancestorDependentCompositingInputs; | 549 AncestorDependentCompositingInputs m_ancestorDependentCompositingInputs; |
| 552 | 550 |
| 553 IntRect m_blockSelectionGapsBounds; | 551 IntRect m_blockSelectionGapsBounds; |
| 554 | 552 |
| 555 OwnPtr<RenderLayerScrollableArea> m_scrollableArea; | 553 OwnPtr<RenderLayerScrollableArea> m_scrollableArea; |
| 556 | 554 |
| 557 RenderLayerRepainter m_paintInvalidator; | |
| 558 RenderLayerClipper m_clipper; // FIXME: Lazily allocate? | 555 RenderLayerClipper m_clipper; // FIXME: Lazily allocate? |
| 559 OwnPtr<RenderLayerStackingNode> m_stackingNode; | 556 OwnPtr<RenderLayerStackingNode> m_stackingNode; |
| 560 | 557 |
| 561 LayoutSize m_subpixelAccumulation; // The accumulated subpixel offset of a c
omposited layer's composited bounds compared to absolute coordinates. | 558 LayoutSize m_subpixelAccumulation; // The accumulated subpixel offset of a c
omposited layer's composited bounds compared to absolute coordinates. |
| 562 }; | 559 }; |
| 563 | 560 |
| 564 } // namespace blink | 561 } // namespace blink |
| 565 | 562 |
| 566 #ifndef NDEBUG | 563 #ifndef NDEBUG |
| 567 // Outside the WebCore namespace for ease of invocation from gdb. | 564 // Outside the WebCore namespace for ease of invocation from gdb. |
| 568 void showLayerTree(const blink::RenderLayer*); | 565 void showLayerTree(const blink::RenderLayer*); |
| 569 void showLayerTree(const blink::RenderObject*); | 566 void showLayerTree(const blink::RenderObject*); |
| 570 #endif | 567 #endif |
| 571 | 568 |
| 572 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ | 569 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ |
| OLD | NEW |