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

Side by Side Diff: third_party/WebKit/Source/core/events/EventPath.cpp

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 for (const auto& insertionPoint : insertionPoints) { 129 for (const auto& insertionPoint : insertionPoints) {
130 if (insertionPoint->isShadowInsertionPoint()) { 130 if (insertionPoint->isShadowInsertionPoint()) {
131 ShadowRoot* containingShadowRoot = 131 ShadowRoot* containingShadowRoot =
132 insertionPoint->containingShadowRoot(); 132 insertionPoint->containingShadowRoot();
133 DCHECK(containingShadowRoot); 133 DCHECK(containingShadowRoot);
134 if (!containingShadowRoot->isOldest()) 134 if (!containingShadowRoot->isOldest())
135 nodesInPath.append(containingShadowRoot->olderShadowRoot()); 135 nodesInPath.append(containingShadowRoot->olderShadowRoot());
136 } 136 }
137 nodesInPath.append(insertionPoint); 137 nodesInPath.append(insertionPoint);
138 } 138 }
139 current = insertionPoints.last(); 139 current = insertionPoints.back();
140 continue; 140 continue;
141 } 141 }
142 if (current->isChildOfV1ShadowHost()) { 142 if (current->isChildOfV1ShadowHost()) {
143 if (HTMLSlotElement* slot = current->assignedSlot()) { 143 if (HTMLSlotElement* slot = current->assignedSlot()) {
144 current = slot; 144 current = slot;
145 nodesInPath.append(current); 145 nodesInPath.append(current);
146 continue; 146 continue;
147 } 147 }
148 } 148 }
149 if (current->isShadowRoot()) { 149 if (current->isShadowRoot()) {
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 420
421 DEFINE_TRACE(EventPath) { 421 DEFINE_TRACE(EventPath) {
422 visitor->trace(m_nodeEventContexts); 422 visitor->trace(m_nodeEventContexts);
423 visitor->trace(m_node); 423 visitor->trace(m_node);
424 visitor->trace(m_event); 424 visitor->trace(m_event);
425 visitor->trace(m_treeScopeEventContexts); 425 visitor->trace(m_treeScopeEventContexts);
426 visitor->trace(m_windowEventContext); 426 visitor->trace(m_windowEventContext);
427 } 427 }
428 428
429 } // namespace blink 429 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698