| OLD | NEW |
| 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 2855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2866 | 2866 |
| 2867 String Element::innerHTML() const { | 2867 String Element::innerHTML() const { |
| 2868 return createMarkup(this, ChildrenOnly); | 2868 return createMarkup(this, ChildrenOnly); |
| 2869 } | 2869 } |
| 2870 | 2870 |
| 2871 String Element::outerHTML() const { | 2871 String Element::outerHTML() const { |
| 2872 return createMarkup(this); | 2872 return createMarkup(this); |
| 2873 } | 2873 } |
| 2874 | 2874 |
| 2875 void Element::setInnerHTML(const String& html, ExceptionState& exceptionState) { | 2875 void Element::setInnerHTML(const String& html, ExceptionState& exceptionState) { |
| 2876 probe::breakIfNeeded(&document(), "Element.setInnerHTML"); | 2876 probe::breakableLocation(&document(), "Element.setInnerHTML"); |
| 2877 if (DocumentFragment* fragment = createFragmentForInnerOuterHTML( | 2877 if (DocumentFragment* fragment = createFragmentForInnerOuterHTML( |
| 2878 html, this, AllowScriptingContent, "innerHTML", exceptionState)) { | 2878 html, this, AllowScriptingContent, "innerHTML", exceptionState)) { |
| 2879 ContainerNode* container = this; | 2879 ContainerNode* container = this; |
| 2880 if (isHTMLTemplateElement(*this)) | 2880 if (isHTMLTemplateElement(*this)) |
| 2881 container = toHTMLTemplateElement(this)->content(); | 2881 container = toHTMLTemplateElement(this)->content(); |
| 2882 replaceChildrenWithFragment(container, fragment, exceptionState); | 2882 replaceChildrenWithFragment(container, fragment, exceptionState); |
| 2883 } | 2883 } |
| 2884 } | 2884 } |
| 2885 | 2885 |
| 2886 void Element::setOuterHTML(const String& html, ExceptionState& exceptionState) { | 2886 void Element::setOuterHTML(const String& html, ExceptionState& exceptionState) { |
| (...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4201 } | 4201 } |
| 4202 | 4202 |
| 4203 DEFINE_TRACE_WRAPPERS(Element) { | 4203 DEFINE_TRACE_WRAPPERS(Element) { |
| 4204 if (hasRareData()) { | 4204 if (hasRareData()) { |
| 4205 visitor->traceWrappers(elementRareData()); | 4205 visitor->traceWrappers(elementRareData()); |
| 4206 } | 4206 } |
| 4207 ContainerNode::traceWrappers(visitor); | 4207 ContainerNode::traceWrappers(visitor); |
| 4208 } | 4208 } |
| 4209 | 4209 |
| 4210 } // namespace blink | 4210 } // namespace blink |
| OLD | NEW |