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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 String innerHTML() const; | 121 String innerHTML() const; |
122 void setInnerHTML(const String&, ExceptionState&); | 122 void setInnerHTML(const String&, ExceptionState&); |
123 | 123 |
124 PassRefPtr<Node> cloneNode(bool, ExceptionState&); | 124 PassRefPtr<Node> cloneNode(bool, ExceptionState&); |
125 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } | 125 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } |
126 | 126 |
127 StyleSheetList* styleSheets(); | 127 StyleSheetList* styleSheets(); |
128 | 128 |
129 // FIXME: Implement baseURI-setting, see http://crbug.com/311682 | 129 // FIXME: Implement baseURI-setting, see http://crbug.com/311682 |
| 130 virtual const KURL& baseURL() const OVERRIDE FINAL { return document().baseU
RL(); } |
130 // virtual KURL baseURI() const OVERRIDE; | 131 // virtual KURL baseURI() const OVERRIDE; |
131 // void setBaseURI(const String&); | 132 // void setBaseURI(const String&); |
132 | 133 |
133 private: | 134 private: |
134 ShadowRoot(Document*, ShadowRootType); | 135 ShadowRoot(Document*, ShadowRootType); |
135 virtual ~ShadowRoot(); | 136 virtual ~ShadowRoot(); |
136 | 137 |
137 virtual void dispose() OVERRIDE; | 138 virtual void dispose() OVERRIDE; |
138 virtual bool childTypeAllowed(NodeType) const OVERRIDE; | 139 virtual bool childTypeAllowed(NodeType) const OVERRIDE; |
139 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 140 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; |
(...skipping 26 matching lines...) Expand all Loading... |
166 { | 167 { |
167 return adjustedFocusedElement(); | 168 return adjustedFocusedElement(); |
168 } | 169 } |
169 | 170 |
170 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 171 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
171 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode() && tre
eScope->rootNode()->isShadowRoot(), treeScope.rootNode() && treeScope.rootNode()
->isShadowRoot()); | 172 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode() && tre
eScope->rootNode()->isShadowRoot(), treeScope.rootNode() && treeScope.rootNode()
->isShadowRoot()); |
172 | 173 |
173 } // namespace | 174 } // namespace |
174 | 175 |
175 #endif | 176 #endif |
OLD | NEW |