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

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

Issue 2700293002: DevTools: do not use RAII for sync native breakpoints, reuse AsyncTask where possible. (Closed)
Patch Set: same with unused assert removed - assert is trivial 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/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 5145d3791c96c6e049e7de8c4b4c31350c7e9a3c..a6a5c4669864bb83497591cf295a411823798af8 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -2899,8 +2899,7 @@ String Element::outerHTML() const {
}
void Element::setInnerHTML(const String& html, ExceptionState& exceptionState) {
- InspectorInstrumentation::NativeBreakpoint nativeBreakpoint(
- &document(), "Element.setInnerHTML", true);
+ InspectorInstrumentation::breakIfNeeded(&document(), "Element.setInnerHTML");
if (DocumentFragment* fragment = createFragmentForInnerOuterHTML(
html, this, AllowScriptingContent, "innerHTML", exceptionState)) {
ContainerNode* container = this;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698