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

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

Issue 566253005: Clean up all the ScriptedAnimationController logging. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/page/PageAnimator.h" 6 #include "core/page/PageAnimator.h"
7 7
8 #include "core/animation/DocumentAnimations.h" 8 #include "core/animation/DocumentAnimations.h"
9 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 17 matching lines...) Expand all
28 { 28 {
29 m_animationFramePending = false; 29 m_animationFramePending = false;
30 TemporaryChange<bool> servicing(m_servicingAnimations, true); 30 TemporaryChange<bool> servicing(m_servicingAnimations, true);
31 31
32 WillBeHeapVector<RefPtrWillBeMember<Document> > documents; 32 WillBeHeapVector<RefPtrWillBeMember<Document> > documents;
33 for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree().traver seNext()) { 33 for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree().traver seNext()) {
34 if (frame->isLocalFrame()) 34 if (frame->isLocalFrame())
35 documents.append(toLocalFrame(frame)->document()); 35 documents.append(toLocalFrame(frame)->document());
36 } 36 }
37 37
38 WTF_LOG(ScriptedAnimationController, "PageAnimator::serviceScriptedAnimation s: #documents = %d",
39 static_cast<int>(documents.size()));
40 for (size_t i = 0; i < documents.size(); ++i) { 38 for (size_t i = 0; i < documents.size(); ++i) {
41 if (documents[i]->frame()) { 39 if (documents[i]->frame()) {
42 documents[i]->view()->serviceScrollAnimations(monotonicAnimationStar tTime); 40 documents[i]->view()->serviceScrollAnimations(monotonicAnimationStar tTime);
43 41
44 if (const FrameView::ScrollableAreaSet* scrollableAreas = documents[ i]->view()->scrollableAreas()) { 42 if (const FrameView::ScrollableAreaSet* scrollableAreas = documents[ i]->view()->scrollableAreas()) {
45 for (FrameView::ScrollableAreaSet::iterator it = scrollableAreas ->begin(); it != scrollableAreas->end(); ++it) 43 for (FrameView::ScrollableAreaSet::iterator it = scrollableAreas ->begin(); it != scrollableAreas->end(); ++it)
46 (*it)->serviceScrollAnimations(monotonicAnimationStartTime); 44 (*it)->serviceScrollAnimations(monotonicAnimationStartTime);
47 } 45 }
48 } 46 }
49 } 47 }
(...skipping 28 matching lines...) Expand all
78 // setFrameRect(). This will be a quick operation for most frames, but the 76 // setFrameRect(). This will be a quick operation for most frames, but the
79 // NativeWindowWidgets will update a proper clipping region. 77 // NativeWindowWidgets will update a proper clipping region.
80 view->setFrameRect(view->frameRect()); 78 view->setFrameRect(view->frameRect());
81 79
82 // setFrameRect may have the side-effect of causing existing page layout to 80 // setFrameRect may have the side-effect of causing existing page layout to
83 // be invalidated, so layout needs to be called last. 81 // be invalidated, so layout needs to be called last.
84 view->updateLayoutAndStyleForPainting(); 82 view->updateLayoutAndStyleForPainting();
85 } 83 }
86 84
87 } 85 }
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptedAnimationController.cpp ('k') | Source/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698