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

Side by Side Diff: Source/core/dom/TreeScope.h

Issue 135643004: Make TreeScope::baseURL pure virtual (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle fallback in baseURL 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 | « no previous file | Source/core/dom/TreeScope.cpp » ('j') | Source/core/dom/TreeScope.cpp » ('J')
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 * Copyright (C) 2012 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2012 Apple Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 119 }
120 } 120 }
121 121
122 void removedLastRefToScope(); 122 void removedLastRefToScope();
123 123
124 bool isInclusiveAncestorOf(const TreeScope&) const; 124 bool isInclusiveAncestorOf(const TreeScope&) const;
125 unsigned short comparePosition(const TreeScope&) const; 125 unsigned short comparePosition(const TreeScope&) const;
126 126
127 Element* getElementByAccessKey(const String& key) const; 127 Element* getElementByAccessKey(const String& key) const;
128 128
129 const KURL& baseURL() const { return m_baseURL; } 129 const KURL& baseURL() const;
130 KURL completeURL(const String&) const; 130 KURL completeURL(const String&) const;
131 131
132 protected: 132 protected:
133 TreeScope(ContainerNode*, Document*); 133 TreeScope(ContainerNode*, Document*);
134 TreeScope(Document*); 134 TreeScope(Document*);
135 virtual ~TreeScope(); 135 virtual ~TreeScope();
136 136
137 void destroyTreeScopeData(); 137 void destroyTreeScopeData();
138 void setDocument(Document& document) { m_document = &document; } 138 void setDocument(Document& document) { m_document = &document; }
139 void setParentTreeScope(TreeScope&); 139 void setParentTreeScope(TreeScope&);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b ); } 191 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b ); }
192 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b ); } 192 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b ); }
193 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b ); } 193 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b ); }
194 194
195 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0); 195 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0);
196 TreeScope* commonTreeScope(Node*, Node*); 196 TreeScope* commonTreeScope(Node*, Node*);
197 197
198 } // namespace WebCore 198 } // namespace WebCore
199 199
200 #endif // TreeScope_h 200 #endif // TreeScope_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/TreeScope.cpp » ('j') | Source/core/dom/TreeScope.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698