| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 public: | 92 public: |
| 93 Element* activeElement() const; | 93 Element* activeElement() const; |
| 94 | 94 |
| 95 ShadowRoot* olderShadowRoot() const { return next(); } | 95 ShadowRoot* olderShadowRoot() const { return next(); } |
| 96 | 96 |
| 97 PassRefPtr<Node> cloneNode(bool, ExceptionState&); | 97 PassRefPtr<Node> cloneNode(bool, ExceptionState&); |
| 98 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } | 98 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } |
| 99 | 99 |
| 100 StyleSheetList* styleSheets(); | 100 StyleSheetList* styleSheets(); |
| 101 | 101 |
| 102 virtual void trace(Visitor*) override; | |
| 103 | |
| 104 private: | 102 private: |
| 105 ShadowRoot(Document&); | 103 ShadowRoot(Document&); |
| 106 virtual ~ShadowRoot(); | 104 virtual ~ShadowRoot(); |
| 107 | 105 |
| 108 #if !ENABLE(OILPAN) | 106 #if !ENABLE(OILPAN) |
| 109 virtual void dispose() override; | 107 virtual void dispose() override; |
| 110 #endif | 108 #endif |
| 111 | 109 |
| 112 ShadowRootRareData* ensureShadowRootRareData(); | 110 ShadowRootRareData* ensureShadowRootRareData(); |
| 113 | 111 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 133 { | 131 { |
| 134 return adjustedFocusedElement(); | 132 return adjustedFocusedElement(); |
| 135 } | 133 } |
| 136 | 134 |
| 137 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 135 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
| 138 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 136 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
| 139 | 137 |
| 140 } // namespace blink | 138 } // namespace blink |
| 141 | 139 |
| 142 #endif // ShadowRoot_h | 140 #endif // ShadowRoot_h |
| OLD | NEW |