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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp

Issue 2732643003: DevTools: remove PerformanceMonitor::HandlerCall, migrate to the new scoped probes. (Closed)
Patch Set: Introduce progress monitor 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorPageAgent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
index 131280681fb2e638b9a3b7eaaa8a5e978a1bc149..7e8ff692461710a32e692cea7ed9d75c46c1a40e 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -710,26 +710,34 @@ void InspectorPageAgent::didRunJavaScriptDialog(bool result) {
frontend()->flush();
}
-void InspectorPageAgent::didUpdateLayout() {
- if (m_enabled && m_client)
- m_client->pageLayoutInvalidated(false);
-}
-
void InspectorPageAgent::didResizeMainFrame() {
if (!m_inspectedFrames->root()->isMainFrame())
return;
#if !OS(ANDROID)
- if (m_enabled && m_client)
- m_client->pageLayoutInvalidated(true);
+ pageLayoutInvalidated(true);
#endif
frontend()->frameResized();
}
+void InspectorPageAgent::didChangeViewport() {
+ pageLayoutInvalidated(false);
+}
+
+void InspectorPageAgent::will(const probe::UpdateLayout&) {}
+
+void InspectorPageAgent::did(const probe::UpdateLayout&) {
+ pageLayoutInvalidated(false);
+}
+
void InspectorPageAgent::will(const probe::RecalculateStyle&) {}
void InspectorPageAgent::did(const probe::RecalculateStyle&) {
+ pageLayoutInvalidated(false);
+}
+
+void InspectorPageAgent::pageLayoutInvalidated(bool resized) {
if (m_enabled && m_client)
- m_client->pageLayoutInvalidated(false);
+ m_client->pageLayoutInvalidated(resized);
}
void InspectorPageAgent::windowCreated(LocalFrame* created) {
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorPageAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698