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

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: updating expectations. Created 7 years, 6 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 } 701 }
702 702
703 void FrameView::updateCompositingLayersAfterLayout() 703 void FrameView::updateCompositingLayersAfterLayout()
704 { 704 {
705 RenderView* renderView = this->renderView(); 705 RenderView* renderView = this->renderView();
706 if (!renderView) 706 if (!renderView)
707 return; 707 return;
708 708
709 // This call will make sure the cached hasAcceleratedCompositing is updated from the pref 709 // This call will make sure the cached hasAcceleratedCompositing is updated from the pref
710 renderView->compositor()->cacheAcceleratedCompositingFlags(); 710 renderView->compositor()->cacheAcceleratedCompositingFlags();
711 renderView->compositor()->updateCompositingRequirementsState();
711 renderView->compositor()->updateCompositingLayers(CompositingUpdateAfterLayo ut); 712 renderView->compositor()->updateCompositingLayers(CompositingUpdateAfterLayo ut);
712 } 713 }
713 714
714 bool FrameView::usesCompositedScrolling() const 715 bool FrameView::usesCompositedScrolling() const
715 { 716 {
716 RenderView* renderView = this->renderView(); 717 RenderView* renderView = this->renderView();
717 if (!renderView) 718 if (!renderView)
718 return false; 719 return false;
719 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames Enabled()) 720 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames Enabled())
720 return renderView->compositor()->inForcedCompositingMode(); 721 return renderView->compositor()->inForcedCompositingMode();
(...skipping 2686 matching lines...) Expand 10 before | Expand all | Expand 10 after
3407 } 3408 }
3408 3409
3409 AXObjectCache* FrameView::axObjectCache() const 3410 AXObjectCache* FrameView::axObjectCache() const
3410 { 3411 {
3411 if (frame() && frame()->document()) 3412 if (frame() && frame()->document())
3412 return frame()->document()->existingAXObjectCache(); 3413 return frame()->document()->existingAXObjectCache();
3413 return 0; 3414 return 0;
3414 } 3415 }
3415 3416
3416 } // namespace WebCore 3417 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698