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

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: . 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 } 722 }
723 723
724 void FrameView::updateCompositingLayersAfterLayout() 724 void FrameView::updateCompositingLayersAfterLayout()
725 { 725 {
726 RenderView* renderView = this->renderView(); 726 RenderView* renderView = this->renderView();
727 if (!renderView) 727 if (!renderView)
728 return; 728 return;
729 729
730 // This call will make sure the cached hasAcceleratedCompositing is updated from the pref 730 // This call will make sure the cached hasAcceleratedCompositing is updated from the pref
731 renderView->compositor()->cacheAcceleratedCompositingFlags(); 731 renderView->compositor()->cacheAcceleratedCompositingFlags();
732 renderView->compositor()->updateCompositingRequirementsState();
732 renderView->compositor()->updateCompositingLayers(CompositingUpdateAfterLayo ut); 733 renderView->compositor()->updateCompositingLayers(CompositingUpdateAfterLayo ut);
733 } 734 }
734 735
735 bool FrameView::usesCompositedScrolling() const 736 bool FrameView::usesCompositedScrolling() const
736 { 737 {
737 RenderView* renderView = this->renderView(); 738 RenderView* renderView = this->renderView();
738 if (!renderView) 739 if (!renderView)
739 return false; 740 return false;
740 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames Enabled()) 741 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames Enabled())
741 return renderView->compositor()->inForcedCompositingMode(); 742 return renderView->compositor()->inForcedCompositingMode();
(...skipping 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after
3485 } 3486 }
3486 3487
3487 AXObjectCache* FrameView::axObjectCache() const 3488 AXObjectCache* FrameView::axObjectCache() const
3488 { 3489 {
3489 if (frame() && frame()->document()) 3490 if (frame() && frame()->document())
3490 return frame()->document()->existingAXObjectCache(); 3491 return frame()->document()->existingAXObjectCache();
3491 return 0; 3492 return 0;
3492 } 3493 }
3493 3494
3494 } // namespace WebCore 3495 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698