| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 CSSPropertyWebkitMaskBoxImageSource, | 291 CSSPropertyWebkitMaskBoxImageSource, |
| 292 CSSPropertyWebkitMaskBoxImageWidth, | 292 CSSPropertyWebkitMaskBoxImageWidth, |
| 293 CSSPropertyWebkitMaskClip, | 293 CSSPropertyWebkitMaskClip, |
| 294 CSSPropertyWebkitMaskComposite, | 294 CSSPropertyWebkitMaskComposite, |
| 295 CSSPropertyWebkitMaskImage, | 295 CSSPropertyWebkitMaskImage, |
| 296 CSSPropertyWebkitMaskOrigin, | 296 CSSPropertyWebkitMaskOrigin, |
| 297 CSSPropertyWebkitMaskPosition, | 297 CSSPropertyWebkitMaskPosition, |
| 298 CSSPropertyWebkitMaskRepeat, | 298 CSSPropertyWebkitMaskRepeat, |
| 299 CSSPropertyWebkitMaskSize, | 299 CSSPropertyWebkitMaskSize, |
| 300 CSSPropertyWebkitOrder, | 300 CSSPropertyWebkitOrder, |
| 301 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | |
| 302 CSSPropertyWebkitOverflowScrolling, | |
| 303 #endif | |
| 304 CSSPropertyWebkitPerspective, | 301 CSSPropertyWebkitPerspective, |
| 305 CSSPropertyWebkitPerspectiveOrigin, | 302 CSSPropertyWebkitPerspectiveOrigin, |
| 306 CSSPropertyWebkitPrintColorAdjust, | 303 CSSPropertyWebkitPrintColorAdjust, |
| 307 CSSPropertyWebkitRtlOrdering, | 304 CSSPropertyWebkitRtlOrdering, |
| 308 CSSPropertyWebkitShapeInside, | 305 CSSPropertyWebkitShapeInside, |
| 309 CSSPropertyWebkitShapeOutside, | 306 CSSPropertyWebkitShapeOutside, |
| 310 CSSPropertyWebkitTapHighlightColor, | 307 CSSPropertyWebkitTapHighlightColor, |
| 311 CSSPropertyWebkitTextCombine, | 308 CSSPropertyWebkitTextCombine, |
| 312 CSSPropertyWebkitTextDecorationsInEffect, | 309 CSSPropertyWebkitTextDecorationsInEffect, |
| 313 CSSPropertyWebkitTextEmphasisColor, | 310 CSSPropertyWebkitTextEmphasisColor, |
| (...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2408 return cssValuePool().createIdentifierValue(CSSValueNone); | 2405 return cssValuePool().createIdentifierValue(CSSValueNone); |
| 2409 case CSSPropertyWebkitFontSizeDelta: | 2406 case CSSPropertyWebkitFontSizeDelta: |
| 2410 // Not a real style property -- used by the editing engine -- so has
no computed value. | 2407 // Not a real style property -- used by the editing engine -- so has
no computed value. |
| 2411 break; | 2408 break; |
| 2412 case CSSPropertyWebkitMarginBottomCollapse: | 2409 case CSSPropertyWebkitMarginBottomCollapse: |
| 2413 case CSSPropertyWebkitMarginAfterCollapse: | 2410 case CSSPropertyWebkitMarginAfterCollapse: |
| 2414 return cssValuePool().createValue(style->marginAfterCollapse()); | 2411 return cssValuePool().createValue(style->marginAfterCollapse()); |
| 2415 case CSSPropertyWebkitMarginTopCollapse: | 2412 case CSSPropertyWebkitMarginTopCollapse: |
| 2416 case CSSPropertyWebkitMarginBeforeCollapse: | 2413 case CSSPropertyWebkitMarginBeforeCollapse: |
| 2417 return cssValuePool().createValue(style->marginBeforeCollapse()); | 2414 return cssValuePool().createValue(style->marginBeforeCollapse()); |
| 2418 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | |
| 2419 case CSSPropertyWebkitOverflowScrolling: | |
| 2420 if (!style->useTouchOverflowScrolling()) | |
| 2421 return cssValuePool().createIdentifierValue(CSSValueAuto); | |
| 2422 return cssValuePool().createIdentifierValue(CSSValueTouch); | |
| 2423 #endif | |
| 2424 case CSSPropertyWebkitPerspective: | 2415 case CSSPropertyWebkitPerspective: |
| 2425 if (!style->hasPerspective()) | 2416 if (!style->hasPerspective()) |
| 2426 return cssValuePool().createIdentifierValue(CSSValueNone); | 2417 return cssValuePool().createIdentifierValue(CSSValueNone); |
| 2427 return zoomAdjustedPixelValue(style->perspective(), style.get()); | 2418 return zoomAdjustedPixelValue(style->perspective(), style.get()); |
| 2428 case CSSPropertyWebkitPerspectiveOrigin: { | 2419 case CSSPropertyWebkitPerspectiveOrigin: { |
| 2429 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); | 2420 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); |
| 2430 if (renderer) { | 2421 if (renderer) { |
| 2431 LayoutRect box; | 2422 LayoutRect box; |
| 2432 if (renderer->isBox()) | 2423 if (renderer->isBox()) |
| 2433 box = toRenderBox(renderer)->borderBoxRect(); | 2424 box = toRenderBox(renderer)->borderBoxRect(); |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2993 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 2984 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
| 2994 CSSPropertyB
ackgroundClip }; | 2985 CSSPropertyB
ackgroundClip }; |
| 2995 | 2986 |
| 2996 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 2987 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
| 2997 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat
or)))); | 2988 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat
or)))); |
| 2998 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator
)))); | 2989 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator
)))); |
| 2999 return list.release(); | 2990 return list.release(); |
| 3000 } | 2991 } |
| 3001 | 2992 |
| 3002 } // namespace WebCore | 2993 } // namespace WebCore |
| OLD | NEW |