OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 | 602 |
603 if (paintBehavior & PaintBehaviorFlattenCompositingLayers) { | 603 if (paintBehavior & PaintBehaviorFlattenCompositingLayers) { |
604 TransformationMatrix matrix = *m_transform; | 604 TransformationMatrix matrix = *m_transform; |
605 makeMatrixRenderable(matrix, false /* flatten 3d */); | 605 makeMatrixRenderable(matrix, false /* flatten 3d */); |
606 return matrix; | 606 return matrix; |
607 } | 607 } |
608 | 608 |
609 return *m_transform; | 609 return *m_transform; |
610 } | 610 } |
611 | 611 |
| 612 RenderLayer* RenderLayer::enclosingOverflowClipLayer(bool includeSelf) const |
| 613 { |
| 614 const RenderLayer* layer = includeSelf ? this : parent(); |
| 615 while (layer) { |
| 616 if (layer->renderer()->hasOverflowClip()) |
| 617 return const_cast<RenderLayer*>(layer); |
| 618 |
| 619 layer = layer->parent(); |
| 620 } |
| 621 return 0; |
| 622 } |
| 623 |
612 static bool checkContainingBlockChainForPagination(RenderLayerModelObject* rende
rer, RenderBox* ancestorColumnsRenderer) | 624 static bool checkContainingBlockChainForPagination(RenderLayerModelObject* rende
rer, RenderBox* ancestorColumnsRenderer) |
613 { | 625 { |
614 RenderView* view = renderer->view(); | 626 RenderView* view = renderer->view(); |
615 RenderLayerModelObject* prevBlock = renderer; | 627 RenderLayerModelObject* prevBlock = renderer; |
616 RenderBlock* containingBlock; | 628 RenderBlock* containingBlock; |
617 for (containingBlock = renderer->containingBlock(); | 629 for (containingBlock = renderer->containingBlock(); |
618 containingBlock && containingBlock != view && containingBlock != ancest
orColumnsRenderer; | 630 containingBlock && containingBlock != view && containingBlock != ancest
orColumnsRenderer; |
619 containingBlock = containingBlock->containingBlock()) | 631 containingBlock = containingBlock->containingBlock()) |
620 prevBlock = containingBlock; | 632 prevBlock = containingBlock; |
621 | 633 |
(...skipping 3538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4160 } | 4172 } |
4161 } | 4173 } |
4162 | 4174 |
4163 void showLayerTree(const WebCore::RenderObject* renderer) | 4175 void showLayerTree(const WebCore::RenderObject* renderer) |
4164 { | 4176 { |
4165 if (!renderer) | 4177 if (!renderer) |
4166 return; | 4178 return; |
4167 showLayerTree(renderer->enclosingLayer()); | 4179 showLayerTree(renderer->enclosingLayer()); |
4168 } | 4180 } |
4169 #endif | 4181 #endif |
OLD | NEW |