| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // For Internals, don't use this. | 97 // For Internals, don't use this. |
| 98 unsigned childShadowRootCount() const; | 98 unsigned childShadowRootCount() const; |
| 99 unsigned numberOfStyles() const { return m_numberOfStyles; } | 99 unsigned numberOfStyles() const { return m_numberOfStyles; } |
| 100 | 100 |
| 101 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const; | 101 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const; |
| 102 void setShadowInsertionPointOfYoungerShadowRoot(PassRefPtrWillBeRawPtr<HTMLS
hadowElement>); | 102 void setShadowInsertionPointOfYoungerShadowRoot(PassRefPtrWillBeRawPtr<HTMLS
hadowElement>); |
| 103 | 103 |
| 104 void didAddInsertionPoint(InsertionPoint*); | 104 void didAddInsertionPoint(InsertionPoint*); |
| 105 void didRemoveInsertionPoint(InsertionPoint*); | 105 void didRemoveInsertionPoint(InsertionPoint*); |
| 106 const WillBeHeapVector<RefPtrWillBeMember<InsertionPoint> >& descendantInser
tionPoints(); | 106 const WillBeHeapVector<RefPtrWillBeMember<InsertionPoint>>& descendantInsert
ionPoints(); |
| 107 | 107 |
| 108 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } | 108 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } |
| 109 | 109 |
| 110 // Make protected methods from base class public here. | 110 // Make protected methods from base class public here. |
| 111 using TreeScope::setDocument; | 111 using TreeScope::setDocument; |
| 112 using TreeScope::setParentTreeScope; | 112 using TreeScope::setParentTreeScope; |
| 113 | 113 |
| 114 public: | 114 public: |
| 115 Element* activeElement() const; | 115 Element* activeElement() const; |
| 116 | 116 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 return adjustedFocusedElement(); | 162 return adjustedFocusedElement(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 165 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
| 166 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 166 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
| 167 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); | 167 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); |
| 168 | 168 |
| 169 } // namespace blink | 169 } // namespace blink |
| 170 | 170 |
| 171 #endif // ShadowRoot_h | 171 #endif // ShadowRoot_h |
| OLD | NEW |