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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 | 550 |
551 LayoutViewItem FrameView::layoutViewItem() const { | 551 LayoutViewItem FrameView::layoutViewItem() const { |
552 return LayoutViewItem(frame().contentLayoutObject()); | 552 return LayoutViewItem(frame().contentLayoutObject()); |
553 } | 553 } |
554 | 554 |
555 ScrollingCoordinator* FrameView::scrollingCoordinator() const { | 555 ScrollingCoordinator* FrameView::scrollingCoordinator() const { |
556 Page* p = page(); | 556 Page* p = page(); |
557 return p ? p->scrollingCoordinator() : 0; | 557 return p ? p->scrollingCoordinator() : 0; |
558 } | 558 } |
559 | 559 |
| 560 CompositorAnimationHost* FrameView::compositorAnimationHost() const { |
| 561 ScrollingCoordinator* c = scrollingCoordinator(); |
| 562 return c ? c->compositorAnimationHost() : nullptr; |
| 563 } |
| 564 |
560 CompositorAnimationTimeline* FrameView::compositorAnimationTimeline() const { | 565 CompositorAnimationTimeline* FrameView::compositorAnimationTimeline() const { |
561 ScrollingCoordinator* c = scrollingCoordinator(); | 566 ScrollingCoordinator* c = scrollingCoordinator(); |
562 return c ? c->compositorAnimationTimeline() : nullptr; | 567 return c ? c->compositorAnimationTimeline() : nullptr; |
563 } | 568 } |
564 | 569 |
565 LayoutBox* FrameView::layoutBox() const { | 570 LayoutBox* FrameView::layoutBox() const { |
566 return layoutView(); | 571 return layoutView(); |
567 } | 572 } |
568 | 573 |
569 FloatQuad FrameView::localToVisibleContentQuad( | 574 FloatQuad FrameView::localToVisibleContentQuad( |
(...skipping 4123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4693 DCHECK(m_frame->isMainFrame()); | 4698 DCHECK(m_frame->isMainFrame()); |
4694 return m_initialViewportSize.width(); | 4699 return m_initialViewportSize.width(); |
4695 } | 4700 } |
4696 | 4701 |
4697 int FrameView::initialViewportHeight() const { | 4702 int FrameView::initialViewportHeight() const { |
4698 DCHECK(m_frame->isMainFrame()); | 4703 DCHECK(m_frame->isMainFrame()); |
4699 return m_initialViewportSize.height(); | 4704 return m_initialViewportSize.height(); |
4700 } | 4705 } |
4701 | 4706 |
4702 } // namespace blink | 4707 } // namespace blink |
OLD | NEW |