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

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

Issue 2662573002: [css-align] Implement place-content alignment shorthand (Closed)
Patch Set: Patch rebased. Created 3 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
8 * Copyright (C) 2015 Google Inc. All rights reserved. 8 * Copyright (C) 2015 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2307 return list; 2307 return list;
2308 } 2308 }
2309 return value; 2309 return value;
2310 } 2310 }
2311 case CSSPropertyDirection: 2311 case CSSPropertyDirection:
2312 return CSSIdentifierValue::create(style.direction()); 2312 return CSSIdentifierValue::create(style.direction());
2313 case CSSPropertyDisplay: 2313 case CSSPropertyDisplay:
2314 return CSSIdentifierValue::create(style.display()); 2314 return CSSIdentifierValue::create(style.display());
2315 case CSSPropertyEmptyCells: 2315 case CSSPropertyEmptyCells:
2316 return CSSIdentifierValue::create(style.emptyCells()); 2316 return CSSIdentifierValue::create(style.emptyCells());
2317 case CSSPropertyPlaceContent: {
2318 // TODO (jfernandez): The spec states that we should return the specified
2319 // value.
2320 return valuesForShorthandProperty(placeContentShorthand(), style,
2321 layoutObject, styledNode,
2322 allowVisitedStyle);
2323 }
2317 case CSSPropertyAlignContent: 2324 case CSSPropertyAlignContent:
2318 return valueForContentPositionAndDistributionWithOverflowAlignment( 2325 return valueForContentPositionAndDistributionWithOverflowAlignment(
2319 style.alignContent(), CSSValueStretch); 2326 style.alignContent(), CSSValueStretch);
2320 case CSSPropertyAlignItems: 2327 case CSSPropertyAlignItems:
2321 return valueForItemPositionWithOverflowAlignment(style.alignItems()); 2328 return valueForItemPositionWithOverflowAlignment(style.alignItems());
2322 case CSSPropertyAlignSelf: 2329 case CSSPropertyAlignSelf:
2323 return valueForItemPositionWithOverflowAlignment(style.alignSelf()); 2330 return valueForItemPositionWithOverflowAlignment(style.alignSelf());
2324 case CSSPropertyFlex: 2331 case CSSPropertyFlex:
2325 return valuesForShorthandProperty(flexShorthand(), style, layoutObject, 2332 return valuesForShorthandProperty(flexShorthand(), style, layoutObject,
2326 styledNode, allowVisitedStyle); 2333 styledNode, allowVisitedStyle);
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
3665 case CSSPropertyAll: 3672 case CSSPropertyAll:
3666 return nullptr; 3673 return nullptr;
3667 default: 3674 default:
3668 break; 3675 break;
3669 } 3676 }
3670 ASSERT_NOT_REACHED(); 3677 ASSERT_NOT_REACHED();
3671 return nullptr; 3678 return nullptr;
3672 } 3679 }
3673 3680
3674 } // namespace blink 3681 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/css/StylePropertySerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698