| 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/PartPainter.h" | 5 #include "core/paint/PartPainter.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutPart.h" | 7 #include "core/layout/LayoutPart.h" |
| 8 #include "core/paint/BoxPainter.h" | 8 #include "core/paint/BoxPainter.h" |
| 9 #include "core/paint/LayoutObjectDrawingRecorder.h" | 9 #include "core/paint/LayoutObjectDrawingRecorder.h" |
| 10 #include "core/paint/ObjectPainter.h" |
| 10 #include "core/paint/PaintInfo.h" | 11 #include "core/paint/PaintInfo.h" |
| 11 #include "core/paint/PaintLayer.h" | 12 #include "core/paint/PaintLayer.h" |
| 12 #include "core/paint/ReplacedPainter.h" | 13 #include "core/paint/ReplacedPainter.h" |
| 13 #include "core/paint/RoundedInnerRectClipper.h" | 14 #include "core/paint/RoundedInnerRectClipper.h" |
| 14 #include "core/paint/ScrollableAreaPainter.h" | 15 #include "core/paint/ScrollableAreaPainter.h" |
| 15 #include "core/paint/TransformRecorder.h" | 16 #include "core/paint/TransformRecorder.h" |
| 16 #include "wtf/Optional.h" | 17 #include "wtf/Optional.h" |
| 17 | 18 |
| 18 namespace blink { | 19 namespace blink { |
| 19 | 20 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // When painting widgets into compositing layers, tx and ty are relative to
the enclosing compositing layer, | 112 // When painting widgets into compositing layers, tx and ty are relative to
the enclosing compositing layer, |
| 112 // not the root. In this case, shift the CTM and adjust the CullRect to be r
oot-relative to fix plugin drawing. | 113 // not the root. In this case, shift the CTM and adjust the CullRect to be r
oot-relative to fix plugin drawing. |
| 113 TransformRecorder transform(paintInfo.context, m_layoutPart, | 114 TransformRecorder transform(paintInfo.context, m_layoutPart, |
| 114 AffineTransform::translation(widgetPaintOffset.width(), widgetPaintOffse
t.height())); | 115 AffineTransform::translation(widgetPaintOffset.width(), widgetPaintOffse
t.height())); |
| 115 | 116 |
| 116 CullRect adjustedCullRect(paintInfo.cullRect(), -widgetPaintOffset); | 117 CullRect adjustedCullRect(paintInfo.cullRect(), -widgetPaintOffset); |
| 117 widget->paint(paintInfo.context, adjustedCullRect); | 118 widget->paint(paintInfo.context, adjustedCullRect); |
| 118 } | 119 } |
| 119 | 120 |
| 120 } // namespace blink | 121 } // namespace blink |
| OLD | NEW |