| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 if (!m_frame->settings() || !m_frame->settings()->rootLayerScrolls()) | 1098 if (!m_frame->settings() || !m_frame->settings()->rootLayerScrolls()) |
| 1099 invalidatePaintOfScrollControlsIfNeeded(paintInvalidationState); | 1099 invalidatePaintOfScrollControlsIfNeeded(paintInvalidationState); |
| 1100 | 1100 |
| 1101 #if ENABLE(ASSERT) | 1101 #if ENABLE(ASSERT) |
| 1102 layoutView()->assertSubtreeClearedPaintInvalidationFlags(); | 1102 layoutView()->assertSubtreeClearedPaintInvalidationFlags(); |
| 1103 #endif | 1103 #endif |
| 1104 | 1104 |
| 1105 if (m_frame->selection().isCaretBoundsDirty()) | 1105 if (m_frame->selection().isCaretBoundsDirty()) |
| 1106 m_frame->selection().invalidateCaretRect(); | 1106 m_frame->selection().invalidateCaretRect(); |
| 1107 | 1107 |
| 1108 rootForPaintInvalidation.compositor()->finalizeInvalidations(); |
| 1109 |
| 1108 m_doFullPaintInvalidation = false; | 1110 m_doFullPaintInvalidation = false; |
| 1109 lifecycle().advanceTo(DocumentLifecycle::PaintInvalidationClean); | 1111 lifecycle().advanceTo(DocumentLifecycle::PaintInvalidationClean); |
| 1110 | 1112 |
| 1111 // Temporary callback for crbug.com/487345,402044 | 1113 // Temporary callback for crbug.com/487345,402044 |
| 1112 // TODO(ojan): Make this more general to be used by PositionObserver | 1114 // TODO(ojan): Make this more general to be used by PositionObserver |
| 1113 // and rAF throttling. | 1115 // and rAF throttling. |
| 1114 IntRect visibleRect = rootFrameToContents(computeVisibleArea()); | 1116 IntRect visibleRect = rootFrameToContents(computeVisibleArea()); |
| 1115 rootForPaintInvalidation.sendMediaPositionChangeNotifications(visibleRect); | 1117 rootForPaintInvalidation.sendMediaPositionChangeNotifications(visibleRect); |
| 1116 } | 1118 } |
| 1117 | 1119 |
| (...skipping 2988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4106 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot
tling); | 4108 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot
tling); |
| 4107 } | 4109 } |
| 4108 | 4110 |
| 4109 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const | 4111 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const |
| 4110 { | 4112 { |
| 4111 ASSERT(layoutView()); | 4113 ASSERT(layoutView()); |
| 4112 return *layoutView(); | 4114 return *layoutView(); |
| 4113 } | 4115 } |
| 4114 | 4116 |
| 4115 } // namespace blink | 4117 } // namespace blink |
| OLD | NEW |