| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 | |
| 33 | |
| 34 #include "core/inspector/DOMEditor.h" | 32 #include "core/inspector/DOMEditor.h" |
| 35 | 33 |
| 36 #include "core/dom/DOMException.h" | 34 #include "core/dom/DOMException.h" |
| 37 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
| 38 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
| 39 #include "core/dom/Node.h" | 37 #include "core/dom/Node.h" |
| 40 #include "core/dom/Text.h" | 38 #include "core/dom/Text.h" |
| 39 #include "core/editing/markup.h" |
| 41 #include "core/inspector/DOMPatchSupport.h" | 40 #include "core/inspector/DOMPatchSupport.h" |
| 42 #include "core/inspector/InspectorHistory.h" | 41 #include "core/inspector/InspectorHistory.h" |
| 43 | 42 #include "wtf/RefPtr.h" |
| 44 #include "core/editing/markup.h" | |
| 45 | |
| 46 #include <wtf/RefPtr.h> | |
| 47 | 43 |
| 48 using namespace std; | 44 using namespace std; |
| 49 | 45 |
| 50 namespace WebCore { | 46 namespace WebCore { |
| 51 | 47 |
| 52 class DOMEditor::RemoveChildAction : public InspectorHistory::Action { | 48 class DOMEditor::RemoveChildAction : public InspectorHistory::Action { |
| 53 WTF_MAKE_NONCOPYABLE(RemoveChildAction); | 49 WTF_MAKE_NONCOPYABLE(RemoveChildAction); |
| 54 public: | 50 public: |
| 55 RemoveChildAction(Node* parentNode, Node* node) | 51 RemoveChildAction(Node* parentNode, Node* node) |
| 56 : InspectorHistory::Action("RemoveChild") | 52 : InspectorHistory::Action("RemoveChild") |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 bool DOMEditor::replaceWholeText(Text* textNode, const String& text, ErrorString
* errorString) | 450 bool DOMEditor::replaceWholeText(Text* textNode, const String& text, ErrorString
* errorString) |
| 455 { | 451 { |
| 456 ExceptionCode ec = 0; | 452 ExceptionCode ec = 0; |
| 457 bool result = replaceWholeText(textNode, text, ec); | 453 bool result = replaceWholeText(textNode, text, ec); |
| 458 populateErrorString(ec, errorString); | 454 populateErrorString(ec, errorString); |
| 459 return result; | 455 return result; |
| 460 } | 456 } |
| 461 | 457 |
| 462 } // namespace WebCore | 458 } // namespace WebCore |
| 463 | 459 |
| OLD | NEW |