| 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 |
| 11 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
| 12 * | 12 * |
| 13 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
| 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 * Lesser General Public License for more details. | 16 * Lesser General Public License for more details. |
| 17 * | 17 * |
| 18 * You should have received a copy of the GNU Lesser General Public | 18 * You should have received a copy of the GNU Lesser General Public |
| 19 * License along with this library; if not, write to the Free Software | 19 * License along with this library; if not, write to the Free Software |
| 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 21 * 02110-1301 USA | 21 * 02110-1301 USA |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #include "config.h" | 24 #include "sky/engine/config.h" |
| 25 #include "core/css/CSSComputedStyleDeclaration.h" | 25 #include "sky/engine/core/css/CSSComputedStyleDeclaration.h" |
| 26 | 26 |
| 27 #include "bindings/core/v8/ExceptionState.h" | |
| 28 #include "gen/sky/core/CSSPropertyNames.h" | 27 #include "gen/sky/core/CSSPropertyNames.h" |
| 29 #include "gen/sky/core/StylePropertyShorthand.h" | 28 #include "gen/sky/core/StylePropertyShorthand.h" |
| 30 #include "core/animation/DocumentAnimations.h" | |
| 31 #include "core/css/BasicShapeFunctions.h" | |
| 32 #include "core/css/CSSAspectRatioValue.h" | |
| 33 #include "core/css/CSSBorderImage.h" | |
| 34 #include "core/css/CSSFilterValue.h" | |
| 35 #include "core/css/CSSFontFeatureValue.h" | |
| 36 #include "core/css/CSSFontValue.h" | |
| 37 #include "core/css/CSSFunctionValue.h" | |
| 38 #include "core/css/CSSLineBoxContainValue.h" | |
| 39 #include "core/css/parser/BisonCSSParser.h" | |
| 40 #include "core/css/CSSPrimitiveValue.h" | |
| 41 #include "core/css/CSSPrimitiveValueMappings.h" | |
| 42 #include "core/css/CSSPropertyMetadata.h" | |
| 43 #include "core/css/CSSSelector.h" | |
| 44 #include "core/css/CSSShadowValue.h" | |
| 45 #include "core/css/CSSTimingFunctionValue.h" | |
| 46 #include "core/css/CSSTransformValue.h" | |
| 47 #include "core/css/CSSValueList.h" | |
| 48 #include "core/css/CSSValuePool.h" | |
| 49 #include "core/css/Pair.h" | |
| 50 #include "core/css/Rect.h" | |
| 51 #include "core/css/StylePropertySet.h" | |
| 52 #include "core/css/resolver/StyleResolver.h" | |
| 53 #include "core/dom/Document.h" | |
| 54 #include "core/dom/ExceptionCode.h" | |
| 55 #include "core/rendering/RenderBox.h" | |
| 56 #include "core/rendering/style/RenderStyle.h" | |
| 57 #include "core/rendering/style/ShadowList.h" | |
| 58 #include "core/rendering/style/ShapeValue.h" | |
| 59 #include "gen/sky/platform/FontFamilyNames.h" | 29 #include "gen/sky/platform/FontFamilyNames.h" |
| 60 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 30 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
| 61 #include "platform/fonts/FontFeatureSettings.h" | 31 #include "sky/engine/bindings/core/v8/ExceptionState.h" |
| 62 #include "wtf/text/StringBuilder.h" | 32 #include "sky/engine/core/animation/DocumentAnimations.h" |
| 33 #include "sky/engine/core/css/BasicShapeFunctions.h" |
| 34 #include "sky/engine/core/css/CSSAspectRatioValue.h" |
| 35 #include "sky/engine/core/css/CSSBorderImage.h" |
| 36 #include "sky/engine/core/css/CSSFilterValue.h" |
| 37 #include "sky/engine/core/css/CSSFontFeatureValue.h" |
| 38 #include "sky/engine/core/css/CSSFontValue.h" |
| 39 #include "sky/engine/core/css/CSSFunctionValue.h" |
| 40 #include "sky/engine/core/css/CSSLineBoxContainValue.h" |
| 41 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
| 42 #include "sky/engine/core/css/CSSPrimitiveValueMappings.h" |
| 43 #include "sky/engine/core/css/CSSPropertyMetadata.h" |
| 44 #include "sky/engine/core/css/CSSSelector.h" |
| 45 #include "sky/engine/core/css/CSSShadowValue.h" |
| 46 #include "sky/engine/core/css/CSSTimingFunctionValue.h" |
| 47 #include "sky/engine/core/css/CSSTransformValue.h" |
| 48 #include "sky/engine/core/css/CSSValueList.h" |
| 49 #include "sky/engine/core/css/CSSValuePool.h" |
| 50 #include "sky/engine/core/css/Pair.h" |
| 51 #include "sky/engine/core/css/Rect.h" |
| 52 #include "sky/engine/core/css/StylePropertySet.h" |
| 53 #include "sky/engine/core/css/parser/BisonCSSParser.h" |
| 54 #include "sky/engine/core/css/resolver/StyleResolver.h" |
| 55 #include "sky/engine/core/dom/Document.h" |
| 56 #include "sky/engine/core/dom/ExceptionCode.h" |
| 57 #include "sky/engine/core/rendering/RenderBox.h" |
| 58 #include "sky/engine/core/rendering/style/RenderStyle.h" |
| 59 #include "sky/engine/core/rendering/style/ShadowList.h" |
| 60 #include "sky/engine/core/rendering/style/ShapeValue.h" |
| 61 #include "sky/engine/platform/fonts/FontFeatureSettings.h" |
| 62 #include "sky/engine/wtf/text/StringBuilder.h" |
| 63 | 63 |
| 64 namespace blink { | 64 namespace blink { |
| 65 | 65 |
| 66 // List of all properties we know how to compute, omitting shorthands. | 66 // List of all properties we know how to compute, omitting shorthands. |
| 67 // NOTE: Do not use this list, use computableProperties() instead | 67 // NOTE: Do not use this list, use computableProperties() instead |
| 68 // to respect runtime enabling of CSS properties. | 68 // to respect runtime enabling of CSS properties. |
| 69 static const CSSPropertyID staticComputableProperties[] = { | 69 static const CSSPropertyID staticComputableProperties[] = { |
| 70 CSSPropertyAnimationDelay, | 70 CSSPropertyAnimationDelay, |
| 71 CSSPropertyAnimationDirection, | 71 CSSPropertyAnimationDirection, |
| 72 CSSPropertyAnimationDuration, | 72 CSSPropertyAnimationDuration, |
| (...skipping 2386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2459 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 2459 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
| 2460 CSSPropertyB
ackgroundClip }; | 2460 CSSPropertyB
ackgroundClip }; |
| 2461 | 2461 |
| 2462 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 2462 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
| 2463 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 2463 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
| 2464 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 2464 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
| 2465 return list.release(); | 2465 return list.release(); |
| 2466 } | 2466 } |
| 2467 | 2467 |
| 2468 } // namespace blink | 2468 } // namespace blink |
| OLD | NEW |