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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2700263003: DevTools: normalize native breakpoint names. (Closed)
Patch Set: fixed the test 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 2830 matching lines...) Expand 10 before | Expand all | Expand 10 after
2841 String Element::innerHTML() const { 2841 String Element::innerHTML() const {
2842 return createMarkup(this, ChildrenOnly); 2842 return createMarkup(this, ChildrenOnly);
2843 } 2843 }
2844 2844
2845 String Element::outerHTML() const { 2845 String Element::outerHTML() const {
2846 return createMarkup(this); 2846 return createMarkup(this);
2847 } 2847 }
2848 2848
2849 void Element::setInnerHTML(const String& html, ExceptionState& exceptionState) { 2849 void Element::setInnerHTML(const String& html, ExceptionState& exceptionState) {
2850 InspectorInstrumentation::NativeBreakpoint nativeBreakpoint( 2850 InspectorInstrumentation::NativeBreakpoint nativeBreakpoint(
2851 &document(), "setInnerHTML", true); 2851 &document(), "Element.setInnerHTML", true);
2852 if (DocumentFragment* fragment = createFragmentForInnerOuterHTML( 2852 if (DocumentFragment* fragment = createFragmentForInnerOuterHTML(
2853 html, this, AllowScriptingContent, "innerHTML", exceptionState)) { 2853 html, this, AllowScriptingContent, "innerHTML", exceptionState)) {
2854 ContainerNode* container = this; 2854 ContainerNode* container = this;
2855 if (isHTMLTemplateElement(*this)) 2855 if (isHTMLTemplateElement(*this))
2856 container = toHTMLTemplateElement(this)->content(); 2856 container = toHTMLTemplateElement(this)->content();
2857 replaceChildrenWithFragment(container, fragment, exceptionState); 2857 replaceChildrenWithFragment(container, fragment, exceptionState);
2858 } 2858 }
2859 } 2859 }
2860 2860
2861 void Element::setOuterHTML(const String& html, ExceptionState& exceptionState) { 2861 void Element::setOuterHTML(const String& html, ExceptionState& exceptionState) {
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
4142 } 4142 }
4143 4143
4144 DEFINE_TRACE_WRAPPERS(Element) { 4144 DEFINE_TRACE_WRAPPERS(Element) {
4145 if (hasRareData()) { 4145 if (hasRareData()) {
4146 visitor->traceWrappers(elementRareData()); 4146 visitor->traceWrappers(elementRareData());
4147 } 4147 }
4148 ContainerNode::traceWrappers(visitor); 4148 ContainerNode::traceWrappers(visitor);
4149 } 4149 }
4150 4150
4151 } // namespace blink 4151 } // 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