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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (Closed)
Patch Set: rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 const ActiveInterpolationsMap& activeInterpolationsMap) { 1188 const ActiveInterpolationsMap& activeInterpolationsMap) {
1189 // TODO(alancutter): Don't apply presentation attribute animations here, 1189 // TODO(alancutter): Don't apply presentation attribute animations here,
1190 // they should instead apply in 1190 // they should instead apply in
1191 // SVGElement::collectStyleForPresentationAttribute(). 1191 // SVGElement::collectStyleForPresentationAttribute().
1192 for (const auto& entry : activeInterpolationsMap) { 1192 for (const auto& entry : activeInterpolationsMap) {
1193 CSSPropertyID property = entry.key.isCSSProperty() 1193 CSSPropertyID property = entry.key.isCSSProperty()
1194 ? entry.key.cssProperty() 1194 ? entry.key.cssProperty()
1195 : entry.key.presentationAttribute(); 1195 : entry.key.presentationAttribute();
1196 if (!CSSPropertyPriorityData<priority>::propertyHasPriority(property)) 1196 if (!CSSPropertyPriorityData<priority>::propertyHasPriority(property))
1197 continue; 1197 continue;
1198 const Interpolation& interpolation = *entry.value.first(); 1198 const Interpolation& interpolation = *entry.value.front();
1199 if (interpolation.isInvalidatableInterpolation()) { 1199 if (interpolation.isInvalidatableInterpolation()) {
1200 InterpolationEnvironment environment(state); 1200 InterpolationEnvironment environment(state);
1201 InvalidatableInterpolation::applyStack(entry.value, environment); 1201 InvalidatableInterpolation::applyStack(entry.value, environment);
1202 } else { 1202 } else {
1203 // TODO(alancutter): Remove this old code path once animations have 1203 // TODO(alancutter): Remove this old code path once animations have
1204 // completely migrated to InterpolationTypes. 1204 // completely migrated to InterpolationTypes.
1205 toStyleInterpolation(interpolation).apply(state); 1205 toStyleInterpolation(interpolation).apply(state);
1206 } 1206 }
1207 } 1207 }
1208 } 1208 }
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 DEFINE_TRACE(StyleResolver) { 1845 DEFINE_TRACE(StyleResolver) {
1846 visitor->trace(m_matchedPropertiesCache); 1846 visitor->trace(m_matchedPropertiesCache);
1847 visitor->trace(m_selectorFilter); 1847 visitor->trace(m_selectorFilter);
1848 visitor->trace(m_styleSharingLists); 1848 visitor->trace(m_styleSharingLists);
1849 visitor->trace(m_pendingStyleSheets); 1849 visitor->trace(m_pendingStyleSheets);
1850 visitor->trace(m_document); 1850 visitor->trace(m_document);
1851 visitor->trace(m_tracker); 1851 visitor->trace(m_tracker);
1852 } 1852 }
1853 1853
1854 } // namespace blink 1854 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryExp.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698