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/PaintLayerPainter.h" | 6 #include "core/paint/PaintLayerPainter.h" |
7 | 7 |
8 #include "core/frame/Settings.h" | 8 #include "core/frame/Settings.h" |
9 #include "core/layout/ClipPathOperation.h" | 9 #include "core/layout/ClipPathOperation.h" |
10 #include "core/layout/LayoutBlock.h" | 10 #include "core/layout/LayoutBlock.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 { | 106 { |
107 ASSERT(m_paintLayer.isSelfPaintingLayer() || m_paintLayer.hasSelfPaintingLay
erDescendant()); | 107 ASSERT(m_paintLayer.isSelfPaintingLayer() || m_paintLayer.hasSelfPaintingLay
erDescendant()); |
108 | 108 |
109 PaintLayerFlags localPaintFlags = paintFlags & ~(PaintLayerAppliedTransform)
; | 109 PaintLayerFlags localPaintFlags = paintFlags & ~(PaintLayerAppliedTransform)
; |
110 | 110 |
111 PaintResult result = FullyPainted; | 111 PaintResult result = FullyPainted; |
112 | 112 |
113 // Paint the reflection first if we have one. | 113 // Paint the reflection first if we have one. |
114 if (m_paintLayer.reflectionInfo()) { | 114 if (m_paintLayer.reflectionInfo()) { |
115 ScopeRecorder scopeRecorder(*context); | 115 ScopeRecorder scopeRecorder(*context); |
116 m_paintLayer.reflectionInfo()->paint(context, paintingInfo, localPaintFl
ags | PaintLayerPaintingReflection); | 116 m_paintLayer.reflectionInfo()->paint(context, paintingInfo, localPaintFl
ags); |
117 result = MaybeNotFullyPainted; | 117 result = MaybeNotFullyPainted; |
118 } | 118 } |
119 | 119 |
120 localPaintFlags |= PaintLayerPaintingCompositingAllPhases; | 120 localPaintFlags |= PaintLayerPaintingCompositingAllPhases; |
121 if (paintLayerContentsInternal(context, paintingInfo, localPaintFlags, fragm
entPolicy) == MaybeNotFullyPainted) | 121 if (paintLayerContentsInternal(context, paintingInfo, localPaintFlags, fragm
entPolicy) == MaybeNotFullyPainted) |
122 result = MaybeNotFullyPainted; | 122 result = MaybeNotFullyPainted; |
123 | 123 |
124 return result; | 124 return result; |
125 } | 125 } |
126 | 126 |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 if (!m_paintLayer.containsDirtyOverlayScrollbars()) | 694 if (!m_paintLayer.containsDirtyOverlayScrollbars()) |
695 return; | 695 return; |
696 | 696 |
697 PaintLayerPaintingInfo paintingInfo(&m_paintLayer, LayoutRect(enclosingIntRe
ct(damageRect)), paintFlags, LayoutSize(), paintingRoot); | 697 PaintLayerPaintingInfo paintingInfo(&m_paintLayer, LayoutRect(enclosingIntRe
ct(damageRect)), paintFlags, LayoutSize(), paintingRoot); |
698 paintLayer(context, paintingInfo, PaintLayerPaintingOverlayScrollbars); | 698 paintLayer(context, paintingInfo, PaintLayerPaintingOverlayScrollbars); |
699 | 699 |
700 m_paintLayer.setContainsDirtyOverlayScrollbars(false); | 700 m_paintLayer.setContainsDirtyOverlayScrollbars(false); |
701 } | 701 } |
702 | 702 |
703 } // namespace blink | 703 } // namespace blink |
OLD | NEW |