| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 ScopedStyleResolver& ensureScopedStyleResolver(); | 128 ScopedStyleResolver& ensureScopedStyleResolver(); |
| 129 void clearScopedStyleResolver(); | 129 void clearScopedStyleResolver(); |
| 130 | 130 |
| 131 SVGTreeScopeResources& ensureSVGTreeScopedResources(); | 131 SVGTreeScopeResources& ensureSVGTreeScopedResources(); |
| 132 | 132 |
| 133 protected: | 133 protected: |
| 134 TreeScope(ContainerNode&, Document&); | 134 TreeScope(ContainerNode&, Document&); |
| 135 TreeScope(Document&); | 135 TreeScope(Document&); |
| 136 virtual ~TreeScope(); | 136 virtual ~TreeScope(); |
| 137 | 137 |
| 138 void resetTreeScope(); |
| 138 void setDocument(Document& document) { m_document = &document; } | 139 void setDocument(Document& document) { m_document = &document; } |
| 139 void setParentTreeScope(TreeScope&); | 140 void setParentTreeScope(TreeScope&); |
| 140 void setNeedsStyleRecalcForViewportUnits(); | 141 void setNeedsStyleRecalcForViewportUnits(); |
| 141 | 142 |
| 142 private: | 143 private: |
| 143 Member<ContainerNode> m_rootNode; | 144 Member<ContainerNode> m_rootNode; |
| 144 Member<Document> m_document; | 145 Member<Document> m_document; |
| 145 Member<TreeScope> m_parentTreeScope; | 146 Member<TreeScope> m_parentTreeScope; |
| 146 | 147 |
| 147 Member<DocumentOrderedMap> m_elementsById; | 148 Member<DocumentOrderedMap> m_elementsById; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 172 | 173 |
| 173 HitTestResult hitTestInDocument( | 174 HitTestResult hitTestInDocument( |
| 174 const Document*, | 175 const Document*, |
| 175 int x, | 176 int x, |
| 176 int y, | 177 int y, |
| 177 const HitTestRequest& = HitTestRequest::ReadOnly | HitTestRequest::Active); | 178 const HitTestRequest& = HitTestRequest::ReadOnly | HitTestRequest::Active); |
| 178 | 179 |
| 179 } // namespace blink | 180 } // namespace blink |
| 180 | 181 |
| 181 #endif // TreeScope_h | 182 #endif // TreeScope_h |
| OLD | NEW |