| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void removedLastRefToScope(); | 106 void removedLastRefToScope(); |
| 107 | 107 |
| 108 bool isInclusiveAncestorOf(const TreeScope&) const; | 108 bool isInclusiveAncestorOf(const TreeScope&) const; |
| 109 unsigned short comparePosition(const TreeScope&) const; | 109 unsigned short comparePosition(const TreeScope&) const; |
| 110 | 110 |
| 111 const TreeScope* commonAncestorTreeScope(const TreeScope& other) const; | 111 const TreeScope* commonAncestorTreeScope(const TreeScope& other) const; |
| 112 TreeScope* commonAncestorTreeScope(TreeScope& other); | 112 TreeScope* commonAncestorTreeScope(TreeScope& other); |
| 113 | 113 |
| 114 Element* getElementByAccessKey(const String& key) const; | 114 Element* getElementByAccessKey(const String& key) const; |
| 115 | 115 |
| 116 virtual void trace(Visitor*); | |
| 117 | |
| 118 ScopedStyleResolver* scopedStyleResolver() const { return m_scopedStyleResol
ver.get(); } | 116 ScopedStyleResolver* scopedStyleResolver() const { return m_scopedStyleResol
ver.get(); } |
| 119 ScopedStyleResolver& ensureScopedStyleResolver(); | 117 ScopedStyleResolver& ensureScopedStyleResolver(); |
| 120 void clearScopedStyleResolver(); | 118 void clearScopedStyleResolver(); |
| 121 | 119 |
| 122 protected: | 120 protected: |
| 123 TreeScope(ContainerNode&, Document&); | 121 TreeScope(ContainerNode&, Document&); |
| 124 explicit TreeScope(Document&); | 122 explicit TreeScope(Document&); |
| 125 virtual ~TreeScope(); | 123 virtual ~TreeScope(); |
| 126 | 124 |
| 127 #if !ENABLE(OILPAN) | 125 #if !ENABLE(OILPAN) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 }; | 170 }; |
| 173 | 171 |
| 174 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) | 172 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) |
| 175 | 173 |
| 176 HitTestResult hitTestInDocument(const Document*, int x, int y); | 174 HitTestResult hitTestInDocument(const Document*, int x, int y); |
| 177 TreeScope* commonTreeScope(Node*, Node*); | 175 TreeScope* commonTreeScope(Node*, Node*); |
| 178 | 176 |
| 179 } // namespace blink | 177 } // namespace blink |
| 180 | 178 |
| 181 #endif // TreeScope_h | 179 #endif // TreeScope_h |
| OLD | NEW |