OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "core/paint/LayerPainter.h" | 6 #include "core/paint/LayerPainter.h" |
7 | 7 |
8 #include "core/frame/Settings.h" | 8 #include "core/frame/Settings.h" |
9 #include "core/page/Page.h" | 9 #include "core/page/Page.h" |
10 #include "core/rendering/ClipPathOperation.h" | 10 #include "core/rendering/ClipPathOperation.h" |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 // Now do a paint with the root layer shifted to be the next mul
ticol block. | 653 // Now do a paint with the root layer shifted to be the next mul
ticol block. |
654 LayerPaintingInfo columnPaintingInfo(paintingInfo); | 654 LayerPaintingInfo columnPaintingInfo(paintingInfo); |
655 columnPaintingInfo.rootLayer = columnLayers[colIndex - 1]; | 655 columnPaintingInfo.rootLayer = columnLayers[colIndex - 1]; |
656 columnPaintingInfo.paintDirtyRect = transform.inverse().mapRect(
localDirtyRect); | 656 columnPaintingInfo.paintDirtyRect = transform.inverse().mapRect(
localDirtyRect); |
657 paintChildLayerIntoColumns(childLayer, context, columnPaintingIn
fo, paintFlags, columnLayers, colIndex - 1); | 657 paintChildLayerIntoColumns(childLayer, context, columnPaintingIn
fo, paintFlags, columnLayers, colIndex - 1); |
658 } | 658 } |
659 } | 659 } |
660 | 660 |
661 // Move to the next position. | 661 // Move to the next position. |
662 LayoutUnit blockDelta = isHorizontal ? colRect.height() : colRect.width(
); | 662 LayoutUnit blockDelta = isHorizontal ? colRect.height() : colRect.width(
); |
663 if (columnBlock->style()->isFlippedBlocksWritingMode()) | 663 if (columnBlock->style()->slowIsFlippedBlocksWritingMode()) |
664 currLogicalTopOffset += blockDelta; | 664 currLogicalTopOffset += blockDelta; |
665 else | 665 else |
666 currLogicalTopOffset -= blockDelta; | 666 currLogicalTopOffset -= blockDelta; |
667 } | 667 } |
668 } | 668 } |
669 | 669 |
670 void LayerPainter::paintBackgroundForFragments(const LayerFragments& layerFragme
nts, GraphicsContext* context, | 670 void LayerPainter::paintBackgroundForFragments(const LayerFragments& layerFragme
nts, GraphicsContext* context, |
671 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, const L
ayerPaintingInfo& localPaintingInfo, PaintBehavior paintBehavior, | 671 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, const L
ayerPaintingInfo& localPaintingInfo, PaintBehavior paintBehavior, |
672 RenderObject* paintingRootForRenderer, PaintLayerFlags paintFlags) | 672 RenderObject* paintingRootForRenderer, PaintLayerFlags paintFlags) |
673 { | 673 { |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 if (needsToClip(paintingInfo, clipRect)) { | 876 if (needsToClip(paintingInfo, clipRect)) { |
877 clipRecorder = adoptPtr(new ClipRecorder(m_renderLayer.parent(), con
text, ClipDisplayItem::LayerFragmentParent, clipRect)); | 877 clipRecorder = adoptPtr(new ClipRecorder(m_renderLayer.parent(), con
text, ClipDisplayItem::LayerFragmentParent, clipRect)); |
878 LayerPainter(*m_renderLayer.parent()).applyRoundedRectClips(painting
Info, context, clipRect, paintFlags, *clipRecorder, DoNotIncludeSelfForBorderRad
ius); // Child clipping mask painting will handle clipping to self. | 878 LayerPainter(*m_renderLayer.parent()).applyRoundedRectClips(painting
Info, context, clipRect, paintFlags, *clipRecorder, DoNotIncludeSelfForBorderRad
ius); // Child clipping mask painting will handle clipping to self. |
879 } | 879 } |
880 | 880 |
881 paintLayerByApplyingTransform(context, paintingInfo, paintFlags, fragmen
t.paginationOffset); | 881 paintLayerByApplyingTransform(context, paintingInfo, paintFlags, fragmen
t.paginationOffset); |
882 } | 882 } |
883 } | 883 } |
884 | 884 |
885 } // namespace blink | 885 } // namespace blink |
OLD | NEW |