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 3031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3042 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() || | 3042 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() || |
3043 lifecycle().state() >= DocumentLifecycle::CompositingClean); | 3043 lifecycle().state() >= DocumentLifecycle::CompositingClean); |
3044 | 3044 |
3045 m_frame->host()->globalRootScrollerController().didUpdateCompositing(); | 3045 m_frame->host()->globalRootScrollerController().didUpdateCompositing(); |
3046 | 3046 |
3047 if (targetState >= DocumentLifecycle::PrePaintClean) { | 3047 if (targetState >= DocumentLifecycle::PrePaintClean) { |
3048 if (!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) | 3048 if (!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) |
3049 invalidateTreeIfNeededRecursive(); | 3049 invalidateTreeIfNeededRecursive(); |
3050 | 3050 |
3051 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { | 3051 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
3052 if (view.compositor()->inCompositingMode()) | 3052 if (view.compositor()->inCompositingMode() && isSelfVisible()) |
3053 scrollingCoordinator()->updateAfterCompositingChangeIfNeeded(); | 3053 scrollingCoordinator()->updateAfterCompositingChangeIfNeeded(); |
3054 } | 3054 } |
3055 | 3055 |
3056 if (LocalFrame* localFrame = m_frame->localFrameRoot()) { | 3056 if (LocalFrame* localFrame = m_frame->localFrameRoot()) { |
3057 // This is needed since, at present, the ScrollingCoordinator doesn't | 3057 // This is needed since, at present, the ScrollingCoordinator doesn't |
3058 // send rects for oopif sub-frames. | 3058 // send rects for oopif sub-frames. |
3059 // TODO(wjmaclean): Remove this pathway when ScrollingCoordinator | 3059 // TODO(wjmaclean): Remove this pathway when ScrollingCoordinator |
3060 // operates on a per-frame basis. https://crbug.com/680606 | 3060 // operates on a per-frame basis. https://crbug.com/680606 |
3061 frame().page()->chromeClient().updateTouchRectsForSubframeIfNecessary( | 3061 frame().page()->chromeClient().updateTouchRectsForSubframeIfNecessary( |
3062 localFrame); | 3062 localFrame); |
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5215 void FrameView::setAnimationHost( | 5215 void FrameView::setAnimationHost( |
5216 std::unique_ptr<CompositorAnimationHost> host) { | 5216 std::unique_ptr<CompositorAnimationHost> host) { |
5217 m_animationHost = std::move(host); | 5217 m_animationHost = std::move(host); |
5218 } | 5218 } |
5219 | 5219 |
5220 LayoutUnit FrameView::caretWidth() const { | 5220 LayoutUnit FrameView::caretWidth() const { |
5221 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); | 5221 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); |
5222 } | 5222 } |
5223 | 5223 |
5224 } // namespace blink | 5224 } // namespace blink |
OLD | NEW |