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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2292033002: [css-grid] Fix 1% regression on system_health.memory_desktop (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | 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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 for (size_t i = shadowList->shadows().size(); i--; ) { 1996 for (size_t i = shadowList->shadows().size(); i--; ) {
1997 if (shadowList->shadows()[i].color().isCurrentColor()) 1997 if (shadowList->shadows()[i].color().isCurrentColor())
1998 return true; 1998 return true;
1999 } 1999 }
2000 return false; 2000 return false;
2001 } 2001 }
2002 2002
2003 static inline Vector<GridTrackSize> initialGridAutoTracks() 2003 static inline Vector<GridTrackSize> initialGridAutoTracks()
2004 { 2004 {
2005 Vector<GridTrackSize> trackSizeList; 2005 Vector<GridTrackSize> trackSizeList;
2006 trackSizeList.append(GridTrackSize(Length(Auto))); 2006 trackSizeList.reserveInitialCapacity(1);
jfernandez 2016/08/30 11:05:13 Wouldn't make more sense to pay with Vector's inli
2007 trackSizeList.uncheckedAppend(GridTrackSize(Length(Auto)));
2007 return trackSizeList; 2008 return trackSizeList;
2008 } 2009 }
2009 2010
2010 Vector<GridTrackSize> ComputedStyle::initialGridAutoColumns() 2011 Vector<GridTrackSize> ComputedStyle::initialGridAutoColumns()
2011 { 2012 {
2012 return initialGridAutoTracks(); 2013 return initialGridAutoTracks();
2013 } 2014 }
2014 2015
2015 Vector<GridTrackSize> ComputedStyle::initialGridAutoRows() 2016 Vector<GridTrackSize> ComputedStyle::initialGridAutoRows()
2016 { 2017 {
(...skipping 10 matching lines...) Expand all
2027 if (value < 0) 2028 if (value < 0)
2028 fvalue -= 0.5f; 2029 fvalue -= 0.5f;
2029 else 2030 else
2030 fvalue += 0.5f; 2031 fvalue += 0.5f;
2031 } 2032 }
2032 2033
2033 return roundForImpreciseConversion<int>(fvalue / zoomFactor); 2034 return roundForImpreciseConversion<int>(fvalue / zoomFactor);
2034 } 2035 }
2035 2036
2036 } // namespace blink 2037 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698