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

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

Issue 14741004: NOT FOR REVIEW - Update comp-scrolling state at a well defined point in the pipeline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 applyOverflowToViewport(rootRenderer, hMode, vMode); 703 applyOverflowToViewport(rootRenderer, hMode, vMode);
704 } 704 }
705 } 705 }
706 706
707 void FrameView::updateCompositingLayersAfterStyleChange() 707 void FrameView::updateCompositingLayersAfterStyleChange()
708 { 708 {
709 RenderView* renderView = this->renderView(); 709 RenderView* renderView = this->renderView();
710 if (!renderView) 710 if (!renderView)
711 return; 711 return;
712 712
713 renderView->compositor()->updateCompositingRequirementsState();
714
713 // If we expect to update compositing after an incipient layout, don't do so here. 715 // If we expect to update compositing after an incipient layout, don't do so here.
714 if (m_doingPreLayoutStyleUpdate || layoutPending() || renderView->needsLayou t()) 716 if (m_doingPreLayoutStyleUpdate || layoutPending() || renderView->needsLayou t())
715 return; 717 return;
716 718
717 // This call will make sure the cached hasAcceleratedCompositing is updated from the pref 719 // This call will make sure the cached hasAcceleratedCompositing is updated from the pref
718 renderView->compositor()->cacheAcceleratedCompositingFlags(); 720 renderView->compositor()->cacheAcceleratedCompositingFlags();
719 renderView->compositor()->updateCompositingLayers(CompositingUpdateAfterStyl eChange); 721 renderView->compositor()->updateCompositingLayers(CompositingUpdateAfterStyl eChange);
720 } 722 }
721 723
722 void FrameView::updateCompositingLayersAfterLayout() 724 void FrameView::updateCompositingLayersAfterLayout()
(...skipping 2815 matching lines...) Expand 10 before | Expand all | Expand 10 after
3538 } 3540 }
3539 3541
3540 AXObjectCache* FrameView::axObjectCache() const 3542 AXObjectCache* FrameView::axObjectCache() const
3541 { 3543 {
3542 if (frame() && frame()->document()) 3544 if (frame() && frame()->document())
3543 return frame()->document()->existingAXObjectCache(); 3545 return frame()->document()->existingAXObjectCache();
3544 return 0; 3546 return 0;
3545 } 3547 }
3546 3548
3547 } // namespace WebCore 3549 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698