| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 Node* ancestorInThisScope(Node*) const; | 65 Node* ancestorInThisScope(Node*) const; |
| 66 | 66 |
| 67 Element* elementFromPoint(int x, int y) const; | 67 Element* elementFromPoint(int x, int y) const; |
| 68 | 68 |
| 69 // For accessibility. | 69 // For accessibility. |
| 70 bool shouldCacheLabelsByForAttribute() const { return m_labelsByForAttribute
; } | 70 bool shouldCacheLabelsByForAttribute() const { return m_labelsByForAttribute
; } |
| 71 | 71 |
| 72 DOMSelection* getSelection() const; | 72 DOMSelection* getSelection() const; |
| 73 | 73 |
| 74 bool applyAuthorStyles() const; | |
| 75 | |
| 76 // Used by the basic DOM mutation methods (e.g., appendChild()). | 74 // Used by the basic DOM mutation methods (e.g., appendChild()). |
| 77 void adoptIfNeeded(Node&); | 75 void adoptIfNeeded(Node&); |
| 78 | 76 |
| 79 ContainerNode& rootNode() const { return *m_rootNode; } | 77 ContainerNode& rootNode() const { return *m_rootNode; } |
| 80 | 78 |
| 81 bool hasSameStyles(TreeScope&); | 79 bool hasSameStyles(TreeScope&); |
| 82 | 80 |
| 83 #if !ENABLE(OILPAN) | 81 #if !ENABLE(OILPAN) |
| 84 // Nodes belonging to this scope hold guard references - | 82 // Nodes belonging to this scope hold guard references - |
| 85 // these are enough to keep the scope from being destroyed, but | 83 // these are enough to keep the scope from being destroyed, but |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 }; | 167 }; |
| 170 | 168 |
| 171 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) | 169 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) |
| 172 | 170 |
| 173 HitTestResult hitTestInDocument(const Document*, int x, int y); | 171 HitTestResult hitTestInDocument(const Document*, int x, int y); |
| 174 TreeScope* commonTreeScope(Node*, Node*); | 172 TreeScope* commonTreeScope(Node*, Node*); |
| 175 | 173 |
| 176 } // namespace blink | 174 } // namespace blink |
| 177 | 175 |
| 178 #endif // SKY_ENGINE_CORE_DOM_TREESCOPE_H_ | 176 #endif // SKY_ENGINE_CORE_DOM_TREESCOPE_H_ |
| OLD | NEW |