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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2318993002: [css-grid] Fix performance regression in grid layout (Closed)
Patch Set: Patch for landing 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 637cd049db5789036fb694b2256cb606efe0902a..aa9846980de9bf16603cf9bc472aef975b43143d 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -719,7 +719,7 @@ static CSSValue* specifiedValueForGridTrackSize(const GridTrackSize& trackSize,
{
switch (trackSize.type()) {
case LengthTrackSizing:
- return specifiedValueForGridTrackBreadth(trackSize.length(), style);
+ return specifiedValueForGridTrackBreadth(trackSize.minTrackBreadth(), style);
case MinMaxTrackSizing: {
auto* minMaxTrackBreadths = CSSFunctionValue::create(CSSValueMinmax);
minMaxTrackBreadths->append(*specifiedValueForGridTrackBreadth(trackSize.minTrackBreadth(), style));
@@ -727,7 +727,7 @@ static CSSValue* specifiedValueForGridTrackSize(const GridTrackSize& trackSize,
return minMaxTrackBreadths;
} case FitContentTrackSizing: {
auto* fitContentTrackBreadth = CSSFunctionValue::create(CSSValueFitContent);
- fitContentTrackBreadth->append(*specifiedValueForGridTrackBreadth(trackSize.length(), style));
+ fitContentTrackBreadth->append(*specifiedValueForGridTrackBreadth(trackSize.fitContentTrackBreadth(), style));
return fitContentTrackBreadth;
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698