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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 579565e066cf12e57ea1587261104206f944ed2b..532cb45559541de79a109993cb5f8f3e8272a3fd 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -2003,7 +2003,8 @@ bool ComputedStyle::shadowListHasCurrentColor(const ShadowList* shadowList)
static inline Vector<GridTrackSize> initialGridAutoTracks()
{
Vector<GridTrackSize> trackSizeList;
- trackSizeList.append(GridTrackSize(Length(Auto)));
+ trackSizeList.reserveInitialCapacity(1);
jfernandez 2016/08/30 11:05:13 Wouldn't make more sense to pay with Vector's inli
+ trackSizeList.uncheckedAppend(GridTrackSize(Length(Auto)));
return trackSizeList;
}
« 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