| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 // Make protected methods from base class public here. | 96 // Make protected methods from base class public here. |
| 97 using TreeScope::setDocument; | 97 using TreeScope::setDocument; |
| 98 using TreeScope::setParentTreeScope; | 98 using TreeScope::setParentTreeScope; |
| 99 | 99 |
| 100 public: | 100 public: |
| 101 Element* activeElement() const; | 101 Element* activeElement() const; |
| 102 | 102 |
| 103 ShadowRoot* olderShadowRoot() const { return next(); } | 103 ShadowRoot* olderShadowRoot() const { return next(); } |
| 104 | 104 |
| 105 String innerHTML() const; | |
| 106 void setInnerHTML(const String&, ExceptionState&); | |
| 107 | |
| 108 PassRefPtrWillBeRawPtr<Node> cloneNode(bool, ExceptionState&); | 105 PassRefPtrWillBeRawPtr<Node> cloneNode(bool, ExceptionState&); |
| 109 PassRefPtrWillBeRawPtr<Node> cloneNode(ExceptionState& exceptionState) { ret
urn cloneNode(true, exceptionState); } | 106 PassRefPtrWillBeRawPtr<Node> cloneNode(ExceptionState& exceptionState) { ret
urn cloneNode(true, exceptionState); } |
| 110 | 107 |
| 111 StyleSheetList* styleSheets(); | 108 StyleSheetList* styleSheets(); |
| 112 | 109 |
| 113 virtual void trace(Visitor*) override; | 110 virtual void trace(Visitor*) override; |
| 114 | 111 |
| 115 private: | 112 private: |
| 116 ShadowRoot(Document&); | 113 ShadowRoot(Document&); |
| 117 virtual ~ShadowRoot(); | 114 virtual ~ShadowRoot(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 146 { | 143 { |
| 147 return adjustedFocusedElement(); | 144 return adjustedFocusedElement(); |
| 148 } | 145 } |
| 149 | 146 |
| 150 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 147 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
| 151 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 148 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
| 152 | 149 |
| 153 } // namespace blink | 150 } // namespace blink |
| 154 | 151 |
| 155 #endif // ShadowRoot_h | 152 #endif // ShadowRoot_h |
| OLD | NEW |