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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.cpp

Issue 2479243002: If 'is' is not null and custom element definition not found, NotFoundError should be thrown (Closed)
Patch Set: Created 4 years, 1 month 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) 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 bool V0CustomElementRegistrationContext::nameIsDefined( 170 bool V0CustomElementRegistrationContext::nameIsDefined(
171 const AtomicString& name) const { 171 const AtomicString& name) const {
172 return m_registry.nameIsDefined(name); 172 return m_registry.nameIsDefined(name);
173 } 173 }
174 174
175 void V0CustomElementRegistrationContext::setV1( 175 void V0CustomElementRegistrationContext::setV1(
176 const CustomElementRegistry* v1) { 176 const CustomElementRegistry* v1) {
177 m_registry.setV1(v1); 177 m_registry.setV1(v1);
178 } 178 }
179 179
180 bool V0CustomElementRegistrationContext::v1NameIsDefined(
181 const AtomicString& name) const {
182 return m_registry.v1NameIsDefined(name);
183 }
184
180 DEFINE_TRACE(V0CustomElementRegistrationContext) { 185 DEFINE_TRACE(V0CustomElementRegistrationContext) {
181 visitor->trace(m_candidates); 186 visitor->trace(m_candidates);
182 visitor->trace(m_registry); 187 visitor->trace(m_registry);
183 } 188 }
184 189
185 } // namespace blink 190 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698