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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2700293002: DevTools: do not use RAII for sync native breakpoints, reuse AsyncTask where possible. (Closed)
Patch Set: Introduce progress monitor Created 3 years, 10 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/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index fba8fdc95b8625862b6d25e09f62c6e1cd623424..4b2a0b8017551084c6f278b3b368c6bdd811772f 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3183,8 +3183,7 @@ void Document::write(const SegmentedString& text,
PerformanceMonitor::reportGenericViolation(
this, PerformanceMonitor::kDiscouragedAPIUse,
"Avoid using document.write().", 0, nullptr);
- InspectorInstrumentation::NativeBreakpoint nativeBreakpoint(
- this, "Document.write", true);
+ InspectorInstrumentation::breakIfNeeded(this, "Document.write");
m_parser->insert(text);
}

Powered by Google App Engine
This is Rietveld 408576698