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 3783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3794 // Scrollbars won't be transformed within us | 3794 // Scrollbars won't be transformed within us |
3795 newPoint.moveBy(-scrollbar.location()); | 3795 newPoint.moveBy(-scrollbar.location()); |
3796 return newPoint; | 3796 return newPoint; |
3797 } | 3797 } |
3798 | 3798 |
3799 void FrameView::setParentVisible(bool visible) | 3799 void FrameView::setParentVisible(bool visible) |
3800 { | 3800 { |
3801 if (isParentVisible() == visible) | 3801 if (isParentVisible() == visible) |
3802 return; | 3802 return; |
3803 | 3803 |
| 3804 // As parent visibility changes, we may need to recomposite this frame view
and potentially child frame views. |
| 3805 if (PaintLayerCompositor* compositor = layoutView() ? layoutView()->composit
or() : nullptr) |
| 3806 compositor->setNeedsCompositingUpdate(CompositingUpdateRebuildTree); |
| 3807 |
3804 Widget::setParentVisible(visible); | 3808 Widget::setParentVisible(visible); |
3805 | 3809 |
3806 if (!isSelfVisible()) | 3810 if (!isSelfVisible()) |
3807 return; | 3811 return; |
3808 | 3812 |
3809 for (const auto& child : m_children) | 3813 for (const auto& child : m_children) |
3810 child->setParentVisible(visible); | 3814 child->setParentVisible(visible); |
3811 } | 3815 } |
3812 | 3816 |
3813 void FrameView::show() | 3817 void FrameView::show() |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4050 return m_hiddenForThrottling && m_crossOriginForThrottling; | 4054 return m_hiddenForThrottling && m_crossOriginForThrottling; |
4051 } | 4055 } |
4052 | 4056 |
4053 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const | 4057 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const |
4054 { | 4058 { |
4055 ASSERT(layoutView()); | 4059 ASSERT(layoutView()); |
4056 return *layoutView(); | 4060 return *layoutView(); |
4057 } | 4061 } |
4058 | 4062 |
4059 } // namespace blink | 4063 } // namespace blink |
OLD | NEW |