Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: sky/engine/core/editing/markup.h

Issue 665613003: Remove the ability to parse HTML fragments (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698