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

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

Issue 331653004: Delete RenderLayer::updateLayerPositionsAfterDocumentScroll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | 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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 if (!hasViewportConstrainedObjects()) 1668 if (!hasViewportConstrainedObjects())
1669 return; 1669 return;
1670 1670
1671 RefPtr<FrameView> protect(this); 1671 RefPtr<FrameView> protect(this);
1672 1672
1673 // If there fixed position elements, scrolling may cause compositing layers to change. 1673 // If there fixed position elements, scrolling may cause compositing layers to change.
1674 // Update widget and layer positions after scrolling, but only if we're not inside of 1674 // Update widget and layer positions after scrolling, but only if we're not inside of
1675 // layout. 1675 // layout.
1676 if (!m_nestedLayoutCount) { 1676 if (!m_nestedLayoutCount) {
1677 updateWidgetPositions(); 1677 updateWidgetPositions();
1678 if (RenderView* renderView = this->renderView()) { 1678 if (RenderView* renderView = this->renderView())
1679 renderView->layer()->updateLayerPositionsAfterDocumentScroll();
1680 renderView->layer()->setNeedsCompositingInputsUpdate(); 1679 renderView->layer()->setNeedsCompositingInputsUpdate();
1681 }
1682 } 1680 }
1683 } 1681 }
1684 1682
1685 void FrameView::updateFixedElementPaintInvalidationRectsAfterScroll() 1683 void FrameView::updateFixedElementPaintInvalidationRectsAfterScroll()
1686 { 1684 {
1687 if (!hasViewportConstrainedObjects()) 1685 if (!hasViewportConstrainedObjects())
1688 return; 1686 return;
1689 1687
1690 // Update the paint invalidation rects for fixed elements after scrolling an d invalidation to reflect 1688 // Update the paint invalidation rects for fixed elements after scrolling an d invalidation to reflect
1691 // the new scroll position. 1689 // the new scroll position.
(...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after
3267 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3265 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3268 { 3266 {
3269 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3267 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3270 if (AXObjectCache* cache = axObjectCache()) { 3268 if (AXObjectCache* cache = axObjectCache()) {
3271 cache->remove(scrollbar); 3269 cache->remove(scrollbar);
3272 cache->handleScrollbarUpdate(this); 3270 cache->handleScrollbarUpdate(this);
3273 } 3271 }
3274 } 3272 }
3275 3273
3276 } // namespace WebCore 3274 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698