| 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 2968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2979 DCHECK(scroller->scrollAnchor()); | 2979 DCHECK(scroller->scrollAnchor()); |
| 2980 scroller->scrollAnchor()->adjust(); | 2980 scroller->scrollAnchor()->adjust(); |
| 2981 } | 2981 } |
| 2982 } | 2982 } |
| 2983 m_anchoringAdjustmentQueue.clear(); | 2983 m_anchoringAdjustmentQueue.clear(); |
| 2984 } | 2984 } |
| 2985 | 2985 |
| 2986 void FrameView::prePaint() { | 2986 void FrameView::prePaint() { |
| 2987 TRACE_EVENT0("blink", "FrameView::prePaint"); | 2987 TRACE_EVENT0("blink", "FrameView::prePaint"); |
| 2988 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PrePaint.UpdateTime"); | 2988 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PrePaint.UpdateTime"); |
| 2989 TRACE_EVENT1("devtools.timeline", "PreparePaint", "data", |
| 2990 InspectorPreparePaintEvent::data(m_frame.get())); |
| 2989 | 2991 |
| 2990 if (!m_paintController) | 2992 if (!m_paintController) |
| 2991 m_paintController = PaintController::create(); | 2993 m_paintController = PaintController::create(); |
| 2992 | 2994 |
| 2993 forAllNonThrottledFrameViews([](FrameView& frameView) { | 2995 forAllNonThrottledFrameViews([](FrameView& frameView) { |
| 2994 frameView.lifecycle().advanceTo(DocumentLifecycle::InPrePaint); | 2996 frameView.lifecycle().advanceTo(DocumentLifecycle::InPrePaint); |
| 2995 }); | 2997 }); |
| 2996 | 2998 |
| 2997 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) | 2999 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) |
| 2998 PrePaintTreeWalk().walk(*this); | 3000 PrePaintTreeWalk().walk(*this); |
| (...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4902 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount; | 4904 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount; |
| 4903 ++reason) { | 4905 ++reason) { |
| 4904 if (m_mainThreadScrollingReasonsCounter[reason] > 0) { | 4906 if (m_mainThreadScrollingReasonsCounter[reason] > 0) { |
| 4905 reasons |= 1 << reason; | 4907 reasons |= 1 << reason; |
| 4906 } | 4908 } |
| 4907 } | 4909 } |
| 4908 return reasons; | 4910 return reasons; |
| 4909 } | 4911 } |
| 4910 | 4912 |
| 4911 } // namespace blink | 4913 } // namespace blink |
| OLD | NEW |