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

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

Issue 2517653002: Convert a few more CFI blacklist entries into DISABLE_CFI_PERF attributes. (Closed)
Patch Set: Revert some of the changes which have a high risk of breaking things Created 4 years, 1 month 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
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 "core/page/PageAnimator.h" 5 #include "core/page/PageAnimator.h"
6 6
7 #include "core/animation/DocumentAnimations.h" 7 #include "core/animation/DocumentAnimations.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/page/ChromeClient.h" 10 #include "core/page/ChromeClient.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 SVGDocumentExtensions::serviceOnAnimationFrame(*document); 67 SVGDocumentExtensions::serviceOnAnimationFrame(*document);
68 } 68 }
69 // TODO(skyostil): This function should not run for documents without views. 69 // TODO(skyostil): This function should not run for documents without views.
70 DocumentLifecycle::DisallowThrottlingScope noThrottlingScope( 70 DocumentLifecycle::DisallowThrottlingScope noThrottlingScope(
71 document->lifecycle()); 71 document->lifecycle());
72 document->serviceScriptedAnimations(monotonicAnimationStartTime); 72 document->serviceScriptedAnimations(monotonicAnimationStartTime);
73 } 73 }
74 } 74 }
75 75
76 DISABLE_CFI_PERF
76 void PageAnimator::scheduleVisualUpdate(LocalFrame* frame) { 77 void PageAnimator::scheduleVisualUpdate(LocalFrame* frame) {
77 if (m_servicingAnimations || m_updatingLayoutAndStyleForPainting) 78 if (m_servicingAnimations || m_updatingLayoutAndStyleForPainting)
78 return; 79 return;
79 m_page->chromeClient().scheduleAnimation(frame->view()); 80 m_page->chromeClient().scheduleAnimation(frame->view());
80 } 81 }
81 82
82 void PageAnimator::updateAllLifecyclePhases(LocalFrame& rootFrame) { 83 void PageAnimator::updateAllLifecyclePhases(LocalFrame& rootFrame) {
83 FrameView* view = rootFrame.view(); 84 FrameView* view = rootFrame.view();
84 AutoReset<bool> servicing(&m_updatingLayoutAndStyleForPainting, true); 85 AutoReset<bool> servicing(&m_updatingLayoutAndStyleForPainting, true);
85 view->updateAllLifecyclePhases(); 86 view->updateAllLifecyclePhases();
86 } 87 }
87 88
88 } // namespace blink 89 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/FrameTree.cpp ('k') | third_party/WebKit/Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698