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

Side by Side Diff: sky/engine/core/css/CSSComputedStyleDeclaration.cpp

Issue 1075023002: Remove CSS table-layout property. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | sky/engine/core/css/CSSPrimitiveValueMappings.h » ('j') | 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) 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. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 CSSPropertyOverflowWrap, 143 CSSPropertyOverflowWrap,
144 CSSPropertyOverflowX, 144 CSSPropertyOverflowX,
145 CSSPropertyOverflowY, 145 CSSPropertyOverflowY,
146 CSSPropertyPaddingBottom, 146 CSSPropertyPaddingBottom,
147 CSSPropertyPaddingLeft, 147 CSSPropertyPaddingLeft,
148 CSSPropertyPaddingRight, 148 CSSPropertyPaddingRight,
149 CSSPropertyPaddingTop, 149 CSSPropertyPaddingTop,
150 CSSPropertyPointerEvents, 150 CSSPropertyPointerEvents,
151 CSSPropertyPosition, 151 CSSPropertyPosition,
152 CSSPropertyRight, 152 CSSPropertyRight,
153 CSSPropertyTableLayout,
154 CSSPropertyTabSize, 153 CSSPropertyTabSize,
155 CSSPropertyTextAlign, 154 CSSPropertyTextAlign,
156 CSSPropertyTextAlignLast, 155 CSSPropertyTextAlignLast,
157 CSSPropertyTextDecoration, 156 CSSPropertyTextDecoration,
158 CSSPropertyTextDecorationLine, 157 CSSPropertyTextDecorationLine,
159 CSSPropertyTextDecorationStyle, 158 CSSPropertyTextDecorationStyle,
160 CSSPropertyTextDecorationColor, 159 CSSPropertyTextDecorationColor,
161 CSSPropertyTextJustify, 160 CSSPropertyTextJustify,
162 CSSPropertyTextUnderlinePosition, 161 CSSPropertyTextUnderlinePosition,
163 CSSPropertyTextIndent, 162 CSSPropertyTextIndent,
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 case CSSPropertyPaddingLeft: { 1569 case CSSPropertyPaddingLeft: {
1571 Length paddingLeft = style->paddingLeft(); 1570 Length paddingLeft = style->paddingLeft();
1572 if (paddingLeft.isFixed() || !renderer || !renderer->isBox()) 1571 if (paddingLeft.isFixed() || !renderer || !renderer->isBox())
1573 return pixelValueForLength(paddingLeft, *style); 1572 return pixelValueForLength(paddingLeft, *style);
1574 return pixelValue(toRenderBox(renderer)->computedCSSPaddingLeft(), * style); 1573 return pixelValue(toRenderBox(renderer)->computedCSSPaddingLeft(), * style);
1575 } 1574 }
1576 case CSSPropertyPosition: 1575 case CSSPropertyPosition:
1577 return cssValuePool().createValue(style->position()); 1576 return cssValuePool().createValue(style->position());
1578 case CSSPropertyRight: 1577 case CSSPropertyRight:
1579 return valueForPositionOffset(*style, CSSPropertyRight, renderer); 1578 return valueForPositionOffset(*style, CSSPropertyRight, renderer);
1580 case CSSPropertyTableLayout:
1581 return cssValuePool().createValue(style->tableLayout());
1582 case CSSPropertyTextAlign: 1579 case CSSPropertyTextAlign:
1583 return cssValuePool().createValue(style->textAlign()); 1580 return cssValuePool().createValue(style->textAlign());
1584 case CSSPropertyTextAlignLast: 1581 case CSSPropertyTextAlignLast:
1585 return cssValuePool().createValue(style->textAlignLast()); 1582 return cssValuePool().createValue(style->textAlignLast());
1586 case CSSPropertyTextDecoration: 1583 case CSSPropertyTextDecoration:
1587 if (RuntimeEnabledFeatures::css3TextDecorationsEnabled()) 1584 if (RuntimeEnabledFeatures::css3TextDecorationsEnabled())
1588 return valuesForShorthandProperty(textDecorationShorthand()); 1585 return valuesForShorthandProperty(textDecorationShorthand());
1589 // Fall through. 1586 // Fall through.
1590 case CSSPropertyTextDecorationLine: 1587 case CSSPropertyTextDecorationLine:
1591 return renderTextDecorationFlagsToCSSValue(style->textDecoration()); 1588 return renderTextDecorationFlagsToCSSValue(style->textDecoration());
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 2242 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
2246 CSSPropertyB ackgroundClip }; 2243 CSSPropertyB ackgroundClip };
2247 2244
2248 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); 2245 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
2249 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator)))); 2246 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator))));
2250 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator)))); 2247 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator))));
2251 return list.release(); 2248 return list.release();
2252 } 2249 }
2253 2250
2254 } // namespace blink 2251 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/CSSPrimitiveValueMappings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698