| OLD | NEW |
| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 CSSPropertyWebkitBackgroundClip, | 198 CSSPropertyWebkitBackgroundClip, |
| 199 CSSPropertyWebkitBackgroundComposite, | 199 CSSPropertyWebkitBackgroundComposite, |
| 200 CSSPropertyWebkitBackgroundOrigin, | 200 CSSPropertyWebkitBackgroundOrigin, |
| 201 CSSPropertyWebkitBackgroundSize, | 201 CSSPropertyWebkitBackgroundSize, |
| 202 CSSPropertyWebkitBorderHorizontalSpacing, | 202 CSSPropertyWebkitBorderHorizontalSpacing, |
| 203 CSSPropertyWebkitBorderImage, | 203 CSSPropertyWebkitBorderImage, |
| 204 CSSPropertyWebkitBorderVerticalSpacing, | 204 CSSPropertyWebkitBorderVerticalSpacing, |
| 205 CSSPropertyWebkitBoxDecorationBreak, | 205 CSSPropertyWebkitBoxDecorationBreak, |
| 206 CSSPropertyWebkitBoxShadow, | 206 CSSPropertyWebkitBoxShadow, |
| 207 CSSPropertyWebkitClipPath, | 207 CSSPropertyWebkitClipPath, |
| 208 CSSPropertyWebkitFilter, | 208 CSSPropertyFilter, |
| 209 CSSPropertyAlignContent, | 209 CSSPropertyAlignContent, |
| 210 CSSPropertyAlignItems, | 210 CSSPropertyAlignItems, |
| 211 CSSPropertyAlignSelf, | 211 CSSPropertyAlignSelf, |
| 212 CSSPropertyFlexBasis, | 212 CSSPropertyFlexBasis, |
| 213 CSSPropertyFlexGrow, | 213 CSSPropertyFlexGrow, |
| 214 CSSPropertyFlexShrink, | 214 CSSPropertyFlexShrink, |
| 215 CSSPropertyFlexDirection, | 215 CSSPropertyFlexDirection, |
| 216 CSSPropertyFlexWrap, | 216 CSSPropertyFlexWrap, |
| 217 CSSPropertyJustifyContent, | 217 CSSPropertyJustifyContent, |
| 218 CSSPropertyWebkitFontSmoothing, | 218 CSSPropertyWebkitFontSmoothing, |
| (...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 case CSSPropertyLeft: | 1195 case CSSPropertyLeft: |
| 1196 case CSSPropertyRight: | 1196 case CSSPropertyRight: |
| 1197 case CSSPropertyTop: | 1197 case CSSPropertyTop: |
| 1198 case CSSPropertyPerspectiveOrigin: | 1198 case CSSPropertyPerspectiveOrigin: |
| 1199 case CSSPropertyWebkitPerspectiveOrigin: | 1199 case CSSPropertyWebkitPerspectiveOrigin: |
| 1200 case CSSPropertyTransform: | 1200 case CSSPropertyTransform: |
| 1201 case CSSPropertyWebkitTransform: | 1201 case CSSPropertyWebkitTransform: |
| 1202 case CSSPropertyTransformOrigin: | 1202 case CSSPropertyTransformOrigin: |
| 1203 case CSSPropertyWebkitTransformOrigin: | 1203 case CSSPropertyWebkitTransformOrigin: |
| 1204 case CSSPropertyWidth: | 1204 case CSSPropertyWidth: |
| 1205 case CSSPropertyWebkitFilter: | 1205 case CSSPropertyFilter: |
| 1206 return true; | 1206 return true; |
| 1207 case CSSPropertyMargin: | 1207 case CSSPropertyMargin: |
| 1208 return renderer && renderer->isBox() && (!style || !style->marginBottom(
).isFixed() || !style->marginTop().isFixed() || !style->marginLeft().isFixed() |
| !style->marginRight().isFixed()); | 1208 return renderer && renderer->isBox() && (!style || !style->marginBottom(
).isFixed() || !style->marginTop().isFixed() || !style->marginLeft().isFixed() |
| !style->marginRight().isFixed()); |
| 1209 case CSSPropertyMarginLeft: | 1209 case CSSPropertyMarginLeft: |
| 1210 return renderer && renderer->isBox() && (!style || !style->marginLeft().
isFixed()); | 1210 return renderer && renderer->isBox() && (!style || !style->marginLeft().
isFixed()); |
| 1211 case CSSPropertyMarginRight: | 1211 case CSSPropertyMarginRight: |
| 1212 return renderer && renderer->isBox() && (!style || !style->marginRight()
.isFixed()); | 1212 return renderer && renderer->isBox() && (!style || !style->marginRight()
.isFixed()); |
| 1213 case CSSPropertyMarginTop: | 1213 case CSSPropertyMarginTop: |
| 1214 return renderer && renderer->isBox() && (!style || !style->marginTop().i
sFixed()); | 1214 return renderer && renderer->isBox() && (!style || !style->marginTop().i
sFixed()); |
| 1215 case CSSPropertyMarginBottom: | 1215 case CSSPropertyMarginBottom: |
| (...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2099 case CSSPropertyWebkitTextOrientation: | 2099 case CSSPropertyWebkitTextOrientation: |
| 2100 return CSSPrimitiveValue::create(style->textOrientation()); | 2100 return CSSPrimitiveValue::create(style->textOrientation()); |
| 2101 case CSSPropertyWebkitLineBoxContain: | 2101 case CSSPropertyWebkitLineBoxContain: |
| 2102 return createLineBoxContainValue(style->lineBoxContain()); | 2102 return createLineBoxContainValue(style->lineBoxContain()); |
| 2103 case CSSPropertyWebkitClipPath: | 2103 case CSSPropertyWebkitClipPath: |
| 2104 if (ClipPathOperation* operation = style->clipPath()) { | 2104 if (ClipPathOperation* operation = style->clipPath()) { |
| 2105 if (operation->type() == ClipPathOperation::SHAPE) | 2105 if (operation->type() == ClipPathOperation::SHAPE) |
| 2106 return valueForBasicShape(*style, toShapeClipPathOperation(o
peration)->basicShape()); | 2106 return valueForBasicShape(*style, toShapeClipPathOperation(o
peration)->basicShape()); |
| 2107 } | 2107 } |
| 2108 return cssValuePool().createIdentifierValue(CSSValueNone); | 2108 return cssValuePool().createIdentifierValue(CSSValueNone); |
| 2109 case CSSPropertyWebkitFilter: | 2109 case CSSPropertyFilter: |
| 2110 return valueForFilter(renderer, *style); | 2110 return valueForFilter(renderer, *style); |
| 2111 | 2111 |
| 2112 case CSSPropertyBackground: | 2112 case CSSPropertyBackground: |
| 2113 return valuesForBackgroundShorthand(); | 2113 return valuesForBackgroundShorthand(); |
| 2114 case CSSPropertyBorder: { | 2114 case CSSPropertyBorder: { |
| 2115 RefPtr<CSSValue> value = getPropertyCSSValue(CSSPropertyBorderTop, D
oNotUpdateLayout); | 2115 RefPtr<CSSValue> value = getPropertyCSSValue(CSSPropertyBorderTop, D
oNotUpdateLayout); |
| 2116 const CSSPropertyID properties[3] = { CSSPropertyBorderRight, CSSPro
pertyBorderBottom, | 2116 const CSSPropertyID properties[3] = { CSSPropertyBorderRight, CSSPro
pertyBorderBottom, |
| 2117 CSSPropertyBorderLeft }; | 2117 CSSPropertyBorderLeft }; |
| 2118 for (size_t i = 0; i < WTF_ARRAY_LENGTH(properties); ++i) { | 2118 for (size_t i = 0; i < WTF_ARRAY_LENGTH(properties); ++i) { |
| 2119 if (!compareCSSValuePtr<CSSValue>(value, getPropertyCSSValue(pro
perties[i], DoNotUpdateLayout))) | 2119 if (!compareCSSValuePtr<CSSValue>(value, getPropertyCSSValue(pro
perties[i], DoNotUpdateLayout))) |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2395 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 2395 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
| 2396 CSSPropertyB
ackgroundClip }; | 2396 CSSPropertyB
ackgroundClip }; |
| 2397 | 2397 |
| 2398 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 2398 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
| 2399 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 2399 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
| 2400 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 2400 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
| 2401 return list.release(); | 2401 return list.release(); |
| 2402 } | 2402 } |
| 2403 | 2403 |
| 2404 } // namespace blink | 2404 } // namespace blink |
| OLD | NEW |