Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: Source/core/dom/TreeScope.cpp

Issue 106423003: [oilpan] Rename visit to mark. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Fix typo Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698