OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 : DocumentLifecycleObserver(document) | 46 : DocumentLifecycleObserver(document) |
47 , m_wentAway(!document) | 47 , m_wentAway(!document) |
48 { | 48 { |
49 } | 49 } |
50 | 50 |
51 bool registrationContextWentAway() { return m_wentAway; } | 51 bool registrationContextWentAway() { return m_wentAway; } |
52 | 52 |
53 private: | 53 private: |
54 #if ENABLE(OILPAN) | 54 #if ENABLE(OILPAN) |
55 // In oilpan we don't have the disposed phase for context lifecycle observer
. | 55 // In oilpan we don't have the disposed phase for context lifecycle observer
. |
56 virtual void documentWasDetached() OVERRIDE { m_wentAway = true; } | 56 virtual void documentWasDetached() override { m_wentAway = true; } |
57 #else | 57 #else |
58 virtual void documentWasDisposed() OVERRIDE { m_wentAway = true; } | 58 virtual void documentWasDisposed() override { m_wentAway = true; } |
59 #endif | 59 #endif |
60 | 60 |
61 bool m_wentAway; | 61 bool m_wentAway; |
62 }; | 62 }; |
63 | 63 |
64 CustomElementDefinition* CustomElementRegistry::registerElement(Document* docume
nt, CustomElementConstructorBuilder* constructorBuilder, const AtomicString& use
rSuppliedName, CustomElement::NameSet validNames, ExceptionState& exceptionState
) | 64 CustomElementDefinition* CustomElementRegistry::registerElement(Document* docume
nt, CustomElementConstructorBuilder* constructorBuilder, const AtomicString& use
rSuppliedName, CustomElement::NameSet validNames, ExceptionState& exceptionState
) |
65 { | 65 { |
66 // FIXME: In every instance except one it is the | 66 // FIXME: In every instance except one it is the |
67 // CustomElementConstructorBuilder that observes document | 67 // CustomElementConstructorBuilder that observes document |
68 // destruction during registration. This responsibility should be | 68 // destruction during registration. This responsibility should be |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 return definition.get(); | 120 return definition.get(); |
121 } | 121 } |
122 | 122 |
123 CustomElementDefinition* CustomElementRegistry::find(const CustomElementDescript
or& descriptor) const | 123 CustomElementDefinition* CustomElementRegistry::find(const CustomElementDescript
or& descriptor) const |
124 { | 124 { |
125 return m_definitions.get(descriptor); | 125 return m_definitions.get(descriptor); |
126 } | 126 } |
127 | 127 |
128 } // namespace blink | 128 } // namespace blink |
OLD | NEW |