Chromium Code Reviews| 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 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1661 if (root_layer_scrolling_enabled) { | 1661 if (root_layer_scrolling_enabled) { |
| 1662 layout_view.Layer()->SetNeedsCompositingInputsUpdate(); | 1662 layout_view.Layer()->SetNeedsCompositingInputsUpdate(); |
| 1663 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) | 1663 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) |
| 1664 SetNeedsPaintPropertyUpdate(); | 1664 SetNeedsPaintPropertyUpdate(); |
| 1665 } else { | 1665 } else { |
| 1666 layout_view.Compositor()->FrameViewDidChangeSize(); | 1666 layout_view.Compositor()->FrameViewDidChangeSize(); |
| 1667 } | 1667 } |
| 1668 } | 1668 } |
| 1669 } | 1669 } |
| 1670 | 1670 |
| 1671 // TODO(skobes): For reasons not fully understood, showing scrollbars from | |
| 1672 // main on viewport size changes regresses memory and perf tests on Android | |
|
aelias_OOO_until_Jul13
2017/04/25 21:05:08
Hmm, since you traced it to viewport sized changes
| |
| 1673 // (crbug.com/706927, crbug.com/712453). | |
| 1674 #if !OS(ANDROID) | |
|
aelias_OOO_until_Jul13
2017/04/25 21:05:08
I really don't like OS(ANDROID), among other thing
| |
| 1671 ShowOverlayScrollbars(); | 1675 ShowOverlayScrollbars(); |
| 1676 #endif | |
| 1672 | 1677 |
| 1673 if (root_layer_scrolling_enabled) { | 1678 if (root_layer_scrolling_enabled) { |
| 1674 // The background must be repainted when the FrameView is resized, even if | 1679 // The background must be repainted when the FrameView is resized, even if |
| 1675 // the initial containing block does not change (so we can't rely on layout | 1680 // the initial containing block does not change (so we can't rely on layout |
| 1676 // to issue the invalidation). This is because the background fills the | 1681 // to issue the invalidation). This is because the background fills the |
| 1677 // main GraphicsLayer, which takes the size of the layout viewport. | 1682 // main GraphicsLayer, which takes the size of the layout viewport. |
| 1678 // TODO(skobes): Paint non-fixed backgrounds into the scrolling contents | 1683 // TODO(skobes): Paint non-fixed backgrounds into the scrolling contents |
| 1679 // layer and avoid this invalidation (http://crbug.com/568847). | 1684 // layer and avoid this invalidation (http://crbug.com/568847). |
| 1680 LayoutViewItem lvi = GetLayoutViewItem(); | 1685 LayoutViewItem lvi = GetLayoutViewItem(); |
| 1681 if (!lvi.IsNull()) | 1686 if (!lvi.IsNull()) |
| (...skipping 3694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5376 void FrameView::SetAnimationHost( | 5381 void FrameView::SetAnimationHost( |
| 5377 std::unique_ptr<CompositorAnimationHost> host) { | 5382 std::unique_ptr<CompositorAnimationHost> host) { |
| 5378 animation_host_ = std::move(host); | 5383 animation_host_ = std::move(host); |
| 5379 } | 5384 } |
| 5380 | 5385 |
| 5381 LayoutUnit FrameView::CaretWidth() const { | 5386 LayoutUnit FrameView::CaretWidth() const { |
| 5382 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); | 5387 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); |
| 5383 } | 5388 } |
| 5384 | 5389 |
| 5385 } // namespace blink | 5390 } // namespace blink |
| OLD | NEW |