| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 ShadowRootRareData* ensureShadowRootRareData(); | 94 ShadowRootRareData* ensureShadowRootRareData(); |
| 95 | 95 |
| 96 void addChildShadowRoot(); | 96 void addChildShadowRoot(); |
| 97 void removeChildShadowRoot(); | 97 void removeChildShadowRoot(); |
| 98 void invalidateDescendantInsertionPoints(); | 98 void invalidateDescendantInsertionPoints(); |
| 99 | 99 |
| 100 // ShadowRoots should never be cloned. | 100 // ShadowRoots should never be cloned. |
| 101 virtual PassRefPtr<Node> cloneNode(bool) override { return nullptr; } | 101 virtual PassRefPtr<Node> cloneNode(bool) override { return nullptr; } |
| 102 | 102 |
| 103 OwnPtr<ShadowRootRareData> m_shadowRootRareData; | 103 OwnPtr<ShadowRootRareData> m_shadowRootRareData; |
| 104 unsigned m_registeredWithParentShadowRoot : 1; | |
| 105 unsigned m_descendantInsertionPointsIsValid : 1; | 104 unsigned m_descendantInsertionPointsIsValid : 1; |
| 106 }; | 105 }; |
| 107 | 106 |
| 108 inline Element* ShadowRoot::activeElement() const | 107 inline Element* ShadowRoot::activeElement() const |
| 109 { | 108 { |
| 110 return adjustedFocusedElement(); | 109 return adjustedFocusedElement(); |
| 111 } | 110 } |
| 112 | 111 |
| 113 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 112 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
| 114 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 113 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
| 115 | 114 |
| 116 } // namespace blink | 115 } // namespace blink |
| 117 | 116 |
| 118 #endif // SKY_ENGINE_CORE_DOM_SHADOW_SHADOWROOT_H_ | 117 #endif // SKY_ENGINE_CORE_DOM_SHADOW_SHADOWROOT_H_ |
| OLD | NEW |