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

Unified Diff: third_party/WebKit/Source/web/InspectorOverlayAgent.cpp

Issue 2859273002: [DevTools] Do not talk to inspector overlay from outside (Closed)
Patch Set: Created 3 years, 7 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
Index: third_party/WebKit/Source/web/InspectorOverlayAgent.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlayAgent.cpp b/third_party/WebKit/Source/web/InspectorOverlayAgent.cpp
index af9fa696ce84e8e71db639210744ecb0f8d5af32..ab47f9c9eb195df5a3096dbdf3450768c977f32c 100644
--- a/third_party/WebKit/Source/web/InspectorOverlayAgent.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlayAgent.cpp
@@ -510,6 +510,18 @@ void InspectorOverlayAgent::Invalidate() {
page_overlay_->Update();
}
+void InspectorOverlayAgent::PaintOverlay() {
+ UpdateAllLifecyclePhases();
+ // TODO(chrishtr): integrate paint into the overlay's lifecycle.
+ if (page_overlay_ && page_overlay_->GetGraphicsLayer())
+ page_overlay_->GetGraphicsLayer()->Paint(nullptr);
+}
+
+void InspectorOverlayAgent::LayoutOverlay() {
+ if (page_overlay_)
+ page_overlay_->Update();
+}
+
void InspectorOverlayAgent::UpdateAllLifecyclePhases() {
if (IsEmpty())
return;
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlayAgent.h ('k') | third_party/WebKit/Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698