| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 return m_elementsById && m_elementsById->containsMultiple(id.impl()); | 157 return m_elementsById && m_elementsById->containsMultiple(id.impl()); |
| 158 } | 158 } |
| 159 | 159 |
| 160 Node* nodeFromPoint(const Handle<Document>&, int x, int y, LayoutPoint* localPoi
nt = 0); | 160 Node* nodeFromPoint(const Handle<Document>&, int x, int y, LayoutPoint* localPoi
nt = 0); |
| 161 Result<TreeScope> commonTreeScope(Node*, Node*); | 161 Result<TreeScope> commonTreeScope(Node*, Node*); |
| 162 | 162 |
| 163 template<> class AcceptTrait<TreeScope> { | 163 template<> class AcceptTrait<TreeScope> { |
| 164 public: | 164 public: |
| 165 static void visit(Visitor* v, const TreeScope* self) { self->visitWith(v); } | 165 static void visit(Visitor* v, const TreeScope* self) { self->visitWith(v); } |
| 166 static intptr_t getTypeMarker() { return 0; } | 166 static intptr_t getTypeMarker() { return 0; } |
| 167 static void check(Visitor* visitor, const TreeScope* t) { } | 167 static void checkTypeMarker(Visitor* visitor, const TreeScope* t) { } |
| 168 static void accept(Visitor* visitor, void* self) | 168 static void accept(Visitor* visitor, void* self) |
| 169 { | 169 { |
| 170 static_cast<TreeScope*>(self)->accept(visitor); | 170 static_cast<TreeScope*>(self)->accept(visitor); |
| 171 } | 171 } |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 } // namespace WebCore | 174 } // namespace WebCore |
| 175 | 175 |
| 176 #endif // TreeScope_h | 176 #endif // TreeScope_h |
| OLD | NEW |