| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004 Apple Computer, 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 class Element; | 39 class Element; |
| 40 class ExceptionState; | 40 class ExceptionState; |
| 41 class KURL; | 41 class KURL; |
| 42 class Node; | 42 class Node; |
| 43 class QualifiedName; | 43 class QualifiedName; |
| 44 class Range; | 44 class Range; |
| 45 | 45 |
| 46 enum EChildrenOnly { IncludeNode, ChildrenOnly }; | 46 enum EChildrenOnly { IncludeNode, ChildrenOnly }; |
| 47 enum EAbsoluteURLs { DoNotResolveURLs, ResolveAllURLs, ResolveNonLocalURLs }; | 47 enum EAbsoluteURLs { DoNotResolveURLs, ResolveAllURLs, ResolveNonLocalURLs }; |
| 48 | 48 |
| 49 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentFromMarkup(Document&, con
st String& markup); | |
| 50 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentForInnerOuterHTML(const S
tring&, Element*, const char* method, ExceptionState&); | |
| 51 | |
| 52 // These methods are used by HTMLElement & ShadowRoot to replace the | 49 // These methods are used by HTMLElement & ShadowRoot to replace the |
| 53 // children with respected fragment/text. | 50 // children with respected fragment/text. |
| 54 void replaceChildrenWithFragment(ContainerNode*, PassRefPtrWillBeRawPtr<Document
Fragment>, ExceptionState&); | 51 void replaceChildrenWithFragment(ContainerNode*, PassRefPtrWillBeRawPtr<Document
Fragment>, ExceptionState&); |
| 55 | 52 |
| 56 String createMarkup(const Range*, WillBeHeapVector<RawPtrWillBeMember<Node> >* =
0, EAnnotateForInterchange = DoNotAnnotateForInterchange, bool convertBlocksToI
nlines = false, EAbsoluteURLs = DoNotResolveURLs, Node* constrainingAncestor = 0
); | 53 String createMarkup(const Range*, WillBeHeapVector<RawPtrWillBeMember<Node> >* =
0, EAnnotateForInterchange = DoNotAnnotateForInterchange, bool convertBlocksToI
nlines = false, EAbsoluteURLs = DoNotResolveURLs, Node* constrainingAncestor = 0
); |
| 57 String createMarkup(const Node*, EChildrenOnly = IncludeNode, WillBeHeapVector<R
awPtrWillBeMember<Node> >* = 0, EAbsoluteURLs = DoNotResolveURLs, Vector<Qualifi
edName>* tagNamesToSkip = 0); | 54 String createMarkup(const Node*, EChildrenOnly = IncludeNode, WillBeHeapVector<R
awPtrWillBeMember<Node> >* = 0, EAbsoluteURLs = DoNotResolveURLs, Vector<Qualifi
edName>* tagNamesToSkip = 0); |
| 58 | 55 |
| 59 void mergeWithNextTextNode(Text*, ExceptionState&); | 56 void mergeWithNextTextNode(Text*, ExceptionState&); |
| 60 | 57 |
| 61 } | 58 } |
| 62 | 59 |
| 63 #endif // markup_h | 60 #endif // markup_h |
| OLD | NEW |