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

Side by Side Diff: third_party/WebKit/Source/core/paint/FramePainter.cpp

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 years, 9 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
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/paint/FramePainter.h" 5 #include "core/paint/FramePainter.h"
6 6
7 #include "core/editing/markers/DocumentMarkerController.h" 7 #include "core/editing/markers/DocumentMarkerController.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/inspector/InspectorInstrumentation.h" 9 #include "core/inspector/InspectorInstrumentation.h"
10 #include "core/inspector/InspectorTraceEvents.h" 10 #include "core/inspector/InspectorTraceEvents.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 if (document->annotatedRegionsDirty()) 184 if (document->annotatedRegionsDirty())
185 frameView().updateDocumentAnnotatedRegions(); 185 frameView().updateDocumentAnnotatedRegions();
186 186
187 if (isTopLevelPainter) { 187 if (isTopLevelPainter) {
188 // Everything that happens after paintContents completions is considered 188 // Everything that happens after paintContents completions is considered
189 // to be part of the next frame. 189 // to be part of the next frame.
190 memoryCache()->updateFramePaintTimestamp(); 190 memoryCache()->updateFramePaintTimestamp();
191 s_inPaintContents = false; 191 s_inPaintContents = false;
192 } 192 }
193 193
194 InspectorInstrumentation::didPaint(layoutView->frame(), 0, context, 194 probe::didPaint(layoutView->frame(), 0, context, LayoutRect(rect));
195 LayoutRect(rect));
196 } 195 }
197 196
198 void FramePainter::paintScrollbars(GraphicsContext& context, 197 void FramePainter::paintScrollbars(GraphicsContext& context,
199 const IntRect& rect) { 198 const IntRect& rect) {
200 if (frameView().horizontalScrollbar() && 199 if (frameView().horizontalScrollbar() &&
201 !frameView().layerForHorizontalScrollbar()) 200 !frameView().layerForHorizontalScrollbar())
202 paintScrollbar(context, *frameView().horizontalScrollbar(), rect); 201 paintScrollbar(context, *frameView().horizontalScrollbar(), rect);
203 if (frameView().verticalScrollbar() && 202 if (frameView().verticalScrollbar() &&
204 !frameView().layerForVerticalScrollbar()) 203 !frameView().layerForVerticalScrollbar())
205 paintScrollbar(context, *frameView().verticalScrollbar(), rect); 204 paintScrollbar(context, *frameView().verticalScrollbar(), rect);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 245
247 bar.paint(context, CullRect(rect)); 246 bar.paint(context, CullRect(rect));
248 } 247 }
249 248
250 const FrameView& FramePainter::frameView() { 249 const FrameView& FramePainter::frameView() {
251 DCHECK(m_frameView); 250 DCHECK(m_frameView);
252 return *m_frameView; 251 return *m_frameView;
253 } 252 }
254 253
255 } // namespace blink 254 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/CreateWindow.cpp ('k') | third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698