| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // Make protected methods from base class public here. | 80 // Make protected methods from base class public here. |
| 81 using TreeScope::setDocument; | 81 using TreeScope::setDocument; |
| 82 using TreeScope::setParentTreeScope; | 82 using TreeScope::setParentTreeScope; |
| 83 | 83 |
| 84 public: | 84 public: |
| 85 Element* activeElement() const; | 85 Element* activeElement() const; |
| 86 | 86 |
| 87 PassRefPtr<Node> cloneNode(bool, ExceptionState&); | 87 PassRefPtr<Node> cloneNode(bool, ExceptionState&); |
| 88 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } | 88 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } |
| 89 | 89 |
| 90 StyleSheetList* styleSheets(); | |
| 91 | |
| 92 private: | 90 private: |
| 93 ShadowRoot(Document&); | 91 ShadowRoot(Document&); |
| 94 virtual ~ShadowRoot(); | 92 virtual ~ShadowRoot(); |
| 95 | 93 |
| 96 #if !ENABLE(OILPAN) | 94 #if !ENABLE(OILPAN) |
| 97 virtual void dispose() override; | 95 virtual void dispose() override; |
| 98 #endif | 96 #endif |
| 99 | 97 |
| 100 ShadowRootRareData* ensureShadowRootRareData(); | 98 ShadowRootRareData* ensureShadowRootRareData(); |
| 101 | 99 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 116 { | 114 { |
| 117 return adjustedFocusedElement(); | 115 return adjustedFocusedElement(); |
| 118 } | 116 } |
| 119 | 117 |
| 120 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 118 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
| 121 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 119 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
| 122 | 120 |
| 123 } // namespace blink | 121 } // namespace blink |
| 124 | 122 |
| 125 #endif // SKY_ENGINE_CORE_DOM_SHADOW_SHADOWROOT_H_ | 123 #endif // SKY_ENGINE_CORE_DOM_SHADOW_SHADOWROOT_H_ |
| OLD | NEW |