| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/PaintInvalidationCapableScrollableArea.h" | 5 #include "core/paint/PaintInvalidationCapableScrollableArea.h" |
| 6 | 6 |
| 7 #include "core/frame/Settings.h" | 7 #include "core/frame/Settings.h" |
| 8 #include "core/html/HTMLFrameOwnerElement.h" | 8 #include "core/html/HTMLFrameOwnerElement.h" |
| 9 #include "core/layout/LayoutBox.h" | 9 #include "core/layout/LayoutBox.h" |
| 10 #include "core/layout/LayoutScrollbar.h" | 10 #include "core/layout/LayoutScrollbar.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 } | 124 } |
| 125 | 125 |
| 126 LayoutRect PaintInvalidationCapableScrollableArea::visualRectForScrollbarParts()
const | 126 LayoutRect PaintInvalidationCapableScrollableArea::visualRectForScrollbarParts()
const |
| 127 { | 127 { |
| 128 LayoutRect fullBounds(m_horizontalScrollbarPreviousPaintInvalidationRect); | 128 LayoutRect fullBounds(m_horizontalScrollbarPreviousPaintInvalidationRect); |
| 129 fullBounds.unite(m_verticalScrollbarPreviousPaintInvalidationRect); | 129 fullBounds.unite(m_verticalScrollbarPreviousPaintInvalidationRect); |
| 130 fullBounds.unite(m_scrollCornerAndResizerPreviousPaintInvalidationRect); | 130 fullBounds.unite(m_scrollCornerAndResizerPreviousPaintInvalidationRect); |
| 131 return fullBounds; | 131 return fullBounds; |
| 132 } | 132 } |
| 133 | 133 |
| 134 void PaintInvalidationCapableScrollableArea::scrollControlWasSetNeedsPaintInvali
dation() |
| 135 { |
| 136 boxForScrollControlPaintInvalidation().setMayNeedPaintInvalidation(); |
| 137 } |
| 138 |
| 134 } // namespace blink | 139 } // namespace blink |
| OLD | NEW |