| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 size_t indexB = treeScopesB.size(); | 411 size_t indexB = treeScopesB.size(); |
| 412 | 412 |
| 413 for (; indexA > 0 && indexB > 0 && treeScopesA[indexA - 1] == treeScopesB[in
dexB - 1]; --indexA, --indexB) { } | 413 for (; indexA > 0 && indexB > 0 && treeScopesA[indexA - 1] == treeScopesB[in
dexB - 1]; --indexA, --indexB) { } |
| 414 | 414 |
| 415 if (treeScopesA[indexA] == treeScopesB[indexB]) | 415 if (treeScopesA[indexA] == treeScopesB[indexB]) |
| 416 return treeScopesA[indexA]; | 416 return treeScopesA[indexA]; |
| 417 | 417 |
| 418 return nullptr; | 418 return nullptr; |
| 419 } | 419 } |
| 420 | 420 |
| 421 void TreeScope::visitWith(Visitor* v) const | 421 void TreeScope::adjustAndMark(Visitor* v) const |
| 422 { | 422 { |
| 423 ASSERT(this == noDocumentInstance()); | 423 ASSERT(this == noDocumentInstance()); |
| 424 v->visit(this, &TraceTrait<TreeScope>::trace); | 424 v->mark(this, &TraceTrait<TreeScope>::trace); |
| 425 } | 425 } |
| 426 | 426 |
| 427 } // namespace WebCore | 427 } // namespace WebCore |
| OLD | NEW |