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

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: 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 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 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after
2837 2837
2838 String Element::innerHTML() const { 2838 String Element::innerHTML() const {
2839 return createMarkup(this, ChildrenOnly); 2839 return createMarkup(this, ChildrenOnly);
2840 } 2840 }
2841 2841
2842 String Element::outerHTML() const { 2842 String Element::outerHTML() const {
2843 return createMarkup(this); 2843 return createMarkup(this);
2844 } 2844 }
2845 2845
2846 void Element::setInnerHTML(const String& html, ExceptionState& exceptionState) { 2846 void Element::setInnerHTML(const String& html, ExceptionState& exceptionState) {
2847 InspectorInstrumentation::NativeBreakpoint nativeBreakpoint( 2847 InspectorInstrumentation::breakIfNeeded(&document(), "Element.setInnerHTML");
2848 &document(), "Element.setInnerHTML", true);
2849 if (DocumentFragment* fragment = createFragmentForInnerOuterHTML( 2848 if (DocumentFragment* fragment = createFragmentForInnerOuterHTML(
2850 html, this, AllowScriptingContent, "innerHTML", exceptionState)) { 2849 html, this, AllowScriptingContent, "innerHTML", exceptionState)) {
2851 ContainerNode* container = this; 2850 ContainerNode* container = this;
2852 if (isHTMLTemplateElement(*this)) 2851 if (isHTMLTemplateElement(*this))
2853 container = toHTMLTemplateElement(this)->content(); 2852 container = toHTMLTemplateElement(this)->content();
2854 replaceChildrenWithFragment(container, fragment, exceptionState); 2853 replaceChildrenWithFragment(container, fragment, exceptionState);
2855 } 2854 }
2856 } 2855 }
2857 2856
2858 void Element::setOuterHTML(const String& html, ExceptionState& exceptionState) { 2857 void Element::setOuterHTML(const String& html, ExceptionState& exceptionState) {
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
4139 } 4138 }
4140 4139
4141 DEFINE_TRACE_WRAPPERS(Element) { 4140 DEFINE_TRACE_WRAPPERS(Element) {
4142 if (hasRareData()) { 4141 if (hasRareData()) {
4143 visitor->traceWrappers(elementRareData()); 4142 visitor->traceWrappers(elementRareData());
4144 } 4143 }
4145 ContainerNode::traceWrappers(visitor); 4144 ContainerNode::traceWrappers(visitor);
4146 } 4145 }
4147 4146
4148 } // namespace blink 4147 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698