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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 void updateLayerPositionsAfterOverflowScroll(); | 464 void updateLayerPositionsAfterOverflowScroll(); |
465 void updateLayerPositionsAfterDocumentScroll(); | 465 void updateLayerPositionsAfterDocumentScroll(); |
466 | 466 |
467 void positionNewlyCreatedOverflowControls(); | 467 void positionNewlyCreatedOverflowControls(); |
468 | 468 |
469 bool isPaginated() const { return m_isPaginated; } | 469 bool isPaginated() const { return m_isPaginated; } |
470 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination
Layer; } | 470 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination
Layer; } |
471 | 471 |
472 void updateTransform(); | 472 void updateTransform(); |
473 | 473 |
474 #if ENABLE(CSS_COMPOSITING) | |
475 void updateBlendMode(); | 474 void updateBlendMode(); |
476 #endif | |
477 | 475 |
478 const LayoutSize& paintOffset() const { return m_paintOffset; } | 476 const LayoutSize& paintOffset() const { return m_paintOffset; } |
479 | 477 |
480 void clearClipRectsIncludingDescendants(ClipRectsType typeToClear = AllClipR
ectTypes); | 478 void clearClipRectsIncludingDescendants(ClipRectsType typeToClear = AllClipR
ectTypes); |
481 void clearClipRects(ClipRectsType typeToClear = AllClipRectTypes); | 479 void clearClipRects(ClipRectsType typeToClear = AllClipRectTypes); |
482 | 480 |
483 void addBlockSelectionGapsBounds(const LayoutRect&); | 481 void addBlockSelectionGapsBounds(const LayoutRect&); |
484 void clearBlockSelectionGapsBounds(); | 482 void clearBlockSelectionGapsBounds(); |
485 void repaintBlockSelectionGaps(); | 483 void repaintBlockSelectionGaps(); |
486 | 484 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 bool preserves3D() const { return renderer()->style()->transformStyle3D() ==
TransformStyle3DPreserve3D; } | 725 bool preserves3D() const { return renderer()->style()->transformStyle3D() ==
TransformStyle3DPreserve3D; } |
728 bool has3DTransform() const { return m_transform && !m_transform->isAffine()
; } | 726 bool has3DTransform() const { return m_transform && !m_transform->isAffine()
; } |
729 | 727 |
730 #if ENABLE(CSS_FILTERS) | 728 #if ENABLE(CSS_FILTERS) |
731 virtual void filterNeedsRepaint(); | 729 virtual void filterNeedsRepaint(); |
732 bool hasFilter() const { return renderer()->hasFilter(); } | 730 bool hasFilter() const { return renderer()->hasFilter(); } |
733 #else | 731 #else |
734 bool hasFilter() const { return false; } | 732 bool hasFilter() const { return false; } |
735 #endif | 733 #endif |
736 | 734 |
737 #if ENABLE(CSS_COMPOSITING) | |
738 bool hasBlendMode() const { return renderer()->hasBlendMode(); } | 735 bool hasBlendMode() const { return renderer()->hasBlendMode(); } |
739 #else | |
740 bool hasBlendMode() const { return false; } | |
741 #endif | |
742 | 736 |
743 // Overloaded new operator. Derived classes must override operator new | 737 // Overloaded new operator. Derived classes must override operator new |
744 // in order to allocate out of the RenderArena. | 738 // in order to allocate out of the RenderArena. |
745 void* operator new(size_t, RenderArena*); | 739 void* operator new(size_t, RenderArena*); |
746 | 740 |
747 // Overridden to prevent the normal delete from being called. | 741 // Overridden to prevent the normal delete from being called. |
748 void operator delete(void*, size_t); | 742 void operator delete(void*, size_t); |
749 | 743 |
750 bool isComposited() const { return m_backing != 0; } | 744 bool isComposited() const { return m_backing != 0; } |
751 bool hasCompositedMask() const; | 745 bool hasCompositedMask() const; |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #if ENABLE(CSS_FILTERS) | 1180 #if ENABLE(CSS_FILTERS) |
1187 bool m_hasFilterInfo : 1; | 1181 bool m_hasFilterInfo : 1; |
1188 #endif | 1182 #endif |
1189 | 1183 |
1190 #if ENABLE(CSS_COMPOSITING) | |
1191 BlendMode m_blendMode; | 1184 BlendMode m_blendMode; |
1192 #endif | |
1193 | 1185 |
1194 RenderLayerModelObject* m_renderer; | 1186 RenderLayerModelObject* m_renderer; |
1195 | 1187 |
1196 RenderLayer* m_parent; | 1188 RenderLayer* m_parent; |
1197 RenderLayer* m_previous; | 1189 RenderLayer* m_previous; |
1198 RenderLayer* m_next; | 1190 RenderLayer* m_next; |
1199 RenderLayer* m_first; | 1191 RenderLayer* m_first; |
1200 RenderLayer* m_last; | 1192 RenderLayer* m_last; |
1201 | 1193 |
1202 LayoutRect m_repaintRect; // Cached repaint rects. Used by layout. | 1194 LayoutRect m_repaintRect; // Cached repaint rects. Used by layout. |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 | 1298 |
1307 } // namespace WebCore | 1299 } // namespace WebCore |
1308 | 1300 |
1309 #ifndef NDEBUG | 1301 #ifndef NDEBUG |
1310 // Outside the WebCore namespace for ease of invocation from gdb. | 1302 // Outside the WebCore namespace for ease of invocation from gdb. |
1311 void showLayerTree(const WebCore::RenderLayer*); | 1303 void showLayerTree(const WebCore::RenderLayer*); |
1312 void showLayerTree(const WebCore::RenderObject*); | 1304 void showLayerTree(const WebCore::RenderObject*); |
1313 #endif | 1305 #endif |
1314 | 1306 |
1315 #endif // RenderLayer_h | 1307 #endif // RenderLayer_h |
OLD | NEW |