| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class ExceptionState; | 44 class ExceptionState; |
| 45 class KURL; | 45 class KURL; |
| 46 class Node; | 46 class Node; |
| 47 class Range; | 47 class Range; |
| 48 class StylePropertySet; | 48 class StylePropertySet; |
| 49 | 49 |
| 50 enum EChildrenOnly { IncludeNode, ChildrenOnly }; | 50 enum EChildrenOnly { IncludeNode, ChildrenOnly }; |
| 51 enum EAbsoluteURLs { DoNotResolveURLs, ResolveAllURLs, ResolveNonLocalURLs }; | 51 enum EAbsoluteURLs { DoNotResolveURLs, ResolveAllURLs, ResolveNonLocalURLs }; |
| 52 enum class ConvertBlocksToInlines { NotConvert, Convert }; | 52 enum class ConvertBlocksToInlines { NotConvert, Convert }; |
| 53 | 53 |
| 54 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentFromText(const EphemeralR
ange& context, const String& text); | 54 RawPtr<DocumentFragment> createFragmentFromText(const EphemeralRange& context, c
onst String& text); |
| 55 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentFromMarkup(Document&, con
st String& markup, const String& baseURL, ParserContentPolicy = AllowScriptingCo
ntent); | 55 RawPtr<DocumentFragment> createFragmentFromMarkup(Document&, const String& marku
p, const String& baseURL, ParserContentPolicy = AllowScriptingContent); |
| 56 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentFromMarkupWithContext(Doc
ument&, const String& markup, unsigned fragmentStart, unsigned fragmentEnd, cons
t String& baseURL, ParserContentPolicy); | 56 RawPtr<DocumentFragment> createFragmentFromMarkupWithContext(Document&, const St
ring& markup, unsigned fragmentStart, unsigned fragmentEnd, const String& baseUR
L, ParserContentPolicy); |
| 57 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentForInnerOuterHTML(const S
tring&, Element*, ParserContentPolicy, const char* method, ExceptionState&); | 57 RawPtr<DocumentFragment> createFragmentForInnerOuterHTML(const String&, Element*
, ParserContentPolicy, const char* method, ExceptionState&); |
| 58 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentForTransformToFragment(co
nst String&, const String& sourceMIMEType, Document& outputDoc); | 58 RawPtr<DocumentFragment> createFragmentForTransformToFragment(const String&, con
st String& sourceMIMEType, Document& outputDoc); |
| 59 PassRefPtrWillBeRawPtr<DocumentFragment> createContextualFragment(const String&,
Element*, ParserContentPolicy, ExceptionState&); | 59 RawPtr<DocumentFragment> createContextualFragment(const String&, Element*, Parse
rContentPolicy, ExceptionState&); |
| 60 | 60 |
| 61 bool isPlainTextMarkup(Node*); | 61 bool isPlainTextMarkup(Node*); |
| 62 | 62 |
| 63 // These methods are used by HTMLElement & ShadowRoot to replace the | 63 // These methods are used by HTMLElement & ShadowRoot to replace the |
| 64 // children with respected fragment/text. | 64 // children with respected fragment/text. |
| 65 void replaceChildrenWithFragment(ContainerNode*, PassRefPtrWillBeRawPtr<Document
Fragment>, ExceptionState&); | 65 void replaceChildrenWithFragment(ContainerNode*, RawPtr<DocumentFragment>, Excep
tionState&); |
| 66 void replaceChildrenWithText(ContainerNode*, const String&, ExceptionState&); | 66 void replaceChildrenWithText(ContainerNode*, const String&, ExceptionState&); |
| 67 | 67 |
| 68 CORE_EXPORT String createMarkup(const Node*, EChildrenOnly = IncludeNode, EAbsol
uteURLs = DoNotResolveURLs); | 68 CORE_EXPORT String createMarkup(const Node*, EChildrenOnly = IncludeNode, EAbsol
uteURLs = DoNotResolveURLs); |
| 69 | 69 |
| 70 CORE_EXPORT String createMarkup(const Position& start, const Position& end, EAnn
otateForInterchange = DoNotAnnotateForInterchange, ConvertBlocksToInlines = Conv
ertBlocksToInlines::NotConvert, EAbsoluteURLs = DoNotResolveURLs, Node* constrai
ningAncestor = nullptr); | 70 CORE_EXPORT String createMarkup(const Position& start, const Position& end, EAnn
otateForInterchange = DoNotAnnotateForInterchange, ConvertBlocksToInlines = Conv
ertBlocksToInlines::NotConvert, EAbsoluteURLs = DoNotResolveURLs, Node* constrai
ningAncestor = nullptr); |
| 71 CORE_EXPORT String createMarkup(const PositionInFlatTree& start, const PositionI
nFlatTree& end, EAnnotateForInterchange = DoNotAnnotateForInterchange, ConvertBl
ocksToInlines = ConvertBlocksToInlines::NotConvert, EAbsoluteURLs = DoNotResolve
URLs, Node* constrainingAncestor = nullptr); | 71 CORE_EXPORT String createMarkup(const PositionInFlatTree& start, const PositionI
nFlatTree& end, EAnnotateForInterchange = DoNotAnnotateForInterchange, ConvertBl
ocksToInlines = ConvertBlocksToInlines::NotConvert, EAbsoluteURLs = DoNotResolve
URLs, Node* constrainingAncestor = nullptr); |
| 72 | 72 |
| 73 String urlToMarkup(const KURL&, const String& title); | 73 String urlToMarkup(const KURL&, const String& title); |
| 74 void mergeWithNextTextNode(Text*, ExceptionState&); | 74 void mergeWithNextTextNode(Text*, ExceptionState&); |
| 75 | 75 |
| 76 bool propertyMissingOrEqualToNone(StylePropertySet*, CSSPropertyID); | 76 bool propertyMissingOrEqualToNone(StylePropertySet*, CSSPropertyID); |
| 77 | 77 |
| 78 } // namespace blink | 78 } // namespace blink |
| 79 | 79 |
| 80 #endif // Serialization_h | 80 #endif // Serialization_h |
| OLD | NEW |