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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 reservedNames.append(MathMLNames::annotation_xmlTag.localName()); 95 reservedNames.append(MathMLNames::annotation_xmlTag.localName());
96 } 96 }
97 97
98 if (kNotFound == reservedNames.find(name)) 98 if (kNotFound == reservedNames.find(name))
99 return isValidNCName(name); 99 return isValidNCName(name);
100 } 100 }
101 101
102 return false; 102 return false;
103 } 103 }
104 104
105 void CustomElement::define(Element* element, PassRefPtrWillBeRawPtr<CustomElemen tDefinition> passDefinition) 105 void CustomElement::define(Element* element, RawPtr<CustomElementDefinition> pas sDefinition)
106 { 106 {
107 RefPtrWillBeRawPtr<CustomElementDefinition> definition(passDefinition); 107 RawPtr<CustomElementDefinition> definition(passDefinition);
108 108
109 switch (element->getCustomElementState()) { 109 switch (element->getCustomElementState()) {
110 case Element::NotCustomElement: 110 case Element::NotCustomElement:
111 case Element::Upgraded: 111 case Element::Upgraded:
112 ASSERT_NOT_REACHED(); 112 ASSERT_NOT_REACHED();
113 break; 113 break;
114 114
115 case Element::WaitingForUpgrade: 115 case Element::WaitingForUpgrade:
116 element->setCustomElementDefinition(definition); 116 element->setCustomElementDefinition(definition);
117 CustomElementScheduler::scheduleCallback(definition->callbacks(), elemen t, CustomElementLifecycleCallbacks::CreatedCallback); 117 CustomElementScheduler::scheduleCallback(definition->callbacks(), elemen t, CustomElementLifecycleCallbacks::CreatedCallback);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 break; 149 break;
150 150
151 case Element::WaitingForUpgrade: 151 case Element::WaitingForUpgrade:
152 case Element::Upgraded: 152 case Element::Upgraded:
153 CustomElementObserver::notifyElementWasDestroyed(element); 153 CustomElementObserver::notifyElementWasDestroyed(element);
154 break; 154 break;
155 } 155 }
156 } 156 }
157 157
158 } // namespace blink 158 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698