| 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 27 matching lines...) Expand all Loading... |
| 38 class Document; | 38 class Document; |
| 39 class ElementShadow; | 39 class ElementShadow; |
| 40 class ExceptionState; | 40 class ExceptionState; |
| 41 class HTMLShadowElement; | 41 class HTMLShadowElement; |
| 42 class InsertionPoint; | 42 class InsertionPoint; |
| 43 class ShadowRootRareData; | 43 class ShadowRootRareData; |
| 44 class StyleSheetList; | 44 class StyleSheetList; |
| 45 | 45 |
| 46 class ShadowRoot final : public DocumentFragment, public TreeScope, public Doubl
yLinkedListNode<ShadowRoot> { | 46 class ShadowRoot final : public DocumentFragment, public TreeScope, public Doubl
yLinkedListNode<ShadowRoot> { |
| 47 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
| 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ShadowRoot); | |
| 49 friend class WTF::DoublyLinkedListNode<ShadowRoot>; | 48 friend class WTF::DoublyLinkedListNode<ShadowRoot>; |
| 50 public: | 49 public: |
| 51 | 50 |
| 52 static PassRefPtr<ShadowRoot> create(Document& document) | 51 static PassRefPtr<ShadowRoot> create(Document& document) |
| 53 { | 52 { |
| 54 return adoptRef(new ShadowRoot(document)); | 53 return adoptRef(new ShadowRoot(document)); |
| 55 } | 54 } |
| 56 | 55 |
| 57 void recalcStyle(StyleRecalcChange); | 56 void recalcStyle(StyleRecalcChange); |
| 58 | 57 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 { | 142 { |
| 144 return adjustedFocusedElement(); | 143 return adjustedFocusedElement(); |
| 145 } | 144 } |
| 146 | 145 |
| 147 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 146 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
| 148 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 147 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
| 149 | 148 |
| 150 } // namespace blink | 149 } // namespace blink |
| 151 | 150 |
| 152 #endif // ShadowRoot_h | 151 #endif // ShadowRoot_h |
| OLD | NEW |