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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 1971963003: Serializing <keygen> and <track> should not generate end tags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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) 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 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved.
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 || hasTagName(baseTag) 111 || hasTagName(baseTag)
112 || hasTagName(basefontTag) 112 || hasTagName(basefontTag)
113 || hasTagName(brTag) 113 || hasTagName(brTag)
114 || hasTagName(colTag) 114 || hasTagName(colTag)
115 || hasTagName(embedTag) 115 || hasTagName(embedTag)
116 || hasTagName(frameTag) 116 || hasTagName(frameTag)
117 || hasTagName(hrTag) 117 || hasTagName(hrTag)
118 || hasTagName(imageTag) 118 || hasTagName(imageTag)
119 || hasTagName(imgTag) 119 || hasTagName(imgTag)
120 || hasTagName(inputTag) 120 || hasTagName(inputTag)
121 || hasTagName(keygenTag)
121 || hasTagName(linkTag) 122 || hasTagName(linkTag)
122 || (RuntimeEnabledFeatures::contextMenuEnabled() && hasTagName(menuitemT ag)) 123 || (RuntimeEnabledFeatures::contextMenuEnabled() && hasTagName(menuitemT ag))
123 || hasTagName(metaTag) 124 || hasTagName(metaTag)
124 || hasTagName(paramTag) 125 || hasTagName(paramTag)
125 || hasTagName(sourceTag) 126 || hasTagName(sourceTag)
127 || hasTagName(trackTag)
126 || hasTagName(wbrTag)) 128 || hasTagName(wbrTag))
127 return true; 129 return true;
128 return false; 130 return false;
129 } 131 }
130 132
131 static inline CSSValueID unicodeBidiAttributeForDirAuto(HTMLElement* element) 133 static inline CSSValueID unicodeBidiAttributeForDirAuto(HTMLElement* element)
132 { 134 {
133 if (element->hasTagName(preTag) || element->hasTagName(textareaTag)) 135 if (element->hasTagName(preTag) || element->hasTagName(textareaTag))
134 return CSSValueWebkitPlaintext; 136 return CSSValueWebkitPlaintext;
135 // FIXME: For bdo element, dir="auto" should result in "bidi-override isolat e" but we don't support having multiple values in unicode-bidi yet. 137 // FIXME: For bdo element, dir="auto" should result in "bidi-override isolat e" but we don't support having multiple values in unicode-bidi yet.
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 #ifndef NDEBUG 1041 #ifndef NDEBUG
1040 1042
1041 // For use in the debugger 1043 // For use in the debugger
1042 void dumpInnerHTML(blink::HTMLElement*); 1044 void dumpInnerHTML(blink::HTMLElement*);
1043 1045
1044 void dumpInnerHTML(blink::HTMLElement* element) 1046 void dumpInnerHTML(blink::HTMLElement* element)
1045 { 1047 {
1046 printf("%s\n", element->innerHTML().ascii().data()); 1048 printf("%s\n", element->innerHTML().ascii().data());
1047 } 1049 }
1048 #endif 1050 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698