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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 DOMSelection* getSelection() const; | 85 DOMSelection* getSelection() const; |
86 | 86 |
87 // Find first anchor with the given name. | 87 // Find first anchor with the given name. |
88 // First searches for an element with the given ID, but if that fails, then
looks | 88 // First searches for an element with the given ID, but if that fails, then
looks |
89 // for an anchor with the given name. ID matching is always case sensitive,
but | 89 // for an anchor with the given name. ID matching is always case sensitive,
but |
90 // Anchor name matching is case sensitive in strict mode and not case sensit
ive in | 90 // Anchor name matching is case sensitive in strict mode and not case sensit
ive in |
91 // quirks mode for historical compatibility reasons. | 91 // quirks mode for historical compatibility reasons. |
92 Element* findAnchor(const String& name); | 92 Element* findAnchor(const String& name); |
93 | 93 |
94 bool applyAuthorStyles() const; | |
95 | |
96 // Used by the basic DOM mutation methods (e.g., appendChild()). | 94 // Used by the basic DOM mutation methods (e.g., appendChild()). |
97 void adoptIfNeeded(Node&); | 95 void adoptIfNeeded(Node&); |
98 | 96 |
99 ContainerNode& rootNode() const { return *m_rootNode; } | 97 ContainerNode& rootNode() const { return *m_rootNode; } |
100 | 98 |
101 IdTargetObserverRegistry& idTargetObserverRegistry() const { return *m_idTar
getObserverRegistry.get(); } | 99 IdTargetObserverRegistry& idTargetObserverRegistry() const { return *m_idTar
getObserverRegistry.get(); } |
102 | 100 |
103 | 101 |
104 #if !ENABLE(OILPAN) | 102 #if !ENABLE(OILPAN) |
105 // Nodes belonging to this scope hold guard references - | 103 // Nodes belonging to this scope hold guard references - |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 } | 205 } |
208 | 206 |
209 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) | 207 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) |
210 | 208 |
211 HitTestResult hitTestInDocument(const Document*, int x, int y); | 209 HitTestResult hitTestInDocument(const Document*, int x, int y); |
212 TreeScope* commonTreeScope(Node*, Node*); | 210 TreeScope* commonTreeScope(Node*, Node*); |
213 | 211 |
214 } // namespace blink | 212 } // namespace blink |
215 | 213 |
216 #endif // TreeScope_h | 214 #endif // TreeScope_h |
OLD | NEW |