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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * (C) 2007 Eric Seidel (eric@webkit.org) 9 * (C) 2007 Eric Seidel (eric@webkit.org)
10 * 10 *
(...skipping 2881 matching lines...) Expand 10 before | Expand all | Expand 10 after
2892 2892
2893 String Element::innerHTML() const { 2893 String Element::innerHTML() const {
2894 return createMarkup(this, ChildrenOnly); 2894 return createMarkup(this, ChildrenOnly);
2895 } 2895 }
2896 2896
2897 String Element::outerHTML() const { 2897 String Element::outerHTML() const {
2898 return createMarkup(this); 2898 return createMarkup(this);
2899 } 2899 }
2900 2900
2901 void Element::setInnerHTML(const String& html, ExceptionState& exceptionState) { 2901 void Element::setInnerHTML(const String& html, ExceptionState& exceptionState) {
2902 InspectorInstrumentation::NativeBreakpoint nativeBreakpoint( 2902 InspectorInstrumentation::breakIfNeeded(&document(), "Element.setInnerHTML");
2903 &document(), "Element.setInnerHTML", true);
2904 if (DocumentFragment* fragment = createFragmentForInnerOuterHTML( 2903 if (DocumentFragment* fragment = createFragmentForInnerOuterHTML(
2905 html, this, AllowScriptingContent, "innerHTML", exceptionState)) { 2904 html, this, AllowScriptingContent, "innerHTML", exceptionState)) {
2906 ContainerNode* container = this; 2905 ContainerNode* container = this;
2907 if (isHTMLTemplateElement(*this)) 2906 if (isHTMLTemplateElement(*this))
2908 container = toHTMLTemplateElement(this)->content(); 2907 container = toHTMLTemplateElement(this)->content();
2909 replaceChildrenWithFragment(container, fragment, exceptionState); 2908 replaceChildrenWithFragment(container, fragment, exceptionState);
2910 } 2909 }
2911 } 2910 }
2912 2911
2913 void Element::setOuterHTML(const String& html, ExceptionState& exceptionState) { 2912 void Element::setOuterHTML(const String& html, ExceptionState& exceptionState) {
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
4228 } 4227 }
4229 4228
4230 DEFINE_TRACE_WRAPPERS(Element) { 4229 DEFINE_TRACE_WRAPPERS(Element) {
4231 if (hasRareData()) { 4230 if (hasRareData()) {
4232 visitor->traceWrappers(elementRareData()); 4231 visitor->traceWrappers(elementRareData());
4233 } 4232 }
4234 ContainerNode::traceWrappers(visitor); 4233 ContainerNode::traceWrappers(visitor);
4235 } 4234 }
4236 4235
4237 } // namespace blink 4236 } // namespace blink
OLDNEW
« 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