| 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 4460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4471 ? m_horizontalScrollbarMode | 4471 ? m_horizontalScrollbarMode |
| 4472 : m_verticalScrollbarMode; | 4472 : m_verticalScrollbarMode; |
| 4473 | 4473 |
| 4474 return mode == ScrollbarAuto || mode == ScrollbarAlwaysOn; | 4474 return mode == ScrollbarAuto || mode == ScrollbarAlwaysOn; |
| 4475 } | 4475 } |
| 4476 | 4476 |
| 4477 bool FrameView::shouldPlaceVerticalScrollbarOnLeft() const { | 4477 bool FrameView::shouldPlaceVerticalScrollbarOnLeft() const { |
| 4478 return false; | 4478 return false; |
| 4479 } | 4479 } |
| 4480 | 4480 |
| 4481 FrameViewBase* FrameView::getWidget() { | 4481 FrameViewBase* FrameView::getFrameViewBase() { |
| 4482 return this; | 4482 return this; |
| 4483 } | 4483 } |
| 4484 | 4484 |
| 4485 LayoutRect FrameView::scrollIntoView(const LayoutRect& rectInContent, | 4485 LayoutRect FrameView::scrollIntoView(const LayoutRect& rectInContent, |
| 4486 const ScrollAlignment& alignX, | 4486 const ScrollAlignment& alignX, |
| 4487 const ScrollAlignment& alignY, | 4487 const ScrollAlignment& alignY, |
| 4488 ScrollType scrollType) { | 4488 ScrollType scrollType) { |
| 4489 LayoutRect viewRect(visibleContentRect()); | 4489 LayoutRect viewRect(visibleContentRect()); |
| 4490 LayoutRect exposeRect = | 4490 LayoutRect exposeRect = |
| 4491 ScrollAlignment::getRectToExpose(viewRect, rectInContent, alignX, alignY); | 4491 ScrollAlignment::getRectToExpose(viewRect, rectInContent, alignX, alignY); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4587 framePoint.x() < verticalScrollbarXMax && | 4587 framePoint.x() < verticalScrollbarXMax && |
| 4588 framePoint.y() > verticalScrollbarYMin; | 4588 framePoint.y() > verticalScrollbarYMin; |
| 4589 } | 4589 } |
| 4590 | 4590 |
| 4591 bool FrameView::scrollbarCornerPresent() const { | 4591 bool FrameView::scrollbarCornerPresent() const { |
| 4592 return (horizontalScrollbar() && | 4592 return (horizontalScrollbar() && |
| 4593 width() - horizontalScrollbar()->width() > 0) || | 4593 width() - horizontalScrollbar()->width() > 0) || |
| 4594 (verticalScrollbar() && height() - verticalScrollbar()->height() > 0); | 4594 (verticalScrollbar() && height() - verticalScrollbar()->height() > 0); |
| 4595 } | 4595 } |
| 4596 | 4596 |
| 4597 IntRect FrameView::convertFromScrollbarToContainingWidget( | 4597 IntRect FrameView::convertFromScrollbarToContainingFrameViewBase( |
| 4598 const Scrollbar& scrollbar, | 4598 const Scrollbar& scrollbar, |
| 4599 const IntRect& localRect) const { | 4599 const IntRect& localRect) const { |
| 4600 // Scrollbars won't be transformed within us | 4600 // Scrollbars won't be transformed within us |
| 4601 IntRect newRect = localRect; | 4601 IntRect newRect = localRect; |
| 4602 newRect.moveBy(scrollbar.location()); | 4602 newRect.moveBy(scrollbar.location()); |
| 4603 return newRect; | 4603 return newRect; |
| 4604 } | 4604 } |
| 4605 | 4605 |
| 4606 IntRect FrameView::convertFromContainingWidgetToScrollbar( | 4606 IntRect FrameView::convertFromContainingFrameViewBaseToScrollbar( |
| 4607 const Scrollbar& scrollbar, | 4607 const Scrollbar& scrollbar, |
| 4608 const IntRect& parentRect) const { | 4608 const IntRect& parentRect) const { |
| 4609 IntRect newRect = parentRect; | 4609 IntRect newRect = parentRect; |
| 4610 // Scrollbars won't be transformed within us | 4610 // Scrollbars won't be transformed within us |
| 4611 newRect.moveBy(-scrollbar.location()); | 4611 newRect.moveBy(-scrollbar.location()); |
| 4612 return newRect; | 4612 return newRect; |
| 4613 } | 4613 } |
| 4614 | 4614 |
| 4615 // FIXME: test these on windows | 4615 // FIXME: test these on windows |
| 4616 IntPoint FrameView::convertFromScrollbarToContainingWidget( | 4616 IntPoint FrameView::convertFromScrollbarToContainingFrameViewBase( |
| 4617 const Scrollbar& scrollbar, | 4617 const Scrollbar& scrollbar, |
| 4618 const IntPoint& localPoint) const { | 4618 const IntPoint& localPoint) const { |
| 4619 // Scrollbars won't be transformed within us | 4619 // Scrollbars won't be transformed within us |
| 4620 IntPoint newPoint = localPoint; | 4620 IntPoint newPoint = localPoint; |
| 4621 newPoint.moveBy(scrollbar.location()); | 4621 newPoint.moveBy(scrollbar.location()); |
| 4622 return newPoint; | 4622 return newPoint; |
| 4623 } | 4623 } |
| 4624 | 4624 |
| 4625 IntPoint FrameView::convertFromContainingWidgetToScrollbar( | 4625 IntPoint FrameView::convertFromContainingFrameViewBaseToScrollbar( |
| 4626 const Scrollbar& scrollbar, | 4626 const Scrollbar& scrollbar, |
| 4627 const IntPoint& parentPoint) const { | 4627 const IntPoint& parentPoint) const { |
| 4628 IntPoint newPoint = parentPoint; | 4628 IntPoint newPoint = parentPoint; |
| 4629 // Scrollbars won't be transformed within us | 4629 // Scrollbars won't be transformed within us |
| 4630 newPoint.moveBy(-scrollbar.location()); | 4630 newPoint.moveBy(-scrollbar.location()); |
| 4631 return newPoint; | 4631 return newPoint; |
| 4632 } | 4632 } |
| 4633 | 4633 |
| 4634 static void setNeedsCompositingUpdate(LayoutViewItem layoutViewItem, | 4634 static void setNeedsCompositingUpdate(LayoutViewItem layoutViewItem, |
| 4635 CompositingUpdateType updateType) { | 4635 CompositingUpdateType updateType) { |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5250 void FrameView::setAnimationHost( | 5250 void FrameView::setAnimationHost( |
| 5251 std::unique_ptr<CompositorAnimationHost> host) { | 5251 std::unique_ptr<CompositorAnimationHost> host) { |
| 5252 m_animationHost = std::move(host); | 5252 m_animationHost = std::move(host); |
| 5253 } | 5253 } |
| 5254 | 5254 |
| 5255 LayoutUnit FrameView::caretWidth() const { | 5255 LayoutUnit FrameView::caretWidth() const { |
| 5256 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); | 5256 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); |
| 5257 } | 5257 } |
| 5258 | 5258 |
| 5259 } // namespace blink | 5259 } // namespace blink |
| OLD | NEW |