| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 * | 7 * |
| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 { | 64 { |
| 65 validNames = NameSet(validNames & enabledNameSet()); | 65 validNames = NameSet(validNames & enabledNameSet()); |
| 66 | 66 |
| 67 if ((validNames & EmbedderNames) && kNotFound != embedderCustomElementNames(
).find(name)) | 67 if ((validNames & EmbedderNames) && kNotFound != embedderCustomElementNames(
).find(name)) |
| 68 return Document::isValidName(name); | 68 return Document::isValidName(name); |
| 69 | 69 |
| 70 if ((validNames & StandardNames) && kNotFound != name.find('-')) { | 70 if ((validNames & StandardNames) && kNotFound != name.find('-')) { |
| 71 DEFINE_STATIC_LOCAL(Vector<AtomicString>, reservedNames, ()); | 71 DEFINE_STATIC_LOCAL(Vector<AtomicString>, reservedNames, ()); |
| 72 if (reservedNames.isEmpty()) { | 72 if (reservedNames.isEmpty()) { |
| 73 reservedNames.append(MathMLNames::annotation_xmlTag.localName()); | 73 reservedNames.append(MathMLNames::annotation_xmlTag.localName()); |
| 74 reservedNames.append(SVGNames::color_profileTag.localName()); | 74 // In principle, "color-profile" should exist in the SVGNames |
| 75 // namespace, but we don't implement the color-profile element. |
| 76 reservedNames.append("color-profile"); |
| 75 reservedNames.append(SVGNames::font_faceTag.localName()); | 77 reservedNames.append(SVGNames::font_faceTag.localName()); |
| 76 reservedNames.append(SVGNames::font_face_srcTag.localName()); | 78 reservedNames.append(SVGNames::font_face_srcTag.localName()); |
| 77 reservedNames.append(SVGNames::font_face_uriTag.localName()); | 79 reservedNames.append(SVGNames::font_face_uriTag.localName()); |
| 78 reservedNames.append(SVGNames::font_face_formatTag.localName()); | 80 reservedNames.append(SVGNames::font_face_formatTag.localName()); |
| 79 reservedNames.append(SVGNames::font_face_nameTag.localName()); | 81 reservedNames.append(SVGNames::font_face_nameTag.localName()); |
| 80 reservedNames.append(SVGNames::missing_glyphTag.localName()); | 82 reservedNames.append(SVGNames::missing_glyphTag.localName()); |
| 81 } | 83 } |
| 82 | 84 |
| 83 if (kNotFound == reservedNames.find(name)) | 85 if (kNotFound == reservedNames.find(name)) |
| 84 return Document::isValidName(name.string()); | 86 return Document::isValidName(name.string()); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 ASSERT(result.isNewEntry); | 173 ASSERT(result.isNewEntry); |
| 172 } | 174 } |
| 173 | 175 |
| 174 CustomElement::DefinitionMap& CustomElement::definitions() | 176 CustomElement::DefinitionMap& CustomElement::definitions() |
| 175 { | 177 { |
| 176 DEFINE_STATIC_LOCAL(DefinitionMap, map, ()); | 178 DEFINE_STATIC_LOCAL(DefinitionMap, map, ()); |
| 177 return map; | 179 return map; |
| 178 } | 180 } |
| 179 | 181 |
| 180 } // namespace WebCore | 182 } // namespace WebCore |
| OLD | NEW |