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

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

Issue 1006723003: Fix template angle bracket syntax in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months 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
« no previous file with comments | « Source/core/dom/NodeRareData.h ('k') | Source/core/dom/Range.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 if (renderer && !isRendererReparented(renderer)) 242 if (renderer && !isRendererReparented(renderer))
243 return renderer; 243 return renderer;
244 } 244 }
245 return 0; 245 return 0;
246 } 246 }
247 247
248 LayoutObject* nextInTopLayer(const Element& element) 248 LayoutObject* nextInTopLayer(const Element& element)
249 { 249 {
250 if (!element.isInTopLayer()) 250 if (!element.isInTopLayer())
251 return 0; 251 return 0;
252 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements = ele ment.document().topLayerElements(); 252 const WillBeHeapVector<RefPtrWillBeMember<Element>>& topLayerElements = elem ent.document().topLayerElements();
253 size_t position = topLayerElements.find(&element); 253 size_t position = topLayerElements.find(&element);
254 ASSERT(position != kNotFound); 254 ASSERT(position != kNotFound);
255 for (size_t i = position + 1; i < topLayerElements.size(); ++i) { 255 for (size_t i = position + 1; i < topLayerElements.size(); ++i) {
256 if (LayoutObject* renderer = topLayerElements[i]->layoutObject()) 256 if (LayoutObject* renderer = topLayerElements[i]->layoutObject())
257 return renderer; 257 return renderer;
258 } 258 }
259 return 0; 259 return 0;
260 } 260 }
261 261
262 } 262 }
263 263
264 } // namespace 264 } // namespace
OLDNEW
« no previous file with comments | « Source/core/dom/NodeRareData.h ('k') | Source/core/dom/Range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698