| 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/BoxPainter.h" | 5 #include "core/paint/BoxPainter.h" |
| 6 | 6 |
| 7 #include "core/HTMLNames.h" | 7 #include "core/HTMLNames.h" |
| 8 #include "core/frame/Settings.h" | 8 #include "core/frame/Settings.h" |
| 9 #include "core/html/HTMLFrameOwnerElement.h" | 9 #include "core/html/HTMLFrameOwnerElement.h" |
| 10 #include "core/layout/ImageQualityController.h" | 10 #include "core/layout/ImageQualityController.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // Disable cache in under-invalidation checking mode for MediaSliderPart | 111 // Disable cache in under-invalidation checking mode for MediaSliderPart |
| 112 // because we always paint using the latest data (buffered ranges, current | 112 // because we always paint using the latest data (buffered ranges, current |
| 113 // time and duration) which may be different from the cached data. | 113 // time and duration) which may be different from the cached data. |
| 114 if ((RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() && | 114 if ((RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() && |
| 115 style.Appearance() == kMediaSliderPart) | 115 style.Appearance() == kMediaSliderPart) |
| 116 // We may paint a delayed-invalidation object before it's actually | 116 // We may paint a delayed-invalidation object before it's actually |
| 117 // invalidated. Note this would be handled for us by | 117 // invalidated. Note this would be handled for us by |
| 118 // LayoutObjectDrawingRecorder but we have to use DrawingRecorder as we | 118 // LayoutObjectDrawingRecorder but we have to use DrawingRecorder as we |
| 119 // may use the scrolling contents layer as DisplayItemClient below. | 119 // may use the scrolling contents layer as DisplayItemClient below. |
| 120 || layout_box_.FullPaintInvalidationReason() == | 120 || layout_box_.FullPaintInvalidationReason() == |
| 121 kPaintInvalidationDelayedFull) { | 121 PaintInvalidationReason::kDelayedFull) { |
| 122 cache_skipper.emplace(paint_info.context); | 122 cache_skipper.emplace(paint_info.context); |
| 123 } | 123 } |
| 124 | 124 |
| 125 const DisplayItemClient& display_item_client = | 125 const DisplayItemClient& display_item_client = |
| 126 painting_overflow_contents ? static_cast<const DisplayItemClient&>( | 126 painting_overflow_contents ? static_cast<const DisplayItemClient&>( |
| 127 *layout_box_.Layer() | 127 *layout_box_.Layer() |
| 128 ->GetCompositedLayerMapping() | 128 ->GetCompositedLayerMapping() |
| 129 ->ScrollingContentsLayer()) | 129 ->ScrollingContentsLayer()) |
| 130 : layout_box_; | 130 : layout_box_; |
| 131 if (DrawingRecorder::UseCachedDrawingIfPossible( | 131 if (DrawingRecorder::UseCachedDrawingIfPossible( |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 if (PaintNinePieceImage(obj, info.context, rect, style, style.BorderImage())) | 867 if (PaintNinePieceImage(obj, info.context, rect, style, style.BorderImage())) |
| 868 return; | 868 return; |
| 869 | 869 |
| 870 const BoxBorderPainter border_painter(rect, style, bleed_avoidance, | 870 const BoxBorderPainter border_painter(rect, style, bleed_avoidance, |
| 871 include_logical_left_edge, | 871 include_logical_left_edge, |
| 872 include_logical_right_edge); | 872 include_logical_right_edge); |
| 873 border_painter.PaintBorder(info, rect); | 873 border_painter.PaintBorder(info, rect); |
| 874 } | 874 } |
| 875 | 875 |
| 876 } // namespace blink | 876 } // namespace blink |
| OLD | NEW |