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

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

Issue 2541513004: Ensure scrollToFragmentAnchor called before restoreScrollPositionAndViewState. (Closed)
Patch Set: add scrollToFragmentAnchor back to performPostLayoutTasks 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 | « content/test/data/navigation_controller/reload-with-url-anchor.html ('k') | 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 updateScrollbars(); 636 updateScrollbars();
637 ScrollableArea::contentsResized(); 637 ScrollableArea::contentsResized();
638 638
639 Page* page = frame().page(); 639 Page* page = frame().page();
640 if (!page) 640 if (!page)
641 return; 641 return;
642 642
643 updateParentScrollableAreaSet(); 643 updateParentScrollableAreaSet();
644 644
645 page->chromeClient().contentsSizeChanged(m_frame.get(), size); 645 page->chromeClient().contentsSizeChanged(m_frame.get(), size);
646
647 // Ensure the scrollToFragmentAnchor is called before
648 // restoreScrollPositionAndViewState when reload
649 scrollToFragmentAnchor();
646 frame().loader().restoreScrollPositionAndViewState(); 650 frame().loader().restoreScrollPositionAndViewState();
647 } 651 }
648 652
649 void FrameView::adjustViewSize() { 653 void FrameView::adjustViewSize() {
650 if (m_suppressAdjustViewSize) 654 if (m_suppressAdjustViewSize)
651 return; 655 return;
652 656
653 LayoutViewItem layoutViewItem = this->layoutViewItem(); 657 LayoutViewItem layoutViewItem = this->layoutViewItem();
654 if (layoutViewItem.isNull()) 658 if (layoutViewItem.isNull())
655 return; 659 return;
(...skipping 3995 matching lines...) Expand 10 before | Expand all | Expand 10 after
4651 DCHECK(m_frame->isMainFrame()); 4655 DCHECK(m_frame->isMainFrame());
4652 return m_initialViewportSize.width(); 4656 return m_initialViewportSize.width();
4653 } 4657 }
4654 4658
4655 int FrameView::initialViewportHeight() const { 4659 int FrameView::initialViewportHeight() const {
4656 DCHECK(m_frame->isMainFrame()); 4660 DCHECK(m_frame->isMainFrame());
4657 return m_initialViewportSize.height(); 4661 return m_initialViewportSize.height();
4658 } 4662 }
4659 4663
4660 } // namespace blink 4664 } // namespace blink
OLDNEW
« no previous file with comments | « content/test/data/navigation_controller/reload-with-url-anchor.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698