| 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 505 |
| 506 for (const auto& scrollbar : scrollbars_) { | 506 for (const auto& scrollbar : scrollbars_) { |
| 507 if (uses_window_inactive_selector && scrollbar->IsCustomScrollbar()) | 507 if (uses_window_inactive_selector && scrollbar->IsCustomScrollbar()) |
| 508 scrollbar->StyleChanged(); | 508 scrollbar->StyleChanged(); |
| 509 } | 509 } |
| 510 | 510 |
| 511 if (uses_window_inactive_selector) | 511 if (uses_window_inactive_selector) |
| 512 RecalculateCustomScrollbarStyle(); | 512 RecalculateCustomScrollbarStyle(); |
| 513 } | 513 } |
| 514 | 514 |
| 515 void FrameView::Clear() { | |
| 516 Reset(); | |
| 517 SetScrollbarsSuppressed(true); | |
| 518 } | |
| 519 | |
| 520 bool FrameView::DidFirstLayout() const { | 515 bool FrameView::DidFirstLayout() const { |
| 521 return !first_layout_; | 516 return !first_layout_; |
| 522 } | 517 } |
| 523 | 518 |
| 524 void FrameView::InvalidateRect(const IntRect& rect) { | 519 void FrameView::InvalidateRect(const IntRect& rect) { |
| 525 LayoutPartItem layout_item = frame_->OwnerLayoutItem(); | 520 LayoutPartItem layout_item = frame_->OwnerLayoutItem(); |
| 526 if (layout_item.IsNull()) | 521 if (layout_item.IsNull()) |
| 527 return; | 522 return; |
| 528 | 523 |
| 529 IntRect paint_invalidation_rect = rect; | 524 IntRect paint_invalidation_rect = rect; |
| (...skipping 4869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5399 void FrameView::SetAnimationHost( | 5394 void FrameView::SetAnimationHost( |
| 5400 std::unique_ptr<CompositorAnimationHost> host) { | 5395 std::unique_ptr<CompositorAnimationHost> host) { |
| 5401 animation_host_ = std::move(host); | 5396 animation_host_ = std::move(host); |
| 5402 } | 5397 } |
| 5403 | 5398 |
| 5404 LayoutUnit FrameView::CaretWidth() const { | 5399 LayoutUnit FrameView::CaretWidth() const { |
| 5405 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); | 5400 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); |
| 5406 } | 5401 } |
| 5407 | 5402 |
| 5408 } // namespace blink | 5403 } // namespace blink |
| OLD | NEW |