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

Side by Side Diff: sky/engine/core/frame/FrameView.cpp

Issue 875283003: Make all callers of scheduleAnimation() use scheduleVisualUpdate(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/frame/FrameView.h ('k') | sky/engine/core/page/AutoscrollController.cpp » ('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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void FrameView::recalcOverflowAfterStyleChange() 180 void FrameView::recalcOverflowAfterStyleChange()
181 { 181 {
182 RenderView* renderView = this->renderView(); 182 RenderView* renderView = this->renderView();
183 RELEASE_ASSERT(renderView); 183 RELEASE_ASSERT(renderView);
184 if (!renderView->needsOverflowRecalcAfterStyleChange()) 184 if (!renderView->needsOverflowRecalcAfterStyleChange())
185 return; 185 return;
186 186
187 renderView->recalcOverflowAfterStyleChange(); 187 renderView->recalcOverflowAfterStyleChange();
188 } 188 }
189 189
190 bool FrameView::scheduleAnimation()
191 {
192 if (HostWindow* window = hostWindow()) {
193 window->scheduleAnimation();
194 return true;
195 }
196 return false;
197 }
198
199 bool FrameView::isEnclosedInCompositingLayer() const 190 bool FrameView::isEnclosedInCompositingLayer() const
200 { 191 {
201 return false; 192 return false;
202 } 193 }
203 194
204 RenderObject* FrameView::layoutRoot(bool onlyDuringLayout) const 195 RenderObject* FrameView::layoutRoot(bool onlyDuringLayout) const
205 { 196 {
206 return onlyDuringLayout && layoutPending() ? 0 : m_layoutSubtreeRoot; 197 return onlyDuringLayout && layoutPending() ? 0 : m_layoutSubtreeRoot;
207 } 198 }
208 199
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 totalObjects = 0; 880 totalObjects = 0;
890 881
891 for (RenderObject* o = root; o; o = o->nextInPreOrder(root)) { 882 for (RenderObject* o = root; o; o = o->nextInPreOrder(root)) {
892 ++totalObjects; 883 ++totalObjects;
893 if (o->needsLayout()) 884 if (o->needsLayout())
894 ++needsLayoutObjects; 885 ++needsLayoutObjects;
895 } 886 }
896 } 887 }
897 888
898 } // namespace blink 889 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.h ('k') | sky/engine/core/page/AutoscrollController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698