Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2545093002: setNeedsPaintPropertyUpdate on FrameView contents size change (Closed)
Patch Set: guard Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698