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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 void destroyTreeScopeData(); | 133 void destroyTreeScopeData(); |
134 void clearDocumentScope(); | 134 void clearDocumentScope(); |
135 void setDocumentScope(Document* document) | 135 void setDocumentScope(Document* document) |
136 { | 136 { |
137 ASSERT(document); | 137 ASSERT(document); |
138 m_documentScope = document; | 138 m_documentScope = document; |
139 } | 139 } |
140 | 140 |
141 bool hasGuardRefCount() const { return m_guardRefCount; } | 141 bool hasGuardRefCount() const { return m_guardRefCount; } |
142 | 142 |
| 143 void setNeedsStyleRecalcForViewportUnits(); |
| 144 |
143 private: | 145 private: |
144 TreeScope(); | 146 TreeScope(); |
145 | 147 |
146 virtual void dispose() { } | 148 virtual void dispose() { } |
147 | 149 |
148 int refCount() const; | 150 int refCount() const; |
149 #if SECURITY_ASSERT_ENABLED | 151 #if SECURITY_ASSERT_ENABLED |
150 bool deletionHasBegun(); | 152 bool deletionHasBegun(); |
151 void beginDeletion(); | 153 void beginDeletion(); |
152 #else | 154 #else |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b
); } | 189 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b
); } |
188 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b
); } | 190 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b
); } |
189 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
); } |
190 | 192 |
191 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint
= 0); | 193 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint
= 0); |
192 TreeScope* commonTreeScope(Node*, Node*); | 194 TreeScope* commonTreeScope(Node*, Node*); |
193 | 195 |
194 } // namespace WebCore | 196 } // namespace WebCore |
195 | 197 |
196 #endif // TreeScope_h | 198 #endif // TreeScope_h |
OLD | NEW |