| 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 "core/paint/PaintLayerPainter.h" | 5 #include "core/paint/PaintLayerPainter.h" |
| 6 | 6 |
| 7 #include "core/frame/LocalFrame.h" | 7 #include "core/frame/LocalFrame.h" |
| 8 #include "core/layout/LayoutView.h" | 8 #include "core/layout/LayoutView.h" |
| 9 #include "core/paint/ClipPathClipper.h" | 9 #include "core/paint/ClipPathClipper.h" |
| 10 #include "core/paint/FilterPainter.h" | 10 #include "core/paint/FilterPainter.h" |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 | 806 |
| 807 PaintResult PaintLayerPainter::paintChildren( | 807 PaintResult PaintLayerPainter::paintChildren( |
| 808 unsigned childrenToVisit, | 808 unsigned childrenToVisit, |
| 809 GraphicsContext& context, | 809 GraphicsContext& context, |
| 810 const PaintLayerPaintingInfo& paintingInfo, | 810 const PaintLayerPaintingInfo& paintingInfo, |
| 811 PaintLayerFlags paintFlags) { | 811 PaintLayerFlags paintFlags) { |
| 812 PaintResult result = FullyPainted; | 812 PaintResult result = FullyPainted; |
| 813 if (!m_paintLayer.hasSelfPaintingLayerDescendant()) | 813 if (!m_paintLayer.hasSelfPaintingLayerDescendant()) |
| 814 return result; | 814 return result; |
| 815 | 815 |
| 816 #if ENABLE(ASSERT) | 816 #if DCHECK_IS_ON() |
| 817 LayerListMutationDetector mutationChecker(m_paintLayer.stackingNode()); | 817 LayerListMutationDetector mutationChecker(m_paintLayer.stackingNode()); |
| 818 #endif | 818 #endif |
| 819 | 819 |
| 820 PaintLayerStackingNodeIterator iterator(*m_paintLayer.stackingNode(), | 820 PaintLayerStackingNodeIterator iterator(*m_paintLayer.stackingNode(), |
| 821 childrenToVisit); | 821 childrenToVisit); |
| 822 PaintLayerStackingNode* child = iterator.next(); | 822 PaintLayerStackingNode* child = iterator.next(); |
| 823 if (!child) | 823 if (!child) |
| 824 return result; | 824 return result; |
| 825 | 825 |
| 826 IntSize scrollOffsetAccumulationForChildren = | 826 IntSize scrollOffsetAccumulationForChildren = |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 context, layoutObject, PaintPhaseClippingMask)) | 1178 context, layoutObject, PaintPhaseClippingMask)) |
| 1179 return; | 1179 return; |
| 1180 | 1180 |
| 1181 IntRect snappedClipRect = pixelSnappedIntRect(clipRect.rect()); | 1181 IntRect snappedClipRect = pixelSnappedIntRect(clipRect.rect()); |
| 1182 LayoutObjectDrawingRecorder drawingRecorder( | 1182 LayoutObjectDrawingRecorder drawingRecorder( |
| 1183 context, layoutObject, PaintPhaseClippingMask, snappedClipRect); | 1183 context, layoutObject, PaintPhaseClippingMask, snappedClipRect); |
| 1184 context.fillRect(snappedClipRect, Color::black); | 1184 context.fillRect(snappedClipRect, Color::black); |
| 1185 } | 1185 } |
| 1186 | 1186 |
| 1187 } // namespace blink | 1187 } // namespace blink |
| OLD | NEW |