| 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 2877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2888 } | 2888 } |
| 2889 | 2889 |
| 2890 void FrameView::setTracksPaintInvalidations(bool trackPaintInvalidations) | 2890 void FrameView::setTracksPaintInvalidations(bool trackPaintInvalidations) |
| 2891 { | 2891 { |
| 2892 if (trackPaintInvalidations == m_isTrackingPaintInvalidations) | 2892 if (trackPaintInvalidations == m_isTrackingPaintInvalidations) |
| 2893 return; | 2893 return; |
| 2894 | 2894 |
| 2895 for (Frame* frame = m_frame->tree().top(); frame; frame = frame->tree().trav
erseNext()) { | 2895 for (Frame* frame = m_frame->tree().top(); frame; frame = frame->tree().trav
erseNext()) { |
| 2896 if (!frame->isLocalFrame()) | 2896 if (!frame->isLocalFrame()) |
| 2897 continue; | 2897 continue; |
| 2898 if (LayoutViewItem layoutView = LayoutViewItem(toLocalFrame(frame)->cont
entLayoutObject())) | 2898 if (LayoutViewItem layoutView = toLocalFrame(frame)->contentLayoutItem()
) |
| 2899 layoutView.compositor()->setTracksPaintInvalidations(trackPaintInval
idations); | 2899 layoutView.compositor()->setTracksPaintInvalidations(trackPaintInval
idations); |
| 2900 } | 2900 } |
| 2901 | 2901 |
| 2902 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"), | 2902 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"), |
| 2903 "FrameView::setTracksPaintInvalidations", TRACE_EVENT_SCOPE_GLOBAL, "ena
bled", trackPaintInvalidations); | 2903 "FrameView::setTracksPaintInvalidations", TRACE_EVENT_SCOPE_GLOBAL, "ena
bled", trackPaintInvalidations); |
| 2904 | 2904 |
| 2905 resetTrackedPaintInvalidations(); | 2905 resetTrackedPaintInvalidations(); |
| 2906 m_isTrackingPaintInvalidations = trackPaintInvalidations; | 2906 m_isTrackingPaintInvalidations = trackPaintInvalidations; |
| 2907 } | 2907 } |
| 2908 | 2908 |
| (...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4092 return m_hiddenForThrottling && m_crossOriginForThrottling; | 4092 return m_hiddenForThrottling && m_crossOriginForThrottling; |
| 4093 } | 4093 } |
| 4094 | 4094 |
| 4095 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const | 4095 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const |
| 4096 { | 4096 { |
| 4097 ASSERT(layoutView()); | 4097 ASSERT(layoutView()); |
| 4098 return *layoutView(); | 4098 return *layoutView(); |
| 4099 } | 4099 } |
| 4100 | 4100 |
| 4101 } // namespace blink | 4101 } // namespace blink |
| OLD | NEW |