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 3716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3727 | 3727 |
3728 void FrameView::SetInitialTracksPaintInvalidationsForTesting( | 3728 void FrameView::SetInitialTracksPaintInvalidationsForTesting( |
3729 bool track_paint_invalidations) { | 3729 bool track_paint_invalidations) { |
3730 g_initial_track_all_paint_invalidations = track_paint_invalidations; | 3730 g_initial_track_all_paint_invalidations = track_paint_invalidations; |
3731 } | 3731 } |
3732 | 3732 |
3733 void FrameView::SetTracksPaintInvalidations(bool track_paint_invalidations) { | 3733 void FrameView::SetTracksPaintInvalidations(bool track_paint_invalidations) { |
3734 if (track_paint_invalidations == IsTrackingPaintInvalidations()) | 3734 if (track_paint_invalidations == IsTrackingPaintInvalidations()) |
3735 return; | 3735 return; |
3736 | 3736 |
| 3737 // Ensure the document is up-to-date before tracking invalidations. |
| 3738 UpdateAllLifecyclePhases(); |
| 3739 |
3737 for (Frame* frame = &frame_->Tree().Top(); frame; | 3740 for (Frame* frame = &frame_->Tree().Top(); frame; |
3738 frame = frame->Tree().TraverseNext()) { | 3741 frame = frame->Tree().TraverseNext()) { |
3739 if (!frame->IsLocalFrame()) | 3742 if (!frame->IsLocalFrame()) |
3740 continue; | 3743 continue; |
3741 if (LayoutViewItem layout_view = ToLocalFrame(frame)->ContentLayoutItem()) { | 3744 if (LayoutViewItem layout_view = ToLocalFrame(frame)->ContentLayoutItem()) { |
3742 layout_view.GetFrameView()->tracked_object_paint_invalidations_ = | 3745 layout_view.GetFrameView()->tracked_object_paint_invalidations_ = |
3743 WTF::WrapUnique(track_paint_invalidations | 3746 WTF::WrapUnique(track_paint_invalidations |
3744 ? new Vector<ObjectPaintInvalidation> | 3747 ? new Vector<ObjectPaintInvalidation> |
3745 : nullptr); | 3748 : nullptr); |
3746 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { | 3749 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
(...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5390 void FrameView::SetAnimationHost( | 5393 void FrameView::SetAnimationHost( |
5391 std::unique_ptr<CompositorAnimationHost> host) { | 5394 std::unique_ptr<CompositorAnimationHost> host) { |
5392 animation_host_ = std::move(host); | 5395 animation_host_ = std::move(host); |
5393 } | 5396 } |
5394 | 5397 |
5395 LayoutUnit FrameView::CaretWidth() const { | 5398 LayoutUnit FrameView::CaretWidth() const { |
5396 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); | 5399 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); |
5397 } | 5400 } |
5398 | 5401 |
5399 } // namespace blink | 5402 } // namespace blink |
OLD | NEW |