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

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

Issue 2566403003: Migrate WTF::Vector::append() to ::push_back() [part 3 of N] (Closed)
Patch Set: 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 8 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
9 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 9 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
10 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 10 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 bool willChangeContents = false; 701 bool willChangeContents = false;
702 bool willChangeScrollPosition = false; 702 bool willChangeScrollPosition = false;
703 Vector<CSSPropertyID> willChangeProperties; 703 Vector<CSSPropertyID> willChangeProperties;
704 704
705 if (value.isIdentifierValue()) { 705 if (value.isIdentifierValue()) {
706 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueAuto); 706 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueAuto);
707 } else { 707 } else {
708 DCHECK(value.isValueList()); 708 DCHECK(value.isValueList());
709 for (auto& willChangeValue : toCSSValueList(value)) { 709 for (auto& willChangeValue : toCSSValueList(value)) {
710 if (willChangeValue->isCustomIdentValue()) 710 if (willChangeValue->isCustomIdentValue())
711 willChangeProperties.append( 711 willChangeProperties.push_back(
712 toCSSCustomIdentValue(*willChangeValue).valueAsPropertyID()); 712 toCSSCustomIdentValue(*willChangeValue).valueAsPropertyID());
713 else if (toCSSIdentifierValue(*willChangeValue).getValueID() == 713 else if (toCSSIdentifierValue(*willChangeValue).getValueID() ==
714 CSSValueContents) 714 CSSValueContents)
715 willChangeContents = true; 715 willChangeContents = true;
716 else if (toCSSIdentifierValue(*willChangeValue).getValueID() == 716 else if (toCSSIdentifierValue(*willChangeValue).getValueID() ==
717 CSSValueScrollPosition) 717 CSSValueScrollPosition)
718 willChangeScrollPosition = true; 718 willChangeScrollPosition = true;
719 else 719 else
720 NOTREACHED(); 720 NOTREACHED();
721 } 721 }
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 state.style()->setCaretColor( 1033 state.style()->setCaretColor(
1034 StyleBuilderConverter::convertStyleAutoColor(state, value)); 1034 StyleBuilderConverter::convertStyleAutoColor(state, value));
1035 } 1035 }
1036 if (state.applyPropertyToVisitedLinkStyle()) { 1036 if (state.applyPropertyToVisitedLinkStyle()) {
1037 state.style()->setVisitedLinkCaretColor( 1037 state.style()->setVisitedLinkCaretColor(
1038 StyleBuilderConverter::convertStyleAutoColor(state, value, true)); 1038 StyleBuilderConverter::convertStyleAutoColor(state, value, true));
1039 } 1039 }
1040 } 1040 }
1041 1041
1042 } // namespace blink 1042 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698