| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 #endif | 102 #endif |
| 103 | 103 |
| 104 void removedLastRefToScope(); | 104 void removedLastRefToScope(); |
| 105 | 105 |
| 106 bool isInclusiveAncestorOf(const TreeScope&) const; | 106 bool isInclusiveAncestorOf(const TreeScope&) const; |
| 107 unsigned short comparePosition(const TreeScope&) const; | 107 unsigned short comparePosition(const TreeScope&) const; |
| 108 | 108 |
| 109 const TreeScope* commonAncestorTreeScope(const TreeScope& other) const; | 109 const TreeScope* commonAncestorTreeScope(const TreeScope& other) const; |
| 110 TreeScope* commonAncestorTreeScope(TreeScope& other); | 110 TreeScope* commonAncestorTreeScope(TreeScope& other); |
| 111 | 111 |
| 112 Element* getElementByAccessKey(const String& key) const; | |
| 113 | |
| 114 ScopedStyleResolver& scopedStyleResolver() const { return *m_scopedStyleReso
lver; } | 112 ScopedStyleResolver& scopedStyleResolver() const { return *m_scopedStyleReso
lver; } |
| 115 | 113 |
| 116 protected: | 114 protected: |
| 117 TreeScope(ContainerNode&, Document&); | 115 TreeScope(ContainerNode&, Document&); |
| 118 explicit TreeScope(Document&); | 116 explicit TreeScope(Document&); |
| 119 virtual ~TreeScope(); | 117 virtual ~TreeScope(); |
| 120 | 118 |
| 121 #if !ENABLE(OILPAN) | 119 #if !ENABLE(OILPAN) |
| 122 void destroyTreeScopeData(); | 120 void destroyTreeScopeData(); |
| 123 #endif | 121 #endif |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 }; | 162 }; |
| 165 | 163 |
| 166 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) | 164 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) |
| 167 | 165 |
| 168 HitTestResult hitTestInDocument(const Document*, int x, int y); | 166 HitTestResult hitTestInDocument(const Document*, int x, int y); |
| 169 TreeScope* commonTreeScope(Node*, Node*); | 167 TreeScope* commonTreeScope(Node*, Node*); |
| 170 | 168 |
| 171 } // namespace blink | 169 } // namespace blink |
| 172 | 170 |
| 173 #endif // SKY_ENGINE_CORE_DOM_TREESCOPE_H_ | 171 #endif // SKY_ENGINE_CORE_DOM_TREESCOPE_H_ |
| OLD | NEW |