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

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

Issue 14863002: Only update composited-scrolling state once after layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Optimized. 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 } 721 }
722 722
723 void FrameView::updateCompositingLayersAfterLayout() 723 void FrameView::updateCompositingLayersAfterLayout()
724 { 724 {
725 RenderView* renderView = this->renderView(); 725 RenderView* renderView = this->renderView();
726 if (!renderView) 726 if (!renderView)
727 return; 727 return;
728 728
729 // This call will make sure the cached hasAcceleratedCompositing is updated from the pref 729 // This call will make sure the cached hasAcceleratedCompositing is updated from the pref
730 renderView->compositor()->cacheAcceleratedCompositingFlags(); 730 renderView->compositor()->cacheAcceleratedCompositingFlags();
731 renderView->compositor()->updateCompositingRequirementsState();
731 renderView->compositor()->updateCompositingLayers(CompositingUpdateAfterLayo ut); 732 renderView->compositor()->updateCompositingLayers(CompositingUpdateAfterLayo ut);
732 } 733 }
733 734
734 bool FrameView::usesCompositedScrolling() const 735 bool FrameView::usesCompositedScrolling() const
735 { 736 {
736 RenderView* renderView = this->renderView(); 737 RenderView* renderView = this->renderView();
737 if (!renderView) 738 if (!renderView)
738 return false; 739 return false;
739 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames Enabled()) 740 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames Enabled())
740 return renderView->compositor()->inForcedCompositingMode(); 741 return renderView->compositor()->inForcedCompositingMode();
(...skipping 2733 matching lines...) Expand 10 before | Expand all | Expand 10 after
3474 } 3475 }
3475 3476
3476 AXObjectCache* FrameView::axObjectCache() const 3477 AXObjectCache* FrameView::axObjectCache() const
3477 { 3478 {
3478 if (frame() && frame()->document()) 3479 if (frame() && frame()->document())
3479 return frame()->document()->existingAXObjectCache(); 3480 return frame()->document()->existingAXObjectCache();
3480 return 0; 3481 return 0;
3481 } 3482 }
3482 3483
3483 } // namespace WebCore 3484 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698