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

Side by Side Diff: third_party/WebKit/Source/core/editing/serializers/MarkupFormatter.h

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 kEntityLineFeed = 0x0040, 52 kEntityLineFeed = 0x0040,
53 kEntityCarriageReturn = 0x0080, 53 kEntityCarriageReturn = 0x0080,
54 54
55 // Non-breaking space needs to be escaped in innerHTML for compatibility 55 // Non-breaking space needs to be escaped in innerHTML for compatibility
56 // reasons. See http://trac.webkit.org/changeset/32879. However, we cannot do 56 // reasons. See http://trac.webkit.org/changeset/32879. However, we cannot do
57 // this in an XML document because it does not have the entity reference 57 // this in an XML document because it does not have the entity reference
58 // defined (see bug 19215). 58 // defined (see bug 19215).
59 kEntityMaskInCDATA = 0, 59 kEntityMaskInCDATA = 0,
60 kEntityMaskInPCDATA = kEntityAmp | kEntityLt | kEntityGt, 60 kEntityMaskInPCDATA = kEntityAmp | kEntityLt | kEntityGt,
61 kEntityMaskInHTMLPCDATA = kEntityMaskInPCDATA | kEntityNbsp, 61 kEntityMaskInHTMLPCDATA = kEntityMaskInPCDATA | kEntityNbsp,
62 kEntityMaskInAttributeValue = 62 kEntityMaskInAttributeValue = kEntityAmp | kEntityQuot | kEntityLt |
63 kEntityAmp | kEntityQuot | kEntityLt | kEntityGt | kEntityTab | 63 kEntityGt | kEntityTab | kEntityLineFeed |
64 kEntityLineFeed | 64 kEntityCarriageReturn,
65 kEntityCarriageReturn,
66 kEntityMaskInHTMLAttributeValue = kEntityAmp | kEntityQuot | kEntityNbsp, 65 kEntityMaskInHTMLAttributeValue = kEntityAmp | kEntityQuot | kEntityNbsp,
67 }; 66 };
68 67
69 enum class SerializationType { kAsOwnerDocument, kForcedXML }; 68 enum class SerializationType { kAsOwnerDocument, kForcedXML };
70 69
71 class MarkupFormatter final { 70 class MarkupFormatter final {
72 WTF_MAKE_NONCOPYABLE(MarkupFormatter); 71 WTF_MAKE_NONCOPYABLE(MarkupFormatter);
73 STACK_ALLOCATED(); 72 STACK_ALLOCATED();
74 73
75 public: 74 public:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const Element&, 118 const Element&,
120 const Attribute&); 119 const Attribute&);
121 120
122 const EAbsoluteURLs resolve_urls_method_; 121 const EAbsoluteURLs resolve_urls_method_;
123 SerializationType serialization_type_; 122 SerializationType serialization_type_;
124 }; 123 };
125 124
126 } // namespace blink 125 } // namespace blink
127 126
128 #endif 127 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698