| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |