OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |