| 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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 | 548 |
| 549 for (const auto& scrollbar : scrollbars_) { | 549 for (const auto& scrollbar : scrollbars_) { |
| 550 if (uses_window_inactive_selector && scrollbar->IsCustomScrollbar()) | 550 if (uses_window_inactive_selector && scrollbar->IsCustomScrollbar()) |
| 551 scrollbar->StyleChanged(); | 551 scrollbar->StyleChanged(); |
| 552 } | 552 } |
| 553 | 553 |
| 554 if (uses_window_inactive_selector) | 554 if (uses_window_inactive_selector) |
| 555 RecalculateCustomScrollbarStyle(); | 555 RecalculateCustomScrollbarStyle(); |
| 556 } | 556 } |
| 557 | 557 |
| 558 void FrameView::Clear() { | |
| 559 Reset(); | |
| 560 SetScrollbarsSuppressed(true); | |
| 561 } | |
| 562 | |
| 563 bool FrameView::DidFirstLayout() const { | 558 bool FrameView::DidFirstLayout() const { |
| 564 return !first_layout_; | 559 return !first_layout_; |
| 565 } | 560 } |
| 566 | 561 |
| 567 void FrameView::InvalidateRect(const IntRect& rect) { | 562 void FrameView::InvalidateRect(const IntRect& rect) { |
| 568 LayoutPartItem layout_item = frame_->OwnerLayoutItem(); | 563 LayoutPartItem layout_item = frame_->OwnerLayoutItem(); |
| 569 if (layout_item.IsNull()) | 564 if (layout_item.IsNull()) |
| 570 return; | 565 return; |
| 571 | 566 |
| 572 IntRect paint_invalidation_rect = rect; | 567 IntRect paint_invalidation_rect = rect; |
| (...skipping 4795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5368 void FrameView::SetAnimationHost( | 5363 void FrameView::SetAnimationHost( |
| 5369 std::unique_ptr<CompositorAnimationHost> host) { | 5364 std::unique_ptr<CompositorAnimationHost> host) { |
| 5370 animation_host_ = std::move(host); | 5365 animation_host_ = std::move(host); |
| 5371 } | 5366 } |
| 5372 | 5367 |
| 5373 LayoutUnit FrameView::CaretWidth() const { | 5368 LayoutUnit FrameView::CaretWidth() const { |
| 5374 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); | 5369 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); |
| 5375 } | 5370 } |
| 5376 | 5371 |
| 5377 } // namespace blink | 5372 } // namespace blink |
| OLD | NEW |