| 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 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 | 473 |
| 474 void updateLayerPositionsAfterOverflowScroll(); | 474 void updateLayerPositionsAfterOverflowScroll(); |
| 475 void updateLayerPositionsAfterDocumentScroll(); | 475 void updateLayerPositionsAfterDocumentScroll(); |
| 476 | 476 |
| 477 void positionNewlyCreatedOverflowControls(); | 477 void positionNewlyCreatedOverflowControls(); |
| 478 | 478 |
| 479 bool isPaginated() const { return m_isPaginated; } | 479 bool isPaginated() const { return m_isPaginated; } |
| 480 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination
Layer; } | 480 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination
Layer; } |
| 481 | 481 |
| 482 void updateTransform(); | 482 void updateTransform(); |
| 483 | 483 |
| 484 #if ENABLE(CSS_COMPOSITING) | |
| 485 void updateBlendMode(); | 484 void updateBlendMode(); |
| 486 #endif | |
| 487 | 485 |
| 488 const LayoutSize& paintOffset() const { return m_paintOffset; } | 486 const LayoutSize& paintOffset() const { return m_paintOffset; } |
| 489 | 487 |
| 490 void clearClipRectsIncludingDescendants(ClipRectsType typeToClear = AllClipR
ectTypes); | 488 void clearClipRectsIncludingDescendants(ClipRectsType typeToClear = AllClipR
ectTypes); |
| 491 void clearClipRects(ClipRectsType typeToClear = AllClipRectTypes); | 489 void clearClipRects(ClipRectsType typeToClear = AllClipRectTypes); |
| 492 | 490 |
| 493 void addBlockSelectionGapsBounds(const LayoutRect&); | 491 void addBlockSelectionGapsBounds(const LayoutRect&); |
| 494 void clearBlockSelectionGapsBounds(); | 492 void clearBlockSelectionGapsBounds(); |
| 495 void repaintBlockSelectionGaps(); | 493 void repaintBlockSelectionGaps(); |
| 496 | 494 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 // Returns true if the layer has a -webkit-perspective. | 724 // Returns true if the layer has a -webkit-perspective. |
| 727 // Note that this transform has the perspective-origin baked in. | 725 // Note that this transform has the perspective-origin baked in. |
| 728 TransformationMatrix perspectiveTransform() const; | 726 TransformationMatrix perspectiveTransform() const; |
| 729 FloatPoint perspectiveOrigin() const; | 727 FloatPoint perspectiveOrigin() const; |
| 730 bool preserves3D() const { return renderer()->style()->transformStyle3D() ==
TransformStyle3DPreserve3D; } | 728 bool preserves3D() const { return renderer()->style()->transformStyle3D() ==
TransformStyle3DPreserve3D; } |
| 731 bool has3DTransform() const { return m_transform && !m_transform->isAffine()
; } | 729 bool has3DTransform() const { return m_transform && !m_transform->isAffine()
; } |
| 732 | 730 |
| 733 virtual void filterNeedsRepaint(); | 731 virtual void filterNeedsRepaint(); |
| 734 bool hasFilter() const { return renderer()->hasFilter(); } | 732 bool hasFilter() const { return renderer()->hasFilter(); } |
| 735 | 733 |
| 736 #if ENABLE(CSS_COMPOSITING) | 734 bool hasBlendMode() const; |
| 737 bool hasBlendMode() const { return renderer()->hasBlendMode(); } | |
| 738 #else | |
| 739 bool hasBlendMode() const { return false; } | |
| 740 #endif | |
| 741 | 735 |
| 742 // Overloaded new operator. Derived classes must override operator new | 736 // Overloaded new operator. Derived classes must override operator new |
| 743 // in order to allocate out of the RenderArena. | 737 // in order to allocate out of the RenderArena. |
| 744 void* operator new(size_t, RenderArena*); | 738 void* operator new(size_t, RenderArena*); |
| 745 | 739 |
| 746 // Overridden to prevent the normal delete from being called. | 740 // Overridden to prevent the normal delete from being called. |
| 747 void operator delete(void*, size_t); | 741 void operator delete(void*, size_t); |
| 748 | 742 |
| 749 bool isComposited() const { return m_backing != 0; } | 743 bool isComposited() const { return m_backing != 0; } |
| 750 bool hasCompositedMask() const; | 744 bool hasCompositedMask() const; |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 #if !ASSERT_DISABLED | 1172 #if !ASSERT_DISABLED |
| 1179 bool m_layerListMutationAllowed : 1; | 1173 bool m_layerListMutationAllowed : 1; |
| 1180 #endif | 1174 #endif |
| 1181 // This is an optimization added for <table>. | 1175 // This is an optimization added for <table>. |
| 1182 // Currently cells do not need to update their repaint rectangles when scrol
ling. This also | 1176 // Currently cells do not need to update their repaint rectangles when scrol
ling. This also |
| 1183 // saves a lot of time when scrolling on a table. | 1177 // saves a lot of time when scrolling on a table. |
| 1184 const bool m_canSkipRepaintRectsUpdateOnScroll : 1; | 1178 const bool m_canSkipRepaintRectsUpdateOnScroll : 1; |
| 1185 | 1179 |
| 1186 bool m_hasFilterInfo : 1; | 1180 bool m_hasFilterInfo : 1; |
| 1187 | 1181 |
| 1188 #if ENABLE(CSS_COMPOSITING) | |
| 1189 BlendMode m_blendMode; | 1182 BlendMode m_blendMode; |
| 1190 #endif | |
| 1191 | 1183 |
| 1192 RenderLayerModelObject* m_renderer; | 1184 RenderLayerModelObject* m_renderer; |
| 1193 | 1185 |
| 1194 RenderLayer* m_parent; | 1186 RenderLayer* m_parent; |
| 1195 RenderLayer* m_previous; | 1187 RenderLayer* m_previous; |
| 1196 RenderLayer* m_next; | 1188 RenderLayer* m_next; |
| 1197 RenderLayer* m_first; | 1189 RenderLayer* m_first; |
| 1198 RenderLayer* m_last; | 1190 RenderLayer* m_last; |
| 1199 | 1191 |
| 1200 LayoutRect m_repaintRect; // Cached repaint rects. Used by layout. | 1192 LayoutRect m_repaintRect; // Cached repaint rects. Used by layout. |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1325 | 1317 |
| 1326 } // namespace WebCore | 1318 } // namespace WebCore |
| 1327 | 1319 |
| 1328 #ifndef NDEBUG | 1320 #ifndef NDEBUG |
| 1329 // Outside the WebCore namespace for ease of invocation from gdb. | 1321 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1330 void showLayerTree(const WebCore::RenderLayer*); | 1322 void showLayerTree(const WebCore::RenderLayer*); |
| 1331 void showLayerTree(const WebCore::RenderObject*); | 1323 void showLayerTree(const WebCore::RenderObject*); |
| 1332 #endif | 1324 #endif |
| 1333 | 1325 |
| 1334 #endif // RenderLayer_h | 1326 #endif // RenderLayer_h |
| OLD | NEW |