Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: Source/core/dom/shadow/ShadowRoot.h

Issue 135643004: Make TreeScope::baseURL pure virtual (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made TreeScope::baseURL virtual Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698