| 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 11 matching lines...) Expand all Loading... |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #include "config.h" | 24 #include "config.h" |
| 25 #include "core/css/CSSComputedStyleDeclaration.h" | 25 #include "core/css/CSSComputedStyleDeclaration.h" |
| 26 | 26 |
| 27 #include "bindings/core/v8/ExceptionState.h" | 27 #include "bindings/core/v8/ExceptionState.h" |
| 28 #include "core/CSSPropertyNames.h" | 28 #include "core/CSSPropertyNames.h" |
| 29 #include "core/StylePropertyShorthand.h" | 29 #include "core/StylePropertyShorthand.h" |
| 30 #include "core/animation/DocumentAnimations.h" | 30 #include "core/animation/DocumentAnimations.h" |
| 31 #include "core/css/BasicShapeFunctions.h" | 31 #include "core/css/BasicShapeFunctions.h" |
| 32 #include "core/css/CSSAspectRatioValue.h" | |
| 33 #include "core/css/CSSBorderImage.h" | 32 #include "core/css/CSSBorderImage.h" |
| 34 #include "core/css/CSSFilterValue.h" | 33 #include "core/css/CSSFilterValue.h" |
| 35 #include "core/css/CSSFontFeatureValue.h" | 34 #include "core/css/CSSFontFeatureValue.h" |
| 36 #include "core/css/CSSFontValue.h" | 35 #include "core/css/CSSFontValue.h" |
| 37 #include "core/css/CSSFunctionValue.h" | 36 #include "core/css/CSSFunctionValue.h" |
| 38 #include "core/css/CSSGridLineNamesValue.h" | 37 #include "core/css/CSSGridLineNamesValue.h" |
| 39 #include "core/css/CSSGridTemplateAreasValue.h" | 38 #include "core/css/CSSGridTemplateAreasValue.h" |
| 40 #include "core/css/CSSLineBoxContainValue.h" | 39 #include "core/css/CSSLineBoxContainValue.h" |
| 41 #include "core/css/CSSPrimitiveValue.h" | 40 #include "core/css/CSSPrimitiveValue.h" |
| 42 #include "core/css/CSSPrimitiveValueMappings.h" | 41 #include "core/css/CSSPrimitiveValueMappings.h" |
| (...skipping 2394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2437 list->append(cssValuePool().createValue(CSSAnimationData::initialDel
ay(), CSSPrimitiveValue::CSS_S)); | 2436 list->append(cssValuePool().createValue(CSSAnimationData::initialDel
ay(), CSSPrimitiveValue::CSS_S)); |
| 2438 list->append(cssValuePool().createValue(CSSAnimationData::initialIte
rationCount(), CSSPrimitiveValue::CSS_NUMBER)); | 2437 list->append(cssValuePool().createValue(CSSAnimationData::initialIte
rationCount(), CSSPrimitiveValue::CSS_NUMBER)); |
| 2439 list->append(valueForAnimationDirection(CSSAnimationData::initialDir
ection())); | 2438 list->append(valueForAnimationDirection(CSSAnimationData::initialDir
ection())); |
| 2440 list->append(valueForAnimationFillMode(CSSAnimationData::initialFill
Mode())); | 2439 list->append(valueForAnimationFillMode(CSSAnimationData::initialFill
Mode())); |
| 2441 // Initial animation-play-state. | 2440 // Initial animation-play-state. |
| 2442 list->append(cssValuePool().createIdentifierValue(CSSValueRunning)); | 2441 list->append(cssValuePool().createIdentifierValue(CSSValueRunning)); |
| 2443 return list.release(); | 2442 return list.release(); |
| 2444 } | 2443 } |
| 2445 case CSSPropertyWebkitAppearance: | 2444 case CSSPropertyWebkitAppearance: |
| 2446 return cssValuePool().createValue(style->appearance()); | 2445 return cssValuePool().createValue(style->appearance()); |
| 2447 case CSSPropertyWebkitAspectRatio: | |
| 2448 if (!style->hasAspectRatio()) | |
| 2449 return cssValuePool().createIdentifierValue(CSSValueNone); | |
| 2450 return CSSAspectRatioValue::create(style->aspectRatioNumerator(), st
yle->aspectRatioDenominator()); | |
| 2451 case CSSPropertyBackfaceVisibility: | 2446 case CSSPropertyBackfaceVisibility: |
| 2452 case CSSPropertyWebkitBackfaceVisibility: | 2447 case CSSPropertyWebkitBackfaceVisibility: |
| 2453 return cssValuePool().createIdentifierValue((style->backfaceVisibili
ty() == BackfaceVisibilityHidden) ? CSSValueHidden : CSSValueVisible); | 2448 return cssValuePool().createIdentifierValue((style->backfaceVisibili
ty() == BackfaceVisibilityHidden) ? CSSValueHidden : CSSValueVisible); |
| 2454 case CSSPropertyWebkitBorderImage: | 2449 case CSSPropertyWebkitBorderImage: |
| 2455 return valueForNinePieceImage(style->borderImage(), *style); | 2450 return valueForNinePieceImage(style->borderImage(), *style); |
| 2456 case CSSPropertyBorderImageOutset: | 2451 case CSSPropertyBorderImageOutset: |
| 2457 return valueForNinePieceImageQuad(style->borderImage().outset(), *st
yle); | 2452 return valueForNinePieceImageQuad(style->borderImage().outset(), *st
yle); |
| 2458 case CSSPropertyBorderImageRepeat: | 2453 case CSSPropertyBorderImageRepeat: |
| 2459 return valueForNinePieceImageRepeat(style->borderImage()); | 2454 return valueForNinePieceImageRepeat(style->borderImage()); |
| 2460 case CSSPropertyBorderImageSlice: | 2455 case CSSPropertyBorderImageSlice: |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2998 return list.release(); | 2993 return list.release(); |
| 2999 } | 2994 } |
| 3000 | 2995 |
| 3001 void CSSComputedStyleDeclaration::trace(Visitor* visitor) | 2996 void CSSComputedStyleDeclaration::trace(Visitor* visitor) |
| 3002 { | 2997 { |
| 3003 visitor->trace(m_node); | 2998 visitor->trace(m_node); |
| 3004 CSSStyleDeclaration::trace(visitor); | 2999 CSSStyleDeclaration::trace(visitor); |
| 3005 } | 3000 } |
| 3006 | 3001 |
| 3007 } // namespace blink | 3002 } // namespace blink |
| OLD | NEW |