| 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 } | 629 } |
| 630 | 630 |
| 631 void FrameView::setContentsSize(const IntSize& size) { | 631 void FrameView::setContentsSize(const IntSize& size) { |
| 632 if (size == contentsSize()) | 632 if (size == contentsSize()) |
| 633 return; | 633 return; |
| 634 | 634 |
| 635 m_contentsSize = size; | 635 m_contentsSize = size; |
| 636 updateScrollbars(); | 636 updateScrollbars(); |
| 637 ScrollableArea::contentsResized(); | 637 ScrollableArea::contentsResized(); |
| 638 | 638 |
| 639 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && |
| 640 !RuntimeEnabledFeatures::rootLayerScrollingEnabled()) |
| 641 setNeedsPaintPropertyUpdate(); |
| 642 |
| 639 Page* page = frame().page(); | 643 Page* page = frame().page(); |
| 640 if (!page) | 644 if (!page) |
| 641 return; | 645 return; |
| 642 | 646 |
| 643 updateParentScrollableAreaSet(); | 647 updateParentScrollableAreaSet(); |
| 644 | 648 |
| 645 page->chromeClient().contentsSizeChanged(m_frame.get(), size); | 649 page->chromeClient().contentsSizeChanged(m_frame.get(), size); |
| 646 frame().loader().restoreScrollPositionAndViewState(); | 650 frame().loader().restoreScrollPositionAndViewState(); |
| 647 } | 651 } |
| 648 | 652 |
| (...skipping 4003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4652 DCHECK(m_frame->isMainFrame()); | 4656 DCHECK(m_frame->isMainFrame()); |
| 4653 return m_initialViewportSize.width(); | 4657 return m_initialViewportSize.width(); |
| 4654 } | 4658 } |
| 4655 | 4659 |
| 4656 int FrameView::initialViewportHeight() const { | 4660 int FrameView::initialViewportHeight() const { |
| 4657 DCHECK(m_frame->isMainFrame()); | 4661 DCHECK(m_frame->isMainFrame()); |
| 4658 return m_initialViewportSize.height(); | 4662 return m_initialViewportSize.height(); |
| 4659 } | 4663 } |
| 4660 | 4664 |
| 4661 } // namespace blink | 4665 } // namespace blink |
| OLD | NEW |