| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 case kProcessingInstructionNode: | 50 case kProcessingInstructionNode: |
| 51 case kCommentNode: | 51 case kCommentNode: |
| 52 case kTextNode: | 52 case kTextNode: |
| 53 case kCdataSectionNode: | 53 case kCdataSectionNode: |
| 54 return true; | 54 return true; |
| 55 default: | 55 default: |
| 56 return false; | 56 return false; |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 Node* DocumentFragment::cloneNode(bool deep) { | 60 Node* DocumentFragment::cloneNode(bool deep, ExceptionState&) { |
| 61 DocumentFragment* clone = create(document()); | 61 DocumentFragment* clone = create(document()); |
| 62 if (deep) | 62 if (deep) |
| 63 cloneChildNodes(clone); | 63 cloneChildNodes(clone); |
| 64 return clone; | 64 return clone; |
| 65 } | 65 } |
| 66 | 66 |
| 67 void DocumentFragment::parseHTML(const String& source, | 67 void DocumentFragment::parseHTML(const String& source, |
| 68 Element* contextElement, | 68 Element* contextElement, |
| 69 ParserContentPolicy parserContentPolicy) { | 69 ParserContentPolicy parserContentPolicy) { |
| 70 HTMLDocumentParser::parseDocumentFragment(source, this, contextElement, | 70 HTMLDocumentParser::parseDocumentFragment(source, this, contextElement, |
| 71 parserContentPolicy); | 71 parserContentPolicy); |
| 72 } | 72 } |
| 73 | 73 |
| 74 bool DocumentFragment::parseXML(const String& source, | 74 bool DocumentFragment::parseXML(const String& source, |
| 75 Element* contextElement, | 75 Element* contextElement, |
| 76 ParserContentPolicy parserContentPolicy) { | 76 ParserContentPolicy parserContentPolicy) { |
| 77 return XMLDocumentParser::parseDocumentFragment(source, this, contextElement, | 77 return XMLDocumentParser::parseDocumentFragment(source, this, contextElement, |
| 78 parserContentPolicy); | 78 parserContentPolicy); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace blink | 81 } // namespace blink |
| OLD | NEW |