| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 } | 502 } |
| 503 | 503 |
| 504 PassRefPtrWillBeRawPtr<Scrollbar> FrameView::createScrollbar(ScrollbarOrientatio
n orientation) | 504 PassRefPtrWillBeRawPtr<Scrollbar> FrameView::createScrollbar(ScrollbarOrientatio
n orientation) |
| 505 { | 505 { |
| 506 Element* customScrollbarElement = nullptr; | 506 Element* customScrollbarElement = nullptr; |
| 507 LocalFrame* customScrollbarFrame = nullptr; | 507 LocalFrame* customScrollbarFrame = nullptr; |
| 508 if (shouldUseCustomScrollbars(customScrollbarElement, customScrollbarFrame)) | 508 if (shouldUseCustomScrollbars(customScrollbarElement, customScrollbarFrame)) |
| 509 return LayoutScrollbar::createCustomScrollbar(this, orientation, customS
crollbarElement, customScrollbarFrame); | 509 return LayoutScrollbar::createCustomScrollbar(this, orientation, customS
crollbarElement, customScrollbarFrame); |
| 510 | 510 |
| 511 // Nobody set a custom style, so we just use a native scrollbar. | 511 // Nobody set a custom style, so we just use a native scrollbar. |
| 512 return Scrollbar::create(this, orientation, RegularScrollbar); | 512 return Scrollbar::create(this, orientation, RegularScrollbar, &frame().page(
)->chromeClient()); |
| 513 } | 513 } |
| 514 | 514 |
| 515 void FrameView::setContentsSize(const IntSize& size) | 515 void FrameView::setContentsSize(const IntSize& size) |
| 516 { | 516 { |
| 517 if (size == contentsSize()) | 517 if (size == contentsSize()) |
| 518 return; | 518 return; |
| 519 | 519 |
| 520 m_contentsSize = size; | 520 m_contentsSize = size; |
| 521 updateScrollbars(scrollOffsetDouble()); | 521 updateScrollbars(scrollOffsetDouble()); |
| 522 ScrollableArea::contentsResized(); | 522 ScrollableArea::contentsResized(); |
| (...skipping 3501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4024 return m_hiddenForThrottling && m_crossOriginForThrottling; | 4024 return m_hiddenForThrottling && m_crossOriginForThrottling; |
| 4025 } | 4025 } |
| 4026 | 4026 |
| 4027 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const | 4027 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const |
| 4028 { | 4028 { |
| 4029 ASSERT(layoutView()); | 4029 ASSERT(layoutView()); |
| 4030 return *layoutView(); | 4030 return *layoutView(); |
| 4031 } | 4031 } |
| 4032 | 4032 |
| 4033 } // namespace blink | 4033 } // namespace blink |
| OLD | NEW |